Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) // Copyright (c) 2006 Simtec Electronics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) //	Ben Dooks <ben@simtec.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) // Common code for SMDK2410 and SMDK2440 boards
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) // http://www.fluff.org/ben/smdk2440/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/list.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/timer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/gpio/machine.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #include <linux/mtd/mtd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include <linux/mtd/rawnand.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #include <linux/mtd/nand_ecc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #include <linux/mtd/partitions.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) #include <asm/mach/arch.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #include <asm/mach/map.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) #include <asm/mach/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #include <asm/mach-types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #include <asm/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) #include "regs-gpio.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) #include "gpio-samsung.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) #include <linux/platform_data/leds-s3c24xx.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #include <linux/platform_data/mtd-nand-s3c2410.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) #include "gpio-cfg.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #include "devs.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) #include "pm.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) #include "common-smdk-s3c24xx.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) /* LED devices */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) static struct gpiod_lookup_table smdk_led4_gpio_table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	.dev_id = "s3c24xx_led.0",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	.table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 		GPIO_LOOKUP("GPF", 4, NULL, GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 		{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) static struct gpiod_lookup_table smdk_led5_gpio_table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	.dev_id = "s3c24xx_led.1",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	.table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 		GPIO_LOOKUP("GPF", 5, NULL, GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 		{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) static struct gpiod_lookup_table smdk_led6_gpio_table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	.dev_id = "s3c24xx_led.2",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	.table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 		GPIO_LOOKUP("GPF", 6, NULL, GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 		{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) static struct gpiod_lookup_table smdk_led7_gpio_table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	.dev_id = "s3c24xx_led.3",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	.table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 		GPIO_LOOKUP("GPF", 7, NULL, GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 		{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) static struct s3c24xx_led_platdata smdk_pdata_led4 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	.name		= "led4",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	.def_trigger	= "timer",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) static struct s3c24xx_led_platdata smdk_pdata_led5 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	.name		= "led5",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	.def_trigger	= "nand-disk",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) static struct s3c24xx_led_platdata smdk_pdata_led6 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	.name		= "led6",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) static struct s3c24xx_led_platdata smdk_pdata_led7 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	.name		= "led7",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) static struct platform_device smdk_led4 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	.name		= "s3c24xx_led",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	.id		= 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	.dev		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 		.platform_data = &smdk_pdata_led4,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) static struct platform_device smdk_led5 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	.name		= "s3c24xx_led",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	.id		= 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	.dev		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 		.platform_data = &smdk_pdata_led5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) static struct platform_device smdk_led6 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	.name		= "s3c24xx_led",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	.id		= 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	.dev		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 		.platform_data = &smdk_pdata_led6,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) static struct platform_device smdk_led7 = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	.name		= "s3c24xx_led",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	.id		= 3,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	.dev		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 		.platform_data = &smdk_pdata_led7,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) /* NAND parititon from 2.4.18-swl5 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) static struct mtd_partition smdk_default_nand_part[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	[0] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 		.name	= "Boot Agent",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 		.size	= SZ_16K,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 		.offset	= 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	[1] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 		.name	= "S3C2410 flash partition 1",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 		.offset = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 		.size	= SZ_2M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	[2] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 		.name	= "S3C2410 flash partition 2",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 		.offset = SZ_4M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 		.size	= SZ_4M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	[3] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 		.name	= "S3C2410 flash partition 3",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 		.offset	= SZ_8M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 		.size	= SZ_2M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	[4] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 		.name	= "S3C2410 flash partition 4",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 		.offset = SZ_1M * 10,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 		.size	= SZ_4M,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	[5] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 		.name	= "S3C2410 flash partition 5",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 		.offset	= SZ_1M * 14,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 		.size	= SZ_1M * 10,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	[6] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 		.name	= "S3C2410 flash partition 6",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 		.offset	= SZ_1M * 24,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 		.size	= SZ_1M * 24,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	[7] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 		.name	= "S3C2410 flash partition 7",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 		.offset = SZ_1M * 48,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 		.size	= MTDPART_SIZ_FULL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) static struct s3c2410_nand_set smdk_nand_sets[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	[0] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 		.name		= "NAND",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 		.nr_chips	= 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 		.nr_partitions	= ARRAY_SIZE(smdk_default_nand_part),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 		.partitions	= smdk_default_nand_part,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) /* choose a set of timings which should suit most 512Mbit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)  * chips and beyond.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) static struct s3c2410_platform_nand smdk_nand_info = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	.tacls		= 20,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	.twrph0		= 60,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	.twrph1		= 20,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	.nr_sets	= ARRAY_SIZE(smdk_nand_sets),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	.sets		= smdk_nand_sets,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	.engine_type	= NAND_ECC_ENGINE_TYPE_SOFT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) /* devices we initialise */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) static struct platform_device __initdata *smdk_devs[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	&s3c_device_nand,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	&smdk_led4,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	&smdk_led5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	&smdk_led6,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	&smdk_led7,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) void __init smdk_machine_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	if (machine_is_smdk2443())
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 		smdk_nand_info.twrph0 = 50;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	s3c_nand_set_platdata(&smdk_nand_info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	/* Disable pull-up on the LED lines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	s3c_gpio_setpull(S3C2410_GPF(4), S3C_GPIO_PULL_NONE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	s3c_gpio_setpull(S3C2410_GPF(5), S3C_GPIO_PULL_NONE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	s3c_gpio_setpull(S3C2410_GPF(6), S3C_GPIO_PULL_NONE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	s3c_gpio_setpull(S3C2410_GPF(7), S3C_GPIO_PULL_NONE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 	/* Add lookups for the lines */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	gpiod_add_lookup_table(&smdk_led4_gpio_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	gpiod_add_lookup_table(&smdk_led5_gpio_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 	gpiod_add_lookup_table(&smdk_led6_gpio_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 	gpiod_add_lookup_table(&smdk_led7_gpio_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	platform_add_devices(smdk_devs, ARRAY_SIZE(smdk_devs));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 	s3c_pm_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) }