Twenty eight patches big Exynos cleanup
Subsystems (9)
cover Twenty eight patches big Exynos cleanup
Hi All,
As I promised, I am doing some spring (or rather summer) cleaning of Exynos- and Samsung- related code.
This first part consists mostly of removing dead code remaining after removal of ATAGS support for Exynos, but several patches cleans up other things found by the way.
See particular patches for more detailed description.
On Exynos4210-based Trats board:
Build tested every patch with s3c6400_defconfig, s5pv210_defconfig and exynos_defconfig.
Tomasz Figa (28):
ARM: EXYNOS: Remove unused board files
ARM: EXYNOS: Make ARCH_EXYNOS select USE_OF
ARM: SAMSUNG: Introduce SAMSUNG_ATAGS Kconfig entry
ARM: EXYNOS: common: Remove legacy PMU initialization code
ARM: EXYNOS: common: Remove legacy EINT initialization code
ARM: EXYNOS: common: Remove legacy UART initialization code
ARM: EXYNOS: Remove legacy dev- and setup- files
ARM: EXYNOS: common: Remove legacy interrupt initialization code
ARM: EXYNOS: common: Remove legacy timer initialization code
ARM: EXYNOS: common: Remove platform device initialization
ARM: EXYNOS: common: Remove legacy mapping of chip ID block
ARM: EXYNOS: firmware: Remove check for device tree presence
ARM: EXYNOS: pm_domains: Remove legacy power domain registration code
ARM: SAMSUNG: Introduce GPIO_SAMSUNG Kconfig entry
ARM: EXYNOS: Provide compatibility stubs for PM code in pm-core.h
header
ARM: SAMSUNG: Compile s5p-irq-pm only with ATAGS support
ARM: EXYNOS: Decouple ARCH_EXYNOS from PLAT_S5P
ARM: SAMSUNG: pm: Include most of mach/ headers conditionally
ARM: EXYNOS: Do not select legacy Kconfig symbols any more
ARM: EXYNOS: Remove setup-i2c0.c
ARM: EXYNOS: Remove mach/gpio.h
ARM: EXYNOS: Remove mach/regs-gpio.h header
ARM: SAMSUNG: Make legacy MFC support code depend on SAMSUNG_ATAGS
ARM: EXYNOS: Select SPARSE_IRQ for Exynos
ARM: EXYNOS: Remove mach/irqs.h header
ARM: EXYNOS: Remove unused base addresses from mach/map.h header
ARM: EXYNOS: Remove CONFIG_SOC_EXYNOS4412
ARM: EXYNOS: Remove mach/regs-usb-phy.h header
arch/arm/Kconfig | 15 +- arch/arm/Makefile | 1 + arch/arm/mach-exynos/Kconfig | 14 +- arch/arm/mach-exynos/Makefile | 6 - arch/arm/mach-exynos/common.c | 472 +------- arch/arm/mach-exynos/dev-audio.c | 254 ---- arch/arm/mach-exynos/dev-uart.c | 55 - arch/arm/mach-exynos/firmware.c | 22 +- arch/arm/mach-exynos/include/mach/gpio.h | 289 ----- arch/arm/mach-exynos/include/mach/irqs.h | 476 -------- arch/arm/mach-exynos/include/mach/map.h | 214 ---- arch/arm/mach-exynos/include/mach/pm-core.h | 5 + arch/arm/mach-exynos/include/mach/regs-gpio.h | 40 - arch/arm/mach-exynos/include/mach/regs-usb-phy.h | 74 -- arch/arm/mach-exynos/mach-armlex4210.c | 207 ---- arch/arm/mach-exynos/mach-nuri.c | 1388 ---------------------- arch/arm/mach-exynos/mach-origen.c | 823 ------------- arch/arm/mach-exynos/mach-smdk4x12.c | 396 ------ arch/arm/mach-exynos/mach-smdkv310.c | 444 ------- arch/arm/mach-exynos/mach-universal_c210.c | 1159 ------------------ arch/arm/mach-exynos/pm.c | 1 - arch/arm/mach-exynos/pm_domains.c | 94 +- arch/arm/mach-exynos/setup-fimc.c | 44 - arch/arm/mach-exynos/setup-fimd0.c | 43 - arch/arm/mach-exynos/setup-i2c0.c | 29 - arch/arm/mach-exynos/setup-i2c1.c | 23 - arch/arm/mach-exynos/setup-i2c2.c | 23 - arch/arm/mach-exynos/setup-i2c3.c | 23 - arch/arm/mach-exynos/setup-i2c4.c | 23 - arch/arm/mach-exynos/setup-i2c5.c | 23 - arch/arm/mach-exynos/setup-i2c6.c | 23 - arch/arm/mach-exynos/setup-i2c7.c | 23 - arch/arm/mach-exynos/setup-keypad.c | 36 - arch/arm/mach-exynos/setup-sdhci-gpio.c | 152 --- arch/arm/mach-exynos/setup-spi.c | 45 - arch/arm/mach-exynos/setup-usb-phy.c | 223 ---- arch/arm/plat-samsung/Kconfig | 40 +- arch/arm/plat-samsung/Makefile | 11 +- arch/arm/plat-samsung/include/plat/cpu.h | 6 +- arch/arm/plat-samsung/include/plat/pm.h | 5 + arch/arm/plat-samsung/init.c | 8 +- arch/arm/plat-samsung/pm-gpio.c | 5 +- arch/arm/plat-samsung/pm.c | 8 +- arch/arm/plat-samsung/s5p-dev-mfc.c | 11 +- drivers/cpufreq/Kconfig.arm | 2 +- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +- 50 files changed, 115 insertions(+), 7179 deletions(-) delete mode 100644 arch/arm/mach-exynos/dev-audio.c delete mode 100644 arch/arm/mach-exynos/dev-uart.c delete mode 100644 arch/arm/mach-exynos/include/mach/gpio.h delete mode 100644 arch/arm/mach-exynos/include/mach/irqs.h delete mode 100644 arch/arm/mach-exynos/include/mach/regs-gpio.h delete mode 100644 arch/arm/mach-exynos/include/mach/regs-usb-phy.h delete mode 100644 arch/arm/mach-exynos/mach-armlex4210.c delete mode 100644 arch/arm/mach-exynos/mach-nuri.c delete mode 100644 arch/arm/mach-exynos/mach-origen.c delete mode 100644 arch/arm/mach-exynos/mach-smdk4x12.c delete mode 100644 arch/arm/mach-exynos/mach-smdkv310.c delete mode 100644 arch/arm/mach-exynos/mach-universal_c210.c delete mode 100644 arch/arm/mach-exynos/setup-fimc.c delete mode 100644 arch/arm/mach-exynos/setup-fimd0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c1.c delete mode 100644 arch/arm/mach-exynos/setup-i2c2.c delete mode 100644 arch/arm/mach-exynos/setup-i2c3.c delete mode 100644 arch/arm/mach-exynos/setup-i2c4.c delete mode 100644 arch/arm/mach-exynos/setup-i2c5.c delete mode 100644 arch/arm/mach-exynos/setup-i2c6.c delete mode 100644 arch/arm/mach-exynos/setup-i2c7.c delete mode 100644 arch/arm/mach-exynos/setup-keypad.c delete mode 100644 arch/arm/mach-exynos/setup-sdhci-gpio.c delete mode 100644 arch/arm/mach-exynos/setup-spi.c delete mode 100644 arch/arm/mach-exynos/setup-usb-phy.c
Signature · 1 line
1.8.2.1
PATCH 2/28 ARM: EXYNOS: Make ARCH_EXYNOS select USE_OF
Since EXYNOS is now DT-only, it always requires USE_OF option to be selected. This patch moves USE_OF selection from entries of DT board files to ARCH_EXYNOS.
--- arch/arm/Kconfig | 1 + arch/arm/mach-exynos/Kconfig | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
arch/arm/Kconfig +1 -0
@@ -796,6 +796,7 @@ config ARCH_EXYNOS select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H + select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)
arch/arm/mach-exynos/Kconfig +0 -2
@@ -101,7 +101,6 @@ config MACH_EXYNOS4_DT select CPU_EXYNOS4210 select KEYBOARD_SAMSUNG if INPUT_KEYBOARD select S5P_DEV_MFC - select USE_OF help Machine support for Samsung Exynos4 machine with device tree enabled. Select this if a fdt blob is available for the Exynos4 SoC based board.
@@ -115,7 +114,6 @@ config MACH_EXYNOS5_DT select ARM_AMBA select CLKSRC_OF select USB_ARCH_HAS_XHCI - select USE_OF help Machine support for Samsung EXYNOS5 machine with device tree enabled. Select this if a fdt blob is available for the EXYNOS5 SoC based board.
Signature · 1 line
1.8.2.1
PATCH 3/28 ARM: SAMSUNG: Introduce SAMSUNG_ATAGS Kconfig entry
In reply to Tomasz FigaThis patch adds a Kconfig entry that enables compilation of legacy support code required for Samsung platforms that require ATAGS based boot.
This allows to bypass compilation of this code when platforms without ATAGS support are selected.
--- arch/arm/Kconfig | 6 ++++++ arch/arm/plat-samsung/Kconfig | 26 +++++++++++++++++++++----- arch/arm/plat-samsung/Makefile | 6 +++--- 3 files changed, 30 insertions(+), 8 deletions(-)
arch/arm/Kconfig +6 -0
@@ -702,6 +702,7 @@ config ARCH_S3C24XX select MULTI_IRQ_HANDLER select NEED_MACH_GPIO_H select NEED_MACH_IO_H + select SAMSUNG_ATAGS help Samsung S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443 and S3C2450 SoCs based systems, such as the Simtec Electronics BAST
@@ -726,6 +727,7 @@ config ARCH_S3C64XX select PLAT_SAMSUNG select S3C_DEV_NAND select S3C_GPIO_TRACK + select SAMSUNG_ATAGS select SAMSUNG_CLKSRC select SAMSUNG_GPIOLIB_4BIT select SAMSUNG_IRQ_VIC_TIMER
@@ -744,6 +746,7 @@ config ARCH_S5P64X0 select HAVE_S3C2410_WATCHDOG if WATCHDOG select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H + select SAMSUNG_ATAGS help Samsung S5P64X0 CPU based systems, such as the Samsung SMDK6440, SMDK6450.
@@ -760,6 +763,7 @@ config ARCH_S5PC100 select HAVE_S3C2410_WATCHDOG if WATCHDOG select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H + select SAMSUNG_ATAGS help Samsung S5PC100 series based systems
@@ -778,6 +782,7 @@ config ARCH_S5PV210 select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H + select SAMSUNG_ATAGS help Samsung S5PV210/S5PC110 series based systems
@@ -796,6 +801,7 @@ config ARCH_EXYNOS select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H + select SAMSUNG_ATAGS select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)
arch/arm/plat-samsung/Kconfig +21 -5
@@ -60,6 +60,20 @@ config S3C_LOWLEVEL_UART_PORT this configuration should be between zero and two. The port must have been initialised by the boot-loader before use. +config SAMSUNG_ATAGS + def_bool n + depends on !ARCH_MULTIPLATFORM + depends on ATAGS + help + This option enables ATAGS based boot support code for + Samsung platforms, including static platform devices, legacy + clock, timer and interrupt initialization, etc. + + Platforms that support only DT based boot need not to select + this option. + +if SAMSUNG_ATAGS + # timer options config SAMSUNG_HRT
@@ -367,11 +381,6 @@ config S5P_DEV_JPEG help Compile in platform device definitions for JPEG codec -config S5P_DEV_MFC - bool - help - Compile in setup memory (init) code for MFC - config S5P_DEV_ONENAND bool help
@@ -412,6 +421,8 @@ config S3C_DMA help Internal configuration for S3C DMA core +endif + config SAMSUNG_DMADEV bool select ARM_AMBA
@@ -421,6 +432,11 @@ config SAMSUNG_DMADEV help Use DMA device engine for PL330 DMAC. +config S5P_DEV_MFC + bool + help + Compile in setup memory (init) code for MFC + comment "Power management" config SAMSUNG_PM_DEBUG
arch/arm/plat-samsung/Makefile +3 -3
@@ -31,10 +31,10 @@ obj-$(CONFIG_S3C_ADC) += adc.o # devices -obj-y += platformdata.o +obj-$(CONFIG_SAMSUNG_ATAGS) += platformdata.o -obj-y += devs.o -obj-y += dev-uart.o +obj-$(CONFIG_SAMSUNG_ATAGS) += devs.o +obj-$(CONFIG_SAMSUNG_ATAGS) += dev-uart.o obj-$(CONFIG_S5P_DEV_MFC) += s5p-dev-mfc.o obj-$(CONFIG_S5P_DEV_UART) += s5p-dev-uart.o
Signature · 1 line
1.8.2.1
PATCH 4/28 ARM: EXYNOS: common: Remove legacy PMU initialization code
In reply to Tomasz FigaThis patch removes legacy PMU initialization code that was used to set up PMU when booting with ATAGS, which is not supported any more.
--- arch/arm/mach-exynos/common.c | 27 --------------------------- 1 file changed, 27 deletions(-)
arch/arm/mach-exynos/common.c +0 -27
@@ -922,30 +922,3 @@ static int __init exynos_init_irq_eint(void)return 0 ; }arch_initcall (exynos_init_irq_eint); - -static struct resource exynos4_pmu_resource[] = { -DEFINE_RES_IRQ (EXYNOS4_IRQ_PMU ), -DEFINE_RES_IRQ (EXYNOS4_IRQ_PMU_CPU1 ), -#if defined(CONFIG_SOC_EXYNOS4412) -DEFINE_RES_IRQ (EXYNOS4_IRQ_PMU_CPU2 ), -DEFINE_RES_IRQ (EXYNOS4_IRQ_PMU_CPU3 ), -#endif -}; - -static struct platform_device exynos4_device_pmu = { - .name ="arm-pmu" , - .num_resources =ARRAY_SIZE (exynos4_pmu_resource), - .resource = exynos4_pmu_resource, -}; - -static int __init exynos_armpmu_init (void ) -{ -if (!of_have_populated_dt ()) { -if (soc_is_exynos4210 () ||soc_is_exynos4212 ()) - exynos4_device_pmu.num_resources =2 ; -platform_device_register (&exynos4_device_pmu); - } - -return 0 ; -} -arch_initcall (exynos_armpmu_init);
Signature · 1 line
1.8.2.1
PATCH 5/28 ARM: EXYNOS: common: Remove legacy EINT initialization code
In reply to Tomasz FigaThis patch removes legacy EINT initialization code that was used to handle external interrupts when booting with ATAGS, which is not supported any more.
--- arch/arm/mach-exynos/common.c | 307 ------------------------------------------ 1 file changed, 307 deletions(-)
arch/arm/mach-exynos/common.c +0 -307
@@ -615,310 +615,3 @@ static void __init exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no)s3c24xx_init_uartdevs ("exynos4210-uart" , exynos4_uart_resources, cfg, no); } - -static void __iomem *exynos_eint_base; - -static DEFINE_SPINLOCK (eint_lock); - -static unsigned int eint0_15_data[16 ]; - -static inline int exynos4_irq_to_gpio (unsigned int irq) -{ -if (irq <IRQ_EINT (0 )) -return -EINVAL ; - - irq -=IRQ_EINT (0 ); -if (irq <8 ) -return EXYNOS4_GPX0 (irq); - - irq -=8 ; -if (irq <8 ) -return EXYNOS4_GPX1 (irq); - - irq -=8 ; -if (irq <8 ) -return EXYNOS4_GPX2 (irq); - - irq -=8 ; -if (irq <8 ) -return EXYNOS4_GPX3 (irq); - -return -EINVAL ; -} - -static inline int exynos5_irq_to_gpio (unsigned int irq) -{ -if (irq <IRQ_EINT (0 )) -return -EINVAL ; - - irq -=IRQ_EINT (0 ); -if (irq <8 ) -return EXYNOS5_GPX0 (irq); - - irq -=8 ; -if (irq <8 ) -return EXYNOS5_GPX1 (irq); - - irq -=8 ; -if (irq <8 ) -return EXYNOS5_GPX2 (irq); - - irq -=8 ; -if (irq <8 ) -return EXYNOS5_GPX3 (irq); - -return -EINVAL ; -} - -static unsigned int exynos4_eint0_15_src_int[16 ] = { -EXYNOS4_IRQ_EINT0 , -EXYNOS4_IRQ_EINT1 , -EXYNOS4_IRQ_EINT2 , -EXYNOS4_IRQ_EINT3 , -EXYNOS4_IRQ_EINT4 , -EXYNOS4_IRQ_EINT5 , -EXYNOS4_IRQ_EINT6 , -EXYNOS4_IRQ_EINT7 , -EXYNOS4_IRQ_EINT8 , -EXYNOS4_IRQ_EINT9 , -EXYNOS4_IRQ_EINT10 , -EXYNOS4_IRQ_EINT11 , -EXYNOS4_IRQ_EINT12 , -EXYNOS4_IRQ_EINT13 , -EXYNOS4_IRQ_EINT14 , -EXYNOS4_IRQ_EINT15 , -}; - -static unsigned int exynos5_eint0_15_src_int[16 ] = { -EXYNOS5_IRQ_EINT0 , -EXYNOS5_IRQ_EINT1 , -EXYNOS5_IRQ_EINT2 , -EXYNOS5_IRQ_EINT3 , -EXYNOS5_IRQ_EINT4 , -EXYNOS5_IRQ_EINT5 , -EXYNOS5_IRQ_EINT6 , -EXYNOS5_IRQ_EINT7 , -EXYNOS5_IRQ_EINT8 , -EXYNOS5_IRQ_EINT9 , -EXYNOS5_IRQ_EINT10 , -EXYNOS5_IRQ_EINT11 , -EXYNOS5_IRQ_EINT12 , -EXYNOS5_IRQ_EINT13 , -EXYNOS5_IRQ_EINT14 , -EXYNOS5_IRQ_EINT15 , -}; -static inline void exynos_irq_eint_mask (struct irq_data *data) -{ -u32 mask; - -spin_lock (&eint_lock); - mask =__raw_readl (EINT_MASK (exynos_eint_base, data->irq)); - mask |=EINT_OFFSET_BIT (data->irq); -__raw_writel (mask,EINT_MASK (exynos_eint_base, data->irq)); -spin_unlock (&eint_lock); -} - -static void exynos_irq_eint_unmask (struct irq_data *data) -{ -u32 mask; - -spin_lock (&eint_lock); - mask =__raw_readl (EINT_MASK (exynos_eint_base, data->irq)); - mask &= ~(EINT_OFFSET_BIT (data->irq)); -__raw_writel (mask,EINT_MASK (exynos_eint_base, data->irq)); -spin_unlock (&eint_lock); -} - -static inline void exynos_irq_eint_ack (struct irq_data *data) -{ -__raw_writel (EINT_OFFSET_BIT (data->irq), -EINT_PEND (exynos_eint_base, data->irq)); -} - -static void exynos_irq_eint_maskack (struct irq_data *data) -{ -exynos_irq_eint_mask (data); -exynos_irq_eint_ack (data); -} - -static int exynos_irq_eint_set_type (struct irq_data *data,unsigned int type) -{ -int offs =EINT_OFFSET (data->irq); -int shift; -u32 ctrl, mask; -u32 newvalue =0 ; - -switch (type) { -case IRQ_TYPE_EDGE_RISING : - newvalue =S5P_IRQ_TYPE_EDGE_RISING ; -break ; - -case IRQ_TYPE_EDGE_FALLING : - newvalue =S5P_IRQ_TYPE_EDGE_FALLING ; -break ; - -case IRQ_TYPE_EDGE_BOTH : - newvalue =S5P_IRQ_TYPE_EDGE_BOTH ; -break ; - -case IRQ_TYPE_LEVEL_LOW : - newvalue =S5P_IRQ_TYPE_LEVEL_LOW ; -break ; - -case IRQ_TYPE_LEVEL_HIGH : - newvalue =S5P_IRQ_TYPE_LEVEL_HIGH ; -break ; - -default : -printk (KERN_ERR "No such irq type %d" , type); -return -EINVAL ; - } - - shift = (offs &0x7 ) *4 ; - mask =0x7 << shift; - -spin_lock (&eint_lock); - ctrl =__raw_readl (EINT_CON (exynos_eint_base, data->irq)); - ctrl &= ~mask; - ctrl |= newvalue << shift; -__raw_writel (ctrl,EINT_CON (exynos_eint_base, data->irq)); -spin_unlock (&eint_lock); - -if (soc_is_exynos5250 ()) -s3c_gpio_cfgpin (exynos5_irq_to_gpio (data->irq),S3C_GPIO_SFN (0xf )); -else -s3c_gpio_cfgpin (exynos4_irq_to_gpio (data->irq),S3C_GPIO_SFN (0xf )); - -return 0 ; -} - -static struct irq_chip exynos_irq_eint = { - .name ="exynos-eint" , - .irq_mask = exynos_irq_eint_mask, - .irq_unmask = exynos_irq_eint_unmask, - .irq_mask_ack = exynos_irq_eint_maskack, - .irq_ack = exynos_irq_eint_ack, - .irq_set_type = exynos_irq_eint_set_type, -#ifdef CONFIG_PM - .irq_set_wake = s3c_irqext_wake, -#endif -}; - -/* -* exynos4_irq_demux_eint -* -* This function demuxes the IRQ from from EINTs 16 to 31. -* It is designed to be inlined into the specific handler -* s5p_irq_demux_eintX_Y. -* -* Each EINT pend/mask registers handle eight of them. -*/ -static inline void exynos_irq_demux_eint (unsigned int start) -{ -unsigned int irq; - -u32 status =__raw_readl (EINT_PEND (exynos_eint_base, start)); -u32 mask =__raw_readl (EINT_MASK (exynos_eint_base, start)); - - status &= ~mask; - status &=0xff ; - -while (status) { - irq =fls (status) -1 ; -generic_handle_irq (irq + start); - status &= ~(1 << irq); - } -} - -static void exynos_irq_demux_eint16_31 (unsigned int irq,struct irq_desc *desc) -{ -struct irq_chip *chip =irq_get_chip (irq); -chained_irq_enter (chip, desc); -exynos_irq_demux_eint (IRQ_EINT (16 )); -exynos_irq_demux_eint (IRQ_EINT (24 )); -chained_irq_exit (chip, desc); -} - -static void exynos_irq_eint0_15 (unsigned int irq,struct irq_desc *desc) -{ -u32 *irq_data =irq_get_handler_data (irq); -struct irq_chip *chip =irq_get_chip (irq); - -chained_irq_enter (chip, desc); -generic_handle_irq (*irq_data); -chained_irq_exit (chip, desc); -} - -static int __init exynos_init_irq_eint (void ) -{ -int irq; - -#ifdef CONFIG_PINCTRL_SAMSUNG -/* -* The Samsung pinctrl driver provides an integrated gpio/pinmux/pinconf -* functionality along with support for external gpio and wakeup -* interrupts. If the samsung pinctrl driver is enabled and includes -* the wakeup interrupt support, then the setting up external wakeup -* interrupts here can be skipped. This check here is temporary to -* allow exynos4 platforms that do not use Samsung pinctrl driver to -* co-exist with platforms that do. When all of the Samsung Exynos4 -* platforms switch over to using the pinctrl driver, the wakeup -* interrupt support code here can be completely removed. -*/ -static const struct of_device_id exynos_pinctrl_ids[] = { - { .compatible ="samsung,exynos4210-pinctrl" , }, - { .compatible ="samsung,exynos4x12-pinctrl" , }, - { .compatible ="samsung,exynos5250-pinctrl" , }, - }; -struct device_node *pctrl_np, *wkup_np; -const char *wkup_compat ="samsung,exynos4210-wakeup-eint" ; - -for_each_matching_node (pctrl_np, exynos_pinctrl_ids) { -if (of_device_is_available (pctrl_np)) { - wkup_np =of_find_compatible_node (pctrl_np,NULL , - wkup_compat); -if (wkup_np) -return -ENODEV ; - } - } -#endif -if (soc_is_exynos5440 ()) -return 0 ; - -if (soc_is_exynos5250 ()) - exynos_eint_base =ioremap (EXYNOS5_PA_GPIO1 ,SZ_4K ); -else - exynos_eint_base =ioremap (EXYNOS4_PA_GPIO2 ,SZ_4K ); - -if (exynos_eint_base ==NULL ) { -pr_err ("unable to ioremap for EINT base address\n" ); -return -ENOMEM ; - } - -for (irq =0 ; irq <=31 ; irq++) { -irq_set_chip_and_handler (IRQ_EINT (irq), &exynos_irq_eint, - handle_level_irq); -set_irq_flags (IRQ_EINT (irq),IRQF_VALID ); - } - -irq_set_chained_handler (EXYNOS_IRQ_EINT16_31 , exynos_irq_demux_eint16_31); - -for (irq =0 ; irq <=15 ; irq++) { - eint0_15_data[irq] =IRQ_EINT (irq); - -if (soc_is_exynos5250 ()) { -irq_set_handler_data (exynos5_eint0_15_src_int[irq], - &eint0_15_data[irq]); -irq_set_chained_handler (exynos5_eint0_15_src_int[irq], - exynos_irq_eint0_15); - }else { -irq_set_handler_data (exynos4_eint0_15_src_int[irq], - &eint0_15_data[irq]); -irq_set_chained_handler (exynos4_eint0_15_src_int[irq], - exynos_irq_eint0_15); - } - } - -return 0 ; -} -arch_initcall (exynos_init_irq_eint);
Signature · 1 line
1.8.2.1
PATCH 6/28 ARM: EXYNOS: common: Remove legacy UART initialization code
In reply to Tomasz FigaThis patch removes legacy UART initialization code that was used to set up UART platform devices when booting with ATAGS, which is not supported on Exynos any more.
--- arch/arm/mach-exynos/common.c | 17 ----------------- arch/arm/plat-samsung/init.c | 8 +++++--- 2 files changed, 5 insertions(+), 20 deletions(-)
arch/arm/mach-exynos/common.c +0 -17
@@ -69,7 +69,6 @@ static const char name_exynos5440[] = "EXYNOS5440";static void exynos4_map_io (void );static void exynos5_map_io (void );static void exynos5440_map_io (void ); -static void exynos4_init_uarts (struct s3c2410_uartcfg *cfg,int no);static int exynos_init (void );unsigned long xxti_f =0 , xusbxti_f =0 ;
@@ -79,21 +78,18 @@ static struct cpu_table cpu_ids[] __initdata = { .idcode = EXYNOS4210_CPU_ID, .idmask = EXYNOS4_CPU_MASK, .map_io = exynos4_map_io, - .init_uarts = exynos4_init_uarts, .init = exynos_init, .name = name_exynos4210, }, { .idcode = EXYNOS4212_CPU_ID, .idmask = EXYNOS4_CPU_MASK, .map_io = exynos4_map_io, - .init_uarts = exynos4_init_uarts, .init = exynos_init, .name = name_exynos4212, }, { .idcode = EXYNOS4412_CPU_ID, .idmask = EXYNOS4_CPU_MASK, .map_io = exynos4_map_io, - .init_uarts = exynos4_init_uarts, .init = exynos_init, .name = name_exynos4412, }, {
@@ -602,16 +598,3 @@ static int __init exynos_init(void)return device_register (&exynos4_dev); } - -/* uart registration process */ - -static void __init exynos4_init_uarts (struct s3c2410_uartcfg *cfg,int no) -{ -struct s3c2410_uartcfg *tcfg = cfg; -u32 ucnt; - -for (ucnt =0 ; ucnt < no; ucnt++, tcfg++) - tcfg->has_fracval =1 ; - -s3c24xx_init_uartdevs ("exynos4210-uart" , exynos4_uart_resources, cfg, no); -}
arch/arm/plat-samsung/init.c +5 -3
@@ -87,7 +87,7 @@ void __init s3c24xx_init_clocks(int xtal) }/* uart management */ - +#if IS_ENABLED (CONFIG_SAMSUNG_ATAGS )static int nr_uarts__initdata =0 ;static struct s3c2410_uartcfg uart_cfgs[CONFIG_SERIAL_SAMSUNG_UARTS ];
@@ -134,11 +134,12 @@ void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)if (cpu ==NULL )return ; -if (cpu->init_uarts ==NULL ) { +if (cpu->init_uarts ==NULL &&IS_ENABLED (CONFIG_SAMSUNG_ATAGS )) {printk (KERN_ERR "s3c24xx_init_uarts: cpu has no uart init\n" ); }else (cpu->init_uarts)(cfg, no); } +#endif static int __init s3c_arch_init (void ) {
@@ -152,8 +153,9 @@ static int __init s3c_arch_init(void) ret = (cpu->init)();if (ret !=0 )return ret; - +#if IS_ENABLED (CONFIG_SAMSUNG_ATAGS ) ret =platform_add_devices (s3c24xx_uart_devs, nr_uarts); +#endif return ret; }
Signature · 1 line
1.8.2.1
PATCH 7/28 ARM: EXYNOS: Remove legacy dev- and setup- files
In reply to Tomasz FigaThis patch removes now unused files containing old device and GPIO setup code that was needed for ATAGS based boot, which is not supported on Exynos any more.
The only exception is setup-i2c0.c that will be removed later, since it has dependencies in plat-samsung/ directory.
--- arch/arm/mach-exynos/Makefile | 3 - arch/arm/mach-exynos/dev-audio.c | 254 -------------------------------- arch/arm/mach-exynos/dev-uart.c | 55 ------- arch/arm/mach-exynos/setup-fimc.c | 44 ------ arch/arm/mach-exynos/setup-fimd0.c | 43 ------ arch/arm/mach-exynos/setup-i2c0.c | 10 -- arch/arm/mach-exynos/setup-i2c1.c | 23 --- arch/arm/mach-exynos/setup-i2c2.c | 23 --- arch/arm/mach-exynos/setup-i2c3.c | 23 --- arch/arm/mach-exynos/setup-i2c4.c | 23 --- arch/arm/mach-exynos/setup-i2c5.c | 23 --- arch/arm/mach-exynos/setup-i2c6.c | 23 --- arch/arm/mach-exynos/setup-i2c7.c | 23 --- arch/arm/mach-exynos/setup-keypad.c | 36 ----- arch/arm/mach-exynos/setup-sdhci-gpio.c | 152 ------------------- arch/arm/mach-exynos/setup-spi.c | 45 ------ arch/arm/mach-exynos/setup-usb-phy.c | 223 ---------------------------- 17 files changed, 1026 deletions(-) delete mode 100644 arch/arm/mach-exynos/dev-audio.c delete mode 100644 arch/arm/mach-exynos/dev-uart.c delete mode 100644 arch/arm/mach-exynos/setup-fimc.c delete mode 100644 arch/arm/mach-exynos/setup-fimd0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c1.c delete mode 100644 arch/arm/mach-exynos/setup-i2c2.c delete mode 100644 arch/arm/mach-exynos/setup-i2c3.c delete mode 100644 arch/arm/mach-exynos/setup-i2c4.c delete mode 100644 arch/arm/mach-exynos/setup-i2c5.c delete mode 100644 arch/arm/mach-exynos/setup-i2c6.c delete mode 100644 arch/arm/mach-exynos/setup-i2c7.c delete mode 100644 arch/arm/mach-exynos/setup-keypad.c delete mode 100644 arch/arm/mach-exynos/setup-sdhci-gpio.c delete mode 100644 arch/arm/mach-exynos/setup-spi.c delete mode 100644 arch/arm/mach-exynos/setup-usb-phy.c
arch/arm/mach-exynos/Makefile +0 -3
@@ -37,7 +37,4 @@ obj-$(CONFIG_MACH_EXYNOS5_DT) += mach-exynos5-dt.o # device support -obj-y += dev-uart.o -obj-$(CONFIG_ARCH_EXYNOS4) += dev-audio.o - obj-$(CONFIG_ARCH_EXYNOS) += setup-i2c0.o
arch/arm/mach-exynos/dev-audio.c deleted +0 -254
254 lines not on this page · raw message
arch/arm/mach-exynos/dev-uart.c deleted +0 -55
55 lines not on this page · raw message
arch/arm/mach-exynos/setup-fimc.c deleted +0 -44
44 lines not on this page · raw message
arch/arm/mach-exynos/setup-fimd0.c deleted +0 -43
43 lines not on this page · raw message
arch/arm/mach-exynos/setup-i2c0.c +0 -10
@@ -13,17 +13,7 @@struct platform_device ;/* don't need the contents */ -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> -#include <plat/cpu.h> -void s3c_i2c0_cfg_gpio (struct platform_device *dev) { -if (soc_is_exynos5250 () ||soc_is_exynos5440 ()) -/* will be implemented with gpio function */ -return ; -s3c_gpio_cfgall_range (EXYNOS4_GPD1 (0 ),2 , -S3C_GPIO_SFN (2 ),S3C_GPIO_PULL_UP ); }
arch/arm/mach-exynos/setup-i2c1.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c1.c -* -* Copyright (C) 2010 Samsung Electronics Co., Ltd. -* -* I2C1 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c1_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPD1 (2 ),2 , -S3C_GPIO_SFN (2 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-i2c2.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c2.c -* -* Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. -* -* I2C2 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c2_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPA0 (6 ),2 , -S3C_GPIO_SFN (3 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-i2c3.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c3.c -* -* Copyright (c) 2010 Samsung Electronics Co., Ltd. -* -* I2C3 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c3_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPA1 (2 ),2 , -S3C_GPIO_SFN (3 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-i2c4.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c4.c -* -* Copyright (c) 2010 Samsung Electronics Co., Ltd. -* -* I2C4 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c4_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPB (2 ),2 , -S3C_GPIO_SFN (3 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-i2c5.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c5.c -* -* Copyright (c) 2010 Samsung Electronics Co., Ltd. -* -* I2C5 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c5_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPB (6 ),2 , -S3C_GPIO_SFN (3 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-i2c6.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c6.c -* -* Copyright (c) 2010 Samsung Electronics Co., Ltd. -* -* I2C6 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c6_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPC1 (3 ),2 , -S3C_GPIO_SFN (4 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-i2c7.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* linux/arch/arm/mach-exynos4/setup-i2c7.c -* -* Copyright (c) 2010 Samsung Electronics Co., Ltd. -* -* I2C7 GPIO configuration. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -#include <linux/gpio.h> -#include <linux/platform_data/i2c-s3c2410.h> -#include <plat/gpio-cfg.h> - -void s3c_i2c7_cfg_gpio (struct platform_device *dev) -{ -s3c_gpio_cfgall_range (EXYNOS4_GPD0 (2 ),2 , -S3C_GPIO_SFN (3 ),S3C_GPIO_PULL_UP ); -}
arch/arm/mach-exynos/setup-keypad.c deleted +0 -36
@@ -1,36 +0,0 @@ -/* linux/arch/arm/mach-exynos4/setup-keypad.c -* -* Copyright (c) 2011 Samsung Electronics Co., Ltd. -* http://www.samsung.com -* -* GPIO configuration for Exynos4 KeyPad device -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#include <linux/gpio.h> -#include <plat/gpio-cfg.h> - -void samsung_keypad_cfg_gpio (unsigned int rows,unsigned int cols) -{ -/* Keypads can be of various combinations, Just making sure */ - -if (rows >8 ) { -/* Set all the necessary GPX2 pins: KP_ROW[0~7] */ -s3c_gpio_cfgall_range (EXYNOS4_GPX2 (0 ),8 ,S3C_GPIO_SFN (3 ), -S3C_GPIO_PULL_UP ); - -/* Set all the necessary GPX3 pins: KP_ROW[8~] */ -s3c_gpio_cfgall_range (EXYNOS4_GPX3 (0 ), (rows -8 ), -S3C_GPIO_SFN (3 ),S3C_GPIO_PULL_UP ); - }else { -/* Set all the necessary GPX2 pins: KP_ROW[x] */ -s3c_gpio_cfgall_range (EXYNOS4_GPX2 (0 ), rows,S3C_GPIO_SFN (3 ), -S3C_GPIO_PULL_UP ); - } - -/* Set all the necessary GPX1 pins to special-function 3: KP_COL[x] */ -s3c_gpio_cfgrange_nopull (EXYNOS4_GPX1 (0 ), cols,S3C_GPIO_SFN (3 )); -}
arch/arm/mach-exynos/setup-sdhci-gpio.c deleted +0 -152
152 lines not on this page · raw message
arch/arm/mach-exynos/setup-spi.c deleted +0 -45
45 lines not on this page · raw message
arch/arm/mach-exynos/setup-usb-phy.c deleted +0 -223
223 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH 8/28 ARM: EXYNOS: common: Remove legacy interrupt initialization code
In reply to Tomasz FigaThis patch removes legacy IRQ initialization code that was used to set up interrupt handling when booting with ATAGS, which is not supported any more.
--- arch/arm/mach-exynos/common.c | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-)
arch/arm/mach-exynos/common.c +1 -29
@@ -41,7 +41,6 @@#include <mach/regs-irq.h> #include <mach/regs-pmu.h> #include <mach/regs-gpio.h> -#include <mach/irqs.h> #include <plat/cpu.h> #include <plat/devs.h>
@@ -486,41 +485,14 @@ void __init exynos_init_time(void) } } -static unsigned int max_combiner_nr (void ) -{ -if (soc_is_exynos5250 ()) -return EXYNOS5_MAX_COMBINER_NR ; -else if (soc_is_exynos4412 ()) -return EXYNOS4412_MAX_COMBINER_NR ; -else if (soc_is_exynos4212 ()) -return EXYNOS4212_MAX_COMBINER_NR ; -else -return EXYNOS4210_MAX_COMBINER_NR ; -} - -void __init exynos4_init_irq (void ) { -unsigned int gic_bank_offset; - - gic_bank_offset =soc_is_exynos4412 () ?0x4000 :0x8000 ; - -if (!of_have_populated_dt ()) -gic_init_bases (0 ,IRQ_PPI (0 ),S5P_VA_GIC_DIST ,S5P_VA_GIC_CPU , gic_bank_offset,NULL ); -else -irqchip_init (); - -if (!of_have_populated_dt ()) -combiner_init (S5P_VA_COMBINER_BASE ,NULL , -max_combiner_nr (),COMBINER_IRQ (0 ,0 )); - - gic_arch_extn.irq_set_wake = s3c_irq_wake; +irqchip_init (); }void __init exynos5_init_irq (void ) {irqchip_init (); - gic_arch_extn.irq_set_wake = s3c_irq_wake; }struct bus_type exynos_subsys = {
Signature · 1 line
1.8.2.1
PATCH 9/28 ARM: EXYNOS: common: Remove legacy timer initialization code
In reply to Tomasz FigaThis patch removes legacy timer initialization code that was used to set up system timers when booting with ATAGS, which is not supported on Exynos any more.
--- arch/arm/mach-exynos/common.c | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-)
arch/arm/mach-exynos/common.c +2 -37
@@ -299,13 +299,6 @@ static struct map_desc exynos5440_iodesc0[] __initdata = { }, }; -static struct samsung_pwm_variant exynos4_pwm_variant = { - .bits =32 , - .div_base =0 , - .has_tint_cstat = true, - .tclk_mask =0 , -}; -void exynos4_restart (char mode,const char *cmd) {__raw_writel (0x1 ,S5P_SWRESET );
@@ -451,38 +444,10 @@ static void __init exynos5440_map_io(void)iotable_init (exynos5440_iodesc0,ARRAY_SIZE (exynos5440_iodesc0)); } -void __init exynos_set_timer_source (u8 channels) -{ - exynos4_pwm_variant.output_mask =BIT (SAMSUNG_PWM_NUM ) -1 ; - exynos4_pwm_variant.output_mask &= ~channels; -} -void __init exynos_init_time (void ) { -unsigned int timer_irqs[SAMSUNG_PWM_NUM ] = { -EXYNOS4_IRQ_TIMER0_VIC ,EXYNOS4_IRQ_TIMER1_VIC , -EXYNOS4_IRQ_TIMER2_VIC ,EXYNOS4_IRQ_TIMER3_VIC , -EXYNOS4_IRQ_TIMER4_VIC , - }; - -if (of_have_populated_dt ()) { -of_clk_init (NULL ); -clocksource_of_init (); - }else { -/* todo: remove after migrating legacy E4 platforms to dt */ -#ifdef CONFIG_ARCH_EXYNOS4 -exynos4_clk_init (NULL , !soc_is_exynos4210 (),S5P_VA_CMU ,readl (S5P_VA_CHIPID +8 ) &1 ); -exynos4_clk_register_fixed_ext (xxti_f, xusbxti_f); -#endif -#ifdef CONFIG_CLKSRC_SAMSUNG_PWM -if (soc_is_exynos4210 () &&samsung_rev () ==EXYNOS4210_REV_0 ) -samsung_pwm_clocksource_init (S3C_VA_TIMER , - timer_irqs, &exynos4_pwm_variant); - else -#endif -mct_init (S5P_VA_SYSTIMER ,EXYNOS4_IRQ_MCT_G0 , -EXYNOS4_IRQ_MCT_L0 ,EXYNOS4_IRQ_MCT_L1 ); - } +of_clk_init (NULL ); +clocksource_of_init (); }void __init exynos4_init_irq (void )
Signature · 1 line
1.8.2.1
PATCH 10/28 ARM: EXYNOS: common: Remove platform device initialization
In reply to Tomasz FigaThis patch removes legacy platform device initialization code that was used to set names and other parameters of static platform devices when booting with ATAGS, which is not supported on Exynos any more.
--- arch/arm/mach-exynos/common.c | 37 ------------------------------------- 1 file changed, 37 deletions(-)
arch/arm/mach-exynos/common.c +0 -37
@@ -43,16 +43,7 @@#include <mach/regs-gpio.h> #include <plat/cpu.h> -#include <plat/devs.h> #include <plat/pm.h> -#include <plat/sdhci.h> -#include <plat/gpio-cfg.h> -#include <plat/adc-core.h> -#include <plat/fb-core.h> -#include <plat/fimc-core.h> -#include <plat/iic-core.h> -#include <plat/tv-core.h> -#include <plat/spi-core.h> #include <plat/regs-serial.h> #include "common.h"
@@ -401,34 +392,6 @@ static void __init exynos4_map_io(void)iotable_init (exynos4210_iodesc,ARRAY_SIZE (exynos4210_iodesc));if (soc_is_exynos4212 () ||soc_is_exynos4412 ())iotable_init (exynos4x12_iodesc,ARRAY_SIZE (exynos4x12_iodesc)); - -/* initialize device information early */ -exynos4_default_sdhci0 (); -exynos4_default_sdhci1 (); -exynos4_default_sdhci2 (); -exynos4_default_sdhci3 (); - -s3c_adc_setname ("samsung-adc-v3" ); - -s3c_fimc_setname (0 ,"exynos4-fimc" ); -s3c_fimc_setname (1 ,"exynos4-fimc" ); -s3c_fimc_setname (2 ,"exynos4-fimc" ); -s3c_fimc_setname (3 ,"exynos4-fimc" ); - -s3c_sdhci_setname (0 ,"exynos4-sdhci" ); -s3c_sdhci_setname (1 ,"exynos4-sdhci" ); -s3c_sdhci_setname (2 ,"exynos4-sdhci" ); -s3c_sdhci_setname (3 ,"exynos4-sdhci" ); - -/* The I2C bus controllers are directly compatible with s3c2440 */ -s3c_i2c0_setname ("s3c2440-i2c" ); -s3c_i2c1_setname ("s3c2440-i2c" ); -s3c_i2c2_setname ("s3c2440-i2c" ); - -s5p_fb_setname (0 ,"exynos4-fb" ); -s5p_hdmi_setname ("exynos4-hdmi" ); - -s3c64xx_spi_setname ("exynos4210-spi" ); }static void __init exynos5_map_io (void )
Signature · 1 line
1.8.2.1
PATCH 11/28 ARM: EXYNOS: common: Remove legacy mapping of chip ID block
In reply to Tomasz FigaThis patch removes static mapping of chip ID block that was used when booting with ATAGS, which is not supported on Exynos any more.
--- arch/arm/mach-exynos/common.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
arch/arm/mach-exynos/common.c +1 -13
@@ -99,15 +99,6 @@ static struct cpu_table cpu_ids[] __initdata = {/* Initial IO mappings */ -static struct map_desc exynos_iodesc[]__initdata = { - { - .virtual = (unsigned long )S5P_VA_CHIPID , - .pfn =__phys_to_pfn (EXYNOS_PA_CHIPID ), - .length =SZ_4K , - .type =MT_DEVICE , - }, -}; -static struct map_desc exynos4_iodesc[]__initdata = { { .virtual = (unsigned long )S3C_VA_SYS ,
@@ -365,10 +356,7 @@ void __init exynos_init_io(struct map_desc *mach_desc, int size) {debug_ll_io_init (); -if (initial_boot_params) -of_scan_flat_dt (exynos_fdt_map_chipid,NULL ); -else -iotable_init (exynos_iodesc,ARRAY_SIZE (exynos_iodesc)); +of_scan_flat_dt (exynos_fdt_map_chipid,NULL );if (mach_desc)iotable_init (mach_desc, size);
Signature · 1 line
1.8.2.1
PATCH 12/28 ARM: EXYNOS: firmware: Remove check for device tree presence
In reply to Tomasz FigaThis patch makes the firmware setup code assume presence of DT, since it is now the only way of booting supported for Exynos.
--- arch/arm/mach-exynos/firmware.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-)
arch/arm/mach-exynos/firmware.c +10 -12
@@ -48,20 +48,18 @@ static const struct firmware_ops exynos_firmware_ops = {void __init exynos_firmware_init (void ) { -if (of_have_populated_dt ()) { -struct device_node *nd; -const __be32 *addr; +struct device_node *nd; +const __be32 *addr; - nd =of_find_compatible_node (NULL ,NULL , -"samsung,secure-firmware" ); -if (!nd) -return ; + nd =of_find_compatible_node (NULL ,NULL , +"samsung,secure-firmware" ); +if (!nd) +return ; - addr =of_get_address (nd,0 ,NULL ,NULL ); -if (!addr) { -pr_err ("%s: No address specified.\n" , __func__); -return ; - } + addr =of_get_address (nd,0 ,NULL ,NULL ); +if (!addr) { +pr_err ("%s: No address specified.\n" , __func__); +return ; }pr_info ("Running under secure firmware.\n" );
Signature · 1 line
1.8.2.1
PATCH 13/28 ARM: EXYNOS: pm_domains: Remove legacy power domain registration code
In reply to Tomasz FigaThis patch removes static definitions of power domains and code responsible for registering them and adding devices to them, since only DT based boot is now supported on Exynos.
--- arch/arm/mach-exynos/pm_domains.c | 94 +-------------------------------------- 1 file changed, 1 insertion(+), 93 deletions(-)
arch/arm/mach-exynos/pm_domains.c +1 -93
@@ -74,16 +74,6 @@ static int exynos_pd_power_off(struct generic_pm_domain *domain)return exynos_pd_power (domain, false); } -#define EXYNOS_GPD (PD ,BASE ,NAME ) \ -static struct exynos_pm_domain PD = { \ - .base = (void __iomem *)BASE, \ - .name = NAME, \ - .pd = { \ - .power_off = exynos_pd_power_off, \ - .power_on = exynos_pd_power_on, \ - }, \ -} -static void exynos_add_device_to_domain (struct exynos_pm_domain *pd,struct device *dev) {
@@ -156,7 +146,7 @@ static struct notifier_block platform_nb = { .notifier_call = exynos_pm_notifier_call, }; -static __init int exynos_pm_dt_parse_domains (void ) +static __init int exynos4_pm_init_power_domain (void ) {struct platform_device *pdev;struct device_node *np;
@@ -192,88 +182,6 @@ static __init int exynos_pm_dt_parse_domains(void)return 0 ; } - -static __init __maybe_unused void exynos_pm_add_dev_to_genpd (struct platform_device *pdev, -struct exynos_pm_domain *pd) -{ -if (pdev->dev.bus) { -if (!pm_genpd_add_device (&pd->pd, &pdev->dev)) -pm_genpd_dev_need_restore (&pdev->dev, true); -else -pr_info ("%s: error in adding %s device to %s power" -"domain\n" , __func__,dev_name (&pdev->dev), - pd->name); - } -} - -EXYNOS_GPD (exynos4_pd_mfc,S5P_PMU_MFC_CONF ,"pd-mfc" ); -EXYNOS_GPD (exynos4_pd_g3d,S5P_PMU_G3D_CONF ,"pd-g3d" ); -EXYNOS_GPD (exynos4_pd_lcd0,S5P_PMU_LCD0_CONF ,"pd-lcd0" ); -EXYNOS_GPD (exynos4_pd_lcd1,S5P_PMU_LCD1_CONF ,"pd-lcd1" ); -EXYNOS_GPD (exynos4_pd_tv,S5P_PMU_TV_CONF ,"pd-tv" ); -EXYNOS_GPD (exynos4_pd_cam,S5P_PMU_CAM_CONF ,"pd-cam" ); -EXYNOS_GPD (exynos4_pd_gps,S5P_PMU_GPS_CONF ,"pd-gps" ); - -static struct exynos_pm_domain *exynos4_pm_domains[] = { - &exynos4_pd_mfc, - &exynos4_pd_g3d, - &exynos4_pd_lcd0, - &exynos4_pd_lcd1, - &exynos4_pd_tv, - &exynos4_pd_cam, - &exynos4_pd_gps, -}; - -static __init int exynos4_pm_init_power_domain (void ) -{ -int idx; - -if (of_have_populated_dt ()) -return exynos_pm_dt_parse_domains (); - -for (idx =0 ; idx <ARRAY_SIZE (exynos4_pm_domains); idx++) { -struct exynos_pm_domain *pd = exynos4_pm_domains[idx]; -int on =__raw_readl (pd->base +0x4 ) &S5P_INT_LOCAL_PWR_EN ; - -pm_genpd_init (&pd->pd,NULL , !on); - } - -#ifdef CONFIG_S5P_DEV_FIMD0 -exynos_pm_add_dev_to_genpd (&s5p_device_fimd0, &exynos4_pd_lcd0); -#endif -#ifdef CONFIG_S5P_DEV_TV -exynos_pm_add_dev_to_genpd (&s5p_device_hdmi, &exynos4_pd_tv); -exynos_pm_add_dev_to_genpd (&s5p_device_mixer, &exynos4_pd_tv); -#endif -#ifdef CONFIG_S5P_DEV_MFC -exynos_pm_add_dev_to_genpd (&s5p_device_mfc, &exynos4_pd_mfc); -#endif -#ifdef CONFIG_S5P_DEV_FIMC0 -exynos_pm_add_dev_to_genpd (&s5p_device_fimc0, &exynos4_pd_cam); -#endif -#ifdef CONFIG_S5P_DEV_FIMC1 -exynos_pm_add_dev_to_genpd (&s5p_device_fimc1, &exynos4_pd_cam); -#endif -#ifdef CONFIG_S5P_DEV_FIMC2 -exynos_pm_add_dev_to_genpd (&s5p_device_fimc2, &exynos4_pd_cam); -#endif -#ifdef CONFIG_S5P_DEV_FIMC3 -exynos_pm_add_dev_to_genpd (&s5p_device_fimc3, &exynos4_pd_cam); -#endif -#ifdef CONFIG_S5P_DEV_CSIS0 -exynos_pm_add_dev_to_genpd (&s5p_device_mipi_csis0, &exynos4_pd_cam); -#endif -#ifdef CONFIG_S5P_DEV_CSIS1 -exynos_pm_add_dev_to_genpd (&s5p_device_mipi_csis1, &exynos4_pd_cam); -#endif -#ifdef CONFIG_S5P_DEV_G2D -exynos_pm_add_dev_to_genpd (&s5p_device_g2d, &exynos4_pd_lcd0); -#endif -#ifdef CONFIG_S5P_DEV_JPEG -exynos_pm_add_dev_to_genpd (&s5p_device_jpeg, &exynos4_pd_cam); -#endif -return 0 ; -}arch_initcall (exynos4_pm_init_power_domain);int __init exynos_pm_late_initcall (void )
Signature · 1 line
1.8.2.1
PATCH 14/28 ARM: SAMSUNG: Introduce GPIO_SAMSUNG Kconfig entry
In reply to Tomasz FigaThis patch adds Kconfig entry that selects whether legacy Samsung GPIO driver should be built or not. For platforms that support only DT based boot, the new pinctrl driver is used and so the old one is not needed.
--- arch/arm/Kconfig | 6 ++++++ arch/arm/plat-samsung/Makefile | 5 +++-- arch/arm/plat-samsung/include/plat/pm.h | 5 +++++ drivers/gpio/Kconfig | 7 +++++++ drivers/gpio/Makefile | 2 +- 5 files changed, 22 insertions(+), 3 deletions(-)
arch/arm/Kconfig +6 -0
@@ -695,6 +695,7 @@ config ARCH_S3C24XX select CLKDEV_LOOKUP select CLKSRC_MMIO select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG
@@ -718,6 +719,7 @@ config ARCH_S3C64XX select CLKSRC_MMIO select CPU_V6 select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG
@@ -741,6 +743,7 @@ config ARCH_S5P64X0 select CLKSRC_MMIO select CPU_V6 select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG
@@ -758,6 +761,7 @@ config ARCH_S5PC100 select CLKSRC_MMIO select CPU_V7 select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG
@@ -776,6 +780,7 @@ config ARCH_S5PV210 select CLKSRC_MMIO select CPU_V7 select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG
@@ -795,6 +800,7 @@ config ARCH_EXYNOS select COMMON_CLK select CPU_V7 select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG
arch/arm/plat-samsung/Makefile +3 -2
@@ -52,10 +52,11 @@ obj-$(CONFIG_SAMSUNG_DMADEV) += dma-ops.o # PM support obj-$(CONFIG_PM) += pm.o -obj-$(CONFIG_PM) += pm-gpio.o +obj-$(CONFIG_GPIO_SAMSUNG) += pm-gpio.o obj-$(CONFIG_SAMSUNG_PM_CHECK) += pm-check.o obj-$(CONFIG_SAMSUNG_WAKEMASK) += wakeup-mask.o -obj-$(CONFIG_S5P_PM) += s5p-pm.o s5p-irq-pm.o +obj-$(CONFIG_S5P_PM) += s5p-pm.o +obj-$(CONFIG_S5P_PM) += s5p-irq-pm.o obj-$(CONFIG_S5P_SLEEP) += s5p-sleep.o
arch/arm/plat-samsung/include/plat/pm.h +5 -0
@@ -166,6 +166,7 @@ extern void s3c_pm_check_store(void);*/ extern void s3c_pm_configure_extint (void ); +#ifdef CONFIG_GPIO_SAMSUNG /** * samsung_pm_restore_gpios() - restore the state of the gpios after sleep. *
@@ -181,6 +182,10 @@ extern void samsung_pm_restore_gpios(void);* Save the GPIO states for resotration on resume. See samsung_pm_restore_gpios(). */ extern void samsung_pm_save_gpios (void ); +#else +static inline void samsung_pm_restore_gpios (void ) {} +static inline void samsung_pm_save_gpios (void ) {} +#endif extern void s3c_pm_save_core (void );extern void s3c_pm_restore_core (void );
drivers/gpio/Kconfig +7 -0
@@ -209,6 +209,13 @@ config GPIO_RCAR help Say yes here to support GPIO on Renesas R-Car SoCs. +config GPIO_SAMSUNG + bool + depends on PLAT_SAMSUNG + help + Legacy GPIO support. Use only for platforms without support for + pinctrl. + config GPIO_SPEAR_SPICS bool "ST SPEAr13xx SPI Chip Select as GPIO support" depends on PLAT_SPEAR
drivers/gpio/Makefile +1 -1
@@ -59,7 +59,7 @@ obj-$(CONFIG_GPIO_PXA) += gpio-pxa.o obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o obj-$(CONFIG_GPIO_RCAR) += gpio-rcar.o -obj-$(CONFIG_PLAT_SAMSUNG) += gpio-samsung.o +obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o obj-$(CONFIG_GPIO_SCH) += gpio-sch.o obj-$(CONFIG_GPIO_SODAVILLE) += gpio-sodaville.o
Signature · 1 line
1.8.2.1
PATCH 14/28 ARM: SAMSUNG: Introduce GPIO_SAMSUNG Kconfig entry
Quoted 8 lines · Tomasz Figa
This patch adds
Kconfigentry that selects whether legacy Samsung GPIO driver should be built or not. For platforms that support only DT based boot, the new pinctrl driver is used and so the old one is not needed.Cc Grant Likely <[email protected]>Cc Linus Walleij <[email protected]>Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>
Looks good to me.
Yours,
Linus Walleij
PATCH 15/28 ARM: EXYNOS: Provide compatibility stubs for PM code in pm-core.h header
In reply to Tomasz FigaThis patch adds several compatibility definitions that are not relevant for Exynos, but are required by Samsung PM core.
--- arch/arm/mach-exynos/include/mach/pm-core.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/mach-exynos/include/mach/pm-core.h +4 -0
@@ -69,4 +69,8 @@ static inline void samsung_pm_saved_gpios(void) /* nothing here yet */ } +/* Compatibility definitions to make plat-samsung/pm.c compile */ +#define s3c_irqwake_intallow 0 +#define s3c_irqwake_eintallow 0 +#endif /* __ASM_ARCH_PM_CORE_H */
Signature · 1 line
1.8.2.1
PATCH 16/28 ARM: SAMSUNG: Compile s5p-irq-pm only with ATAGS support
In reply to Tomasz FigaThis patch adds new Kconfig symbol, S5P_IRQ_PM that gets selected by S5P_PM, but only if SAMSUNG_ATAGS is selected.
--- arch/arm/plat-samsung/Kconfig | 6 ++++++ arch/arm/plat-samsung/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
arch/arm/plat-samsung/Kconfig +6 -0
@@ -421,6 +421,12 @@ config S3C_DMA help Internal configuration for S3C DMA core +config S5P_IRQ_PM + bool + default y if S5P_PM + help + Legacy IRQ power management for S5P platforms + endif config SAMSUNG_DMADEV
arch/arm/plat-samsung/Makefile +1 -1
@@ -58,5 +58,5 @@ obj-$(CONFIG_SAMSUNG_PM_CHECK) += pm-check.o obj-$(CONFIG_SAMSUNG_WAKEMASK) += wakeup-mask.o obj-$(CONFIG_S5P_PM) += s5p-pm.o -obj-$(CONFIG_S5P_PM) += s5p-irq-pm.o +obj-$(CONFIG_S5P_IRQ_PM) += s5p-irq-pm.o obj-$(CONFIG_S5P_SLEEP) += s5p-sleep.o
Signature · 1 line
1.8.2.1
PATCH 17/28 ARM: EXYNOS: Decouple ARCH_EXYNOS from PLAT_S5P
In reply to Tomasz FigaAfter removing support for ATAGS based boot on Exynos, there is not much that can be shared between Exynos and other S5P platforms. This patch makes Exynos a standalone Samsung platform, not using PLAT_S5P.
--- arch/arm/Kconfig | 4 ++++ arch/arm/Makefile | 1 + arch/arm/mach-exynos/Kconfig | 1 + arch/arm/plat-samsung/Kconfig | 8 +++----- arch/arm/plat-samsung/pm-gpio.c | 5 +++-- 5 files changed, 12 insertions(+), 7 deletions(-)
arch/arm/Kconfig +4 -0
@@ -795,7 +795,9 @@ config ARCH_EXYNOS bool "Samsung EXYNOS" select ARCH_HAS_CPUFREQ select ARCH_HAS_HOLES_MEMORYMODEL + select ARCH_REQUIRE_GPIOLIB select ARCH_SPARSEMEM_ENABLE + select ARM_GIC select CLKDEV_LOOKUP select COMMON_CLK select CPU_V7
@@ -807,7 +809,9 @@ config ARCH_EXYNOS select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H + select S5P_GPIO_DRVSTR select SAMSUNG_ATAGS + select SAMSUNG_GPIOLIB_4BIT select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)
arch/arm/Makefile +1 -0
@@ -204,6 +204,7 @@ plat-$(CONFIG_PLAT_ORION) += orion plat-$(CONFIG_PLAT_PXA) += pxa plat-$(CONFIG_PLAT_S3C24XX) += samsung plat-$(CONFIG_PLAT_S5P) += samsung +plat-$(CONFIG_ARCH_EXYNOS) += samsung plat-$(CONFIG_PLAT_VERSATILE) += versatile ifeq ($(CONFIG_ARCH_EBSA110),y)
arch/arm/mach-exynos/Kconfig +1 -0
@@ -18,6 +18,7 @@ config ARCH_EXYNOS4 select HAVE_SMP select MIGHT_HAVE_CACHE_L2X0 select PINCTRL + select GIC_NON_BANKED help Samsung EXYNOS4 SoCs based systems
arch/arm/plat-samsung/Kconfig +3 -5
@@ -6,7 +6,7 @@ config PLAT_SAMSUNG bool - depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P + depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P || ARCH_EXYNOS default y select GENERIC_IRQ_CHIP select NO_IOPORT
@@ -15,12 +15,10 @@ config PLAT_SAMSUNG config PLAT_S5P bool - depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS) + depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210) default y select ARCH_REQUIRE_GPIOLIB - select ARM_GIC if ARCH_EXYNOS - select ARM_VIC if !ARCH_EXYNOS - select GIC_NON_BANKED if ARCH_EXYNOS4 + select ARM_VIC select NO_IOPORT select PLAT_SAMSUNG select S3C_GPIO_TRACK
arch/arm/plat-samsung/pm-gpio.c +3 -2
@@ -192,7 +192,8 @@ struct samsung_gpio_pm samsung_gpio_pm_2bit = { .resume = samsung_gpio_pm_2bit_resume, }; -#if defined(CONFIG_ARCH_S3C64XX ) || defined(CONFIG_PLAT_S5P ) +#if defined(CONFIG_ARCH_S3C64XX ) || defined(CONFIG_PLAT_S5P ) \ + || defined(CONFIG_ARCH_EXYNOS )static void samsung_gpio_pm_4bit_save (struct samsung_gpio_chip *chip) { chip->pm_save[1 ] =__raw_readl (chip->base +OFFS_CON );
@@ -302,7 +303,7 @@ struct samsung_gpio_pm samsung_gpio_pm_4bit = { .save = samsung_gpio_pm_4bit_save, .resume = samsung_gpio_pm_4bit_resume, }; -#endif /* CONFIG_ARCH_S3C64XX || CONFIG_PLAT_S5P */ +#endif /* CONFIG_ARCH_S3C64XX || CONFIG_PLAT_S5P || CONFIG_ARCH_EXYNOS */ /** * samsung_pm_save_gpio() - save gpio chip data for suspend
Signature · 1 line
1.8.2.1
PATCH 17/28 ARM: EXYNOS: Decouple ARCH_EXYNOS from PLAT_S5P
Quoted 30 lines · Tomasz Figa
After removing support for ATAGS based boot on Exynos, there is not much that can be shared between Exynos and other S5P platforms. This patch makes Exynos a standalone Samsung platform, not using
PLAT_S5P.Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/Kconfig | 4 ++++ arch/arm/Makefile | 1 + arch/arm/mach-exynos/Kconfig | 1 + arch/arm/plat-samsung/Kconfig | 8 +++----- arch/arm/plat-samsung/pm-gpio.c | 5 +++-- 5 files changed, 12 insertions(+), 7 deletions(-)arch/arm/Kconfig +2
-0@@ -795,7 +795,9 @@ config ARCH_EXYNOS bool "Samsung EXYNOS" select ARCH_HAS_CPUFREQ select ARCH_HAS_HOLES_MEMORYMODEL + select ARCH_REQUIRE_GPIOLIB select ARCH_SPARSEMEM_ENABLE + select ARM_GIC select CLKDEV_LOOKUP select COMMON_CLK select CPU_V7
arch/arm/Kconfig config ARCH_EXYNOS · line 814
Quoted 6 lines
arch/arm/Kconfig +2
-0@@ -807,7 +809,9 @@ config ARCH_EXYNOS select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H + select S5P_GPIO_DRVSTR select SAMSUNG_ATAGS + select SAMSUNG_GPIOLIB_4BIT
SAMSUNG_GPIOLIB_4BIT is not used anywhere...
arch/arm/Makefile plat-$(CONFIG_PLAT_ORION) += orion · line 207
Quoted 12 lines
arch/arm/Kconfig +0
-0select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)arch/arm/Makefile +1
-0@@ -204,6 +204,7 @@ plat-$(CONFIG_PLAT_ORION) += orion plat-$(CONFIG_PLAT_PXA) += pxa plat-$(CONFIG_PLAT_S3C24XX) += samsung plat-$(CONFIG_PLAT_S5P) += samsung +plat-$(CONFIG_ARCH_EXYNOS) += samsung
Put it in alphabetical order.
arch/arm/mach-exynos/Kconfig config ARCH_EXYNOS4 · line 21
Quoted 12 lines
arch/arm/Makefile +0
-0plat-$(CONFIG_PLAT_VERSATILE) += versatile ifeq ($(CONFIG_ARCH_EBSA110),y)arch/arm/mach-exynos/Kconfig +1
-0@@ -18,6 +18,7 @@ config ARCH_EXYNOS4 select HAVE_SMP select MIGHT_HAVE_CACHE_L2X0 select PINCTRL + select GIC_NON_BANKED
Please put it in alphabetical order
Quoted 57 lines
arch/arm/mach-exynos/Kconfig +0
-0help Samsung EXYNOS4 SoCs based systemsarch/arm/plat-samsung/Kconfig +3
-5@@ -6,7 +6,7 @@ config PLAT_SAMSUNG bool - depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P + depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P || ARCH_EXYNOS default y select GENERIC_IRQ_CHIP select NO_IOPORT@@ -15,12 +15,10 @@ config PLAT_SAMSUNG config PLAT_S5P bool - depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS) + depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210) default y select ARCH_REQUIRE_GPIOLIB - select ARM_GIC if ARCH_EXYNOS - select ARM_VIC if !ARCH_EXYNOS - select GIC_NON_BANKED if ARCH_EXYNOS4 + select ARM_VIC select NO_IOPORT select PLAT_SAMSUNGarch/arm/plat-samsung/Kconfig +0
-0select S3C_GPIO_TRACKarch/arm/plat-samsung/pm- renamed from arch/arm/plat-samsung/pm-gpio.c +0
-0
gpio.c
index c2ff92c..a8de3cf 100644arch/arm/plat-samsung/pm-gpio.c +3
-3@@ -192,7 +192,8 @@ struct samsung_gpio_pm samsung_gpio_pm_2bit = { .resume = samsung_gpio_pm_2bit_resume, }; -#if defined(CONFIG_ARCH_S3C64XX ) || defined(CONFIG_PLAT_S5P ) +#if defined(CONFIG_ARCH_S3C64XX ) || defined(CONFIG_PLAT_S5P ) \ + || defined(CONFIG_ARCH_EXYNOS )static void samsung_gpio_pm_4bit_save (struct samsung_gpio_chip *chip) { chip->pm_save[1 ] =__raw_readl (chip->base +OFFS_CON );@@ -302,7 +303,7 @@ struct samsung_gpio_pm samsung_gpio_pm_4bit = { .save = samsung_gpio_pm_4bit_save, .resume = samsung_gpio_pm_4bit_resume, }; -#endif /* CONFIG_ARCH_S3C64XX || CONFIG_PLAT_S5P */ +#endif /* CONFIG_ARCH_S3C64XX || CONFIG_PLAT_S5P || CONFIG_ARCH_EXYNOS */ /** * samsung_pm_save_gpio() - save gpio chip data for suspend --
Quoted 1 line
1.8.2.1
How about PLAT_S5P in drivers/media/platform/ and drivers/usb/?
- Kukjin
PATCH 17/28 ARM: EXYNOS: Decouple ARCH_EXYNOS from PLAT_S5P
Hi Kukjin,
Thanks for review.
Quoted 42 lines · On Saturday 15 of June 2013 10:52:37 Kukjin Kim wrote:
Quoted 41 lines · Tomasz Figa
After removing support for ATAGS based boot on Exynos, there is not much that can be shared between Exynos and other S5P platforms. This patch makes Exynos a standalone Samsung platform, not using
PLAT_S5P.Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
arch/arm/Kconfig | 4 ++++ arch/arm/Makefile | 1 + arch/arm/mach-exynos/Kconfig | 1 + arch/arm/plat-samsung/Kconfig | 8 +++----- arch/arm/plat-samsung/pm-gpio.c | 5 +++-- 5 files changed, 12 insertions(+), 7 deletions(-)arch/arm/Kconfig +2
-0@@ -795,7 +795,9 @@ config ARCH_EXYNOS bool "Samsung EXYNOS" select ARCH_HAS_CPUFREQ select ARCH_HAS_HOLES_MEMORYMODEL + select ARCH_REQUIRE_GPIOLIB select ARCH_SPARSEMEM_ENABLE + select ARM_GIC select CLKDEV_LOOKUP select COMMON_CLK select CPU_V7@@ -807,7 +809,9 @@ config ARCH_EXYNOS select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H
Quoted 7 lines
arch/arm/Kconfig config ARCH_EXYNOS · line 814
Quoted 5 lines
arch/arm/Kconfig +2
-0+ select S5P_GPIO_DRVSTR select SAMSUNG_ATAGS + select SAMSUNG_GPIOLIB_4BIT
SAMSUNG_GPIOLIB_4BITis not used anywhere...
Right. It seems to be a defined Kconfig symbol that is selected in several places, but nothing actually uses it. Will remove it.
Quoted 11 lines
Quoted 11 lines
arch/arm/Kconfig +0
-0select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)arch/arm/Makefile +0
-0@@ -204,6 +204,7 @@ plat-$(CONFIG_PLAT_ORION) += orion
Quoted 7 lines
arch/arm/Makefile plat-$(CONFIG_PLAT_ORION) += orion
Quoted 5 lines
arch/arm/Makefile +1
-0plat-$(CONFIG_PLAT_PXA) += pxa plat-$(CONFIG_PLAT_S3C24XX) += samsung plat-$(CONFIG_PLAT_S5P) += samsung +plat-$(CONFIG_ARCH_EXYNOS) += samsungPut it in alphabetical order.
Right, sorry.
Quoted 10 lines
Quoted 10 lines
arch/arm/Makefile +0
-0plat-$(CONFIG_PLAT_VERSATILE) += versatileifeq ($(CONFIG_ARCH_EBSA110),y)
(quoted diff) +0
-0b/arch/arm/mach-exynos/Kconfig index 0d93ebe..47d8d9e 100644
arch/arm/mach-exynos/Kconfig +0
-0@@ -18,6 +18,7 @@ config ARCH_EXYNOS4
Quoted 7 lines
arch/arm/mach-exynos/Kconfig config ARCH_EXYNOS4
Quoted 5 lines
arch/arm/mach-exynos/Kconfig +1
-0select HAVE_SMP select MIGHT_HAVE_CACHE_L2X0 select PINCTRL + select GIC_NON_BANKEDPlease put it in alphabetical order
OK.
Quoted 75 lines
Quoted 75 lines
arch/arm/mach-exynos/Kconfig +0
-0helparch/arm/mach-exynos/Kconfig +0
-0Samsung EXYNOS4 SoCs based systems(quoted diff) +0
-0b/arch/arm/plat-samsung/Kconfig index 1c607da..6c23722 100644
arch/arm/plat-samsung/Kconfig +1
-1@@ -6,7 +6,7 @@ config PLAT_SAMSUNG bool - depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P + depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P || ARCH_EXYNOSarch/arm/plat-samsung/Kconfig +2
-4default y select GENERIC_IRQ_CHIP select NO_IOPORT@@ -15,12 +15,10 @@ config PLAT_SAMSUNG config PLAT_S5P bool - depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS) + depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210) default y select ARCH_REQUIRE_GPIOLIB - select ARM_GIC if ARCH_EXYNOS - select ARM_VIC if !ARCH_EXYNOS - select GIC_NON_BANKED if ARCH_EXYNOS4 + select ARM_VIC select NO_IOPORT select PLAT_SAMSUNG select S3C_GPIO_TRACK(quoted diff) +0
-0b/arch/arm/plat-samsung/pm-
gpio.c
index c2ff92c..a8de3cf 100644arch/arm/plat-samsung/pm-gpio.c +2
-1@@ -192,7 +192,8 @@ struct samsung_gpio_pm samsung_gpio_pm_2bit = { .resume = samsung_gpio_pm_2bit_resume, }; -#if defined(CONFIG_ARCH_S3C64XX ) || defined(CONFIG_PLAT_S5P ) +#if defined(CONFIG_ARCH_S3C64XX ) || defined(CONFIG_PLAT_S5P ) \ + || defined(CONFIG_ARCH_EXYNOS )static void
samsung_gpio_pm_4bit_save(struct samsung_gpio_chip *chip){arch/arm/plat-samsung/pm-gpio.c +1
-1chip->pm_save[1 ] =__raw_readl (chip->base +OFFS_CON );@@ -302,7 +303,7 @@ struct samsung_gpio_pm samsung_gpio_pm_4bit = { .save = samsung_gpio_pm_4bit_save, .resume = samsung_gpio_pm_4bit_resume, }; -#endif /* CONFIG_ARCH_S3C64XX || CONFIG_PLAT_S5P */ +#endif /* CONFIG_ARCH_S3C64XX || CONFIG_PLAT_S5P ||
CONFIG_ARCH_EXYNOS*/>
/**
Quoted 6 lines
Quoted 4 lines
*
samsung_pm_save_gpio()- save gpio chip data for suspend--
1.8.2.1How about
PLAT_S5Pindrivers/media/platform/anddrivers/usb/?
Right, they have to be updated with PLAT_S5P || ARCH_EXYNOS. I will send a fixed version.
Best regards,
Tomasz
Quoted 7 lines
- Kukjin
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 18/28 ARM: SAMSUNG: pm: Include most of mach/ headers conditionally
In reply to Tomasz FigaSince it is illegal to include mach/ headers from source files outside of respective mach-* directory and DT-only Samsung platforms might not have all of them anyway, this patches makes inclusion of them conditional, based on CONFIG_SAMSUNG_ATAGS.
--- arch/arm/plat-samsung/pm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
arch/arm/plat-samsung/pm.c +6 -2
@@ -21,13 +21,17 @@#include <asm/cacheflush.h> #include <asm/suspend.h> -#include <mach/hardware.h> -#include <mach/map.h> #include <plat/regs-serial.h> + +#ifdef CONFIG_SAMSUNG_ATAGS +#include <mach/hardware.h> +#include <mach/map.h> #include <mach/regs-clock.h> #include <mach/regs-irq.h> #include <mach/irqs.h> +#endif +#include <asm/irq.h> #include <plat/pm.h>
Signature · 1 line
1.8.2.1
PATCH 19/28 ARM: EXYNOS: Do not select legacy Kconfig symbols any more
In reply to Tomasz FigaThis patch removes selection of several legacy Kconfig symbols from ARCH_EXYNOS to bypass compilation of code used only for ATAGS based boot.
--- arch/arm/Kconfig | 5 ----- 1 file changed, 5 deletions(-)
arch/arm/Kconfig +0 -5
@@ -802,16 +802,11 @@ config ARCH_EXYNOS select COMMON_CLK select CPU_V7 select GENERIC_CLOCKEVENTS - select GPIO_SAMSUNG select HAVE_CLK select HAVE_S3C2410_I2C if I2C select HAVE_S3C2410_WATCHDOG if WATCHDOG select HAVE_S3C_RTC if RTC_CLASS - select NEED_MACH_GPIO_H select NEED_MACH_MEMORY_H - select S5P_GPIO_DRVSTR - select SAMSUNG_ATAGS - select SAMSUNG_GPIOLIB_4BIT select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)
Signature · 1 line
1.8.2.1
PATCH 20/28 ARM: EXYNOS: Remove setup-i2c0.c
In reply to Tomasz FigaNow since SAMSUNG_ATAGS is no longer selected for ARCH_EXYNOS, we can safely remove the remaining setup code.
--- arch/arm/mach-exynos/Makefile | 3 --- arch/arm/mach-exynos/setup-i2c0.c | 19 ------------------- 2 files changed, 22 deletions(-) delete mode 100644 arch/arm/mach-exynos/setup-i2c0.c
arch/arm/mach-exynos/Makefile +0 -3
@@ -35,6 +35,3 @@ AFLAGS_exynos-smc.o :=-Wa,-march=armv7-a$(plus_sec) obj-$(CONFIG_MACH_EXYNOS4_DT) += mach-exynos4-dt.o obj-$(CONFIG_MACH_EXYNOS5_DT) += mach-exynos5-dt.o -# device support - -obj-$(CONFIG_ARCH_EXYNOS) += setup-i2c0.o
arch/arm/mach-exynos/setup-i2c0.c deleted +0 -19
@@ -1,19 +0,0 @@ -/* -* Copyright (c) 2009-2012 Samsung Electronics Co., Ltd. -* http://www.samsung.com/ -* -* I2C0 GPIO configuration. -* -* Based on plat-s3c64xx/setup-i2c0.c -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -void s3c_i2c0_cfg_gpio (struct platform_device *dev) -{ - -}
Signature · 1 line
1.8.2.1
PATCH 20/28 ARM: EXYNOS: Remove setup-i2c0.c
Quoted 18 lines · Tomasz Figa
Now since
SAMSUNG_ATAGSis no longer selected forARCH_EXYNOS, we can safely remove the remaining setup code.Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-exynos/Makefile | 3 --- arch/arm/mach-exynos/setup-i2c0.c | 19 ------------------- 2 files changed, 22 deletions(-) delete mode 100644 arch/arm/mach-exynos/setup-i2c0.carch/arm/mach-exynos/Makefile +0
-0
arch/arm/mach-exynos/Makefile AFLAGS_exynos-smc.o :=-Wa,-march=armv7- · line 37
Quoted 3 lines
arch/arm/mach-exynos/Makefile +0
-0@@ -35,6 +35,3 @@ AFLAGS_exynos-smc.o :=-Wa,-march=armv7- a$(plus_sec) obj-$(CONFIG_MACH_EXYNOS4_DT) += mach-exynos4-dt.o obj-$(CONFIG_MACH_EXYNOS5_DT) += mach-exynos5-dt.o
No need last empty line with removing below, But you don't need re-posting, because let me fix.
- Kukjin
Quoted 31 lines
arch/arm/mach-exynos/Makefile +0
-3-# device support - -obj-$(CONFIG_ARCH_EXYNOS) += setup-i2c0.oarch/arm/mach- renamed from arch/arm/mach-exynos/setup-i2c0.c +0
-0
exynos/setup-i2c0.c
deleted file mode 100644
index ede6ceb..0000000arch/arm/mach-exynos/setup-i2c0.c deleted +0
-20@@ -1,19 +0,0 @@ -/* -* Copyright (c) 2009-2012 Samsung Electronics Co., Ltd. -* http://www.samsung.com/ -* -* I2C0 GPIO configuration. -* -* Based on plat-s3c64xx/setup-i2c0.c -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -struct platform_device ;/* don't need the contents */ - -void s3c_i2c0_cfg_gpio (struct platform_device *dev) -{ - -} --1.8.2.1
PATCH 20/28 ARM: EXYNOS: Remove setup-i2c0.c
Quoted 13 lines · On Saturday 15 of June 2013 10:54:25 Kukjin Kim wrote:
Quoted 12 lines · Tomasz Figa
Now since
SAMSUNG_ATAGSis no longer selected forARCH_EXYNOS, we can safely remove the remaining setup code.Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
arch/arm/mach-exynos/Makefile | 3 --- arch/arm/mach-exynos/setup-i2c0.c | 19 ------------------- 2 files changed, 22 deletions(-) delete mode 100644 arch/arm/mach-exynos/setup-i2c0.c
Quoted 5 lines
arch/arm/mach-exynos/Makefile AFLAGS_exynos-smc.o :=-Wa,-
Quoted 5 lines
(quoted diff) +0
-0b/arch/arm/mach-exynos/Makefile index 5fc6cfd..66c9788 100644
arch/arm/mach-exynos/Makefile +0
-0@@ -35,6 +35,3 @@ AFLAGS_exynos-smc.o :=-Wa,-
march=armv7-
Quoted 7 lines
arch/arm/mach-exynos/Makefile AFLAGS_exynos-smc.o :=-Wa,-march=armv7-a$(plus_sec) · line 36
Quoted 4 lines
arch/arm/mach-exynos/Makefile +0
-0a$(plus_sec) obj-$(CONFIG_MACH_EXYNOS4_DT) += mach-exynos4-dt.o obj-$(CONFIG_MACH_EXYNOS5_DT) += mach-exynos5-dt.oNo need last empty line with removing below, But you don't need re-posting, because let me fix.
OK, thanks.
Best regards,
Tomasz
Quoted 40 lines
- Kukjin
Quoted 30 lines
arch/arm/mach-exynos/Makefile +0
-3-# device support - -obj-$(CONFIG_ARCH_EXYNOS) += setup-i2c0.oarch/arm/mach- renamed from arch/arm/mach-exynos/setup-i2c0.c +0
-0
exynos/setup-i2c0.c
deleted file mode 100644
index ede6ceb..0000000arch/arm/mach-exynos/setup-i2c0.c deleted +0
-9@@ -1,19 +0,0 @@ -/* -* Copyright (c) 2009-2012 Samsung Electronics Co., Ltd. -* http://www.samsung.com/ -* -* I2C0 GPIO configuration. -* -* Based on plat-s3c64xx/setup-i2c0.c -* -* This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation.
arch/arm/mach-exynos/setup-i2c0.c deleted +0
-9-*/ - -struct platform_device ;/* don't need the contents */ - -void s3c_i2c0_cfg_gpio (struct platform_device *dev) -{ - -} --Quoted 1 line
1.8.2.1
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 21/28 ARM: EXYNOS: Remove mach/gpio.h
In reply to Tomasz FigaThis patch removes mach/gpio.h header that is not required any more on Exynos.
--- arch/arm/mach-exynos/include/mach/gpio.h | 289 ------------------------------- 1 file changed, 289 deletions(-) delete mode 100644 arch/arm/mach-exynos/include/mach/gpio.h
arch/arm/mach-exynos/include/mach/gpio.h deleted +0 -289
@@ -1,289 +0,0 @@ -/* -* Copyright (c) 2010-2012 Samsung Electronics Co., Ltd. -* http://www.samsung.com -* -* EXYNOS - GPIO lib support -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_GPIO_H -#define __ASM_ARCH_GPIO_H __FILE__ - -/* Macro for EXYNOS GPIO numbering */ - -#define EXYNOS_GPIO_NEXT (__gpio) \ - ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1) - -/* EXYNOS4 GPIO bank sizes */ - -#define EXYNOS4_GPIO_A0_NR (8) -#define EXYNOS4_GPIO_A1_NR (6) -#define EXYNOS4_GPIO_B_NR (8) -#define EXYNOS4_GPIO_C0_NR (5) -#define EXYNOS4_GPIO_C1_NR (5) -#define EXYNOS4_GPIO_D0_NR (4) -#define EXYNOS4_GPIO_D1_NR (4) -#define EXYNOS4_GPIO_E0_NR (5) -#define EXYNOS4_GPIO_E1_NR (8) -#define EXYNOS4_GPIO_E2_NR (6) -#define EXYNOS4_GPIO_E3_NR (8) -#define EXYNOS4_GPIO_E4_NR (8) -#define EXYNOS4_GPIO_F0_NR (8) -#define EXYNOS4_GPIO_F1_NR (8) -#define EXYNOS4_GPIO_F2_NR (8) -#define EXYNOS4_GPIO_F3_NR (6) -#define EXYNOS4_GPIO_J0_NR (8) -#define EXYNOS4_GPIO_J1_NR (5) -#define EXYNOS4_GPIO_K0_NR (7) -#define EXYNOS4_GPIO_K1_NR (7) -#define EXYNOS4_GPIO_K2_NR (7) -#define EXYNOS4_GPIO_K3_NR (7) -#define EXYNOS4_GPIO_L0_NR (8) -#define EXYNOS4_GPIO_L1_NR (3) -#define EXYNOS4_GPIO_L2_NR (8) -#define EXYNOS4_GPIO_X0_NR (8) -#define EXYNOS4_GPIO_X1_NR (8) -#define EXYNOS4_GPIO_X2_NR (8) -#define EXYNOS4_GPIO_X3_NR (8) -#define EXYNOS4_GPIO_Y0_NR (6) -#define EXYNOS4_GPIO_Y1_NR (4) -#define EXYNOS4_GPIO_Y2_NR (6) -#define EXYNOS4_GPIO_Y3_NR (8) -#define EXYNOS4_GPIO_Y4_NR (8) -#define EXYNOS4_GPIO_Y5_NR (8) -#define EXYNOS4_GPIO_Y6_NR (8) -#define EXYNOS4_GPIO_Z_NR (7) - -/* EXYNOS4 GPIO bank numbers */ - -enum exynos4_gpio_number { -EXYNOS4_GPIO_A0_START =0 , -EXYNOS4_GPIO_A1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_A0 ), -EXYNOS4_GPIO_B_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_A1 ), -EXYNOS4_GPIO_C0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_B ), -EXYNOS4_GPIO_C1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_C0 ), -EXYNOS4_GPIO_D0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_C1 ), -EXYNOS4_GPIO_D1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_D0 ), -EXYNOS4_GPIO_E0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_D1 ), -EXYNOS4_GPIO_E1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_E0 ), -EXYNOS4_GPIO_E2_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_E1 ), -EXYNOS4_GPIO_E3_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_E2 ), -EXYNOS4_GPIO_E4_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_E3 ), -EXYNOS4_GPIO_F0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_E4 ), -EXYNOS4_GPIO_F1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_F0 ), -EXYNOS4_GPIO_F2_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_F1 ), -EXYNOS4_GPIO_F3_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_F2 ), -EXYNOS4_GPIO_J0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_F3 ), -EXYNOS4_GPIO_J1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_J0 ), -EXYNOS4_GPIO_K0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_J1 ), -EXYNOS4_GPIO_K1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_K0 ), -EXYNOS4_GPIO_K2_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_K1 ), -EXYNOS4_GPIO_K3_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_K2 ), -EXYNOS4_GPIO_L0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_K3 ), -EXYNOS4_GPIO_L1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_L0 ), -EXYNOS4_GPIO_L2_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_L1 ), -EXYNOS4_GPIO_X0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_L2 ), -EXYNOS4_GPIO_X1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_X0 ), -EXYNOS4_GPIO_X2_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_X1 ), -EXYNOS4_GPIO_X3_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_X2 ), -EXYNOS4_GPIO_Y0_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_X3 ), -EXYNOS4_GPIO_Y1_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y0 ), -EXYNOS4_GPIO_Y2_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y1 ), -EXYNOS4_GPIO_Y3_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y2 ), -EXYNOS4_GPIO_Y4_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y3 ), -EXYNOS4_GPIO_Y5_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y4 ), -EXYNOS4_GPIO_Y6_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y5 ), -EXYNOS4_GPIO_Z_START =EXYNOS_GPIO_NEXT (EXYNOS4_GPIO_Y6 ), -}; - -/* EXYNOS4 GPIO number definitions */ - -#define EXYNOS4_GPA0 (_nr) (EXYNOS4_GPIO_A0_START + (_nr)) -#define EXYNOS4_GPA1 (_nr) (EXYNOS4_GPIO_A1_START + (_nr)) -#define EXYNOS4_GPB (_nr) (EXYNOS4_GPIO_B_START + (_nr)) -#define EXYNOS4_GPC0 (_nr) (EXYNOS4_GPIO_C0_START + (_nr)) -#define EXYNOS4_GPC1 (_nr) (EXYNOS4_GPIO_C1_START + (_nr)) -#define EXYNOS4_GPD0 (_nr) (EXYNOS4_GPIO_D0_START + (_nr)) -#define EXYNOS4_GPD1 (_nr) (EXYNOS4_GPIO_D1_START + (_nr)) -#define EXYNOS4_GPE0 (_nr) (EXYNOS4_GPIO_E0_START + (_nr)) -#define EXYNOS4_GPE1 (_nr) (EXYNOS4_GPIO_E1_START + (_nr)) -#define EXYNOS4_GPE2 (_nr) (EXYNOS4_GPIO_E2_START + (_nr)) -#define EXYNOS4_GPE3 (_nr) (EXYNOS4_GPIO_E3_START + (_nr)) -#define EXYNOS4_GPE4 (_nr) (EXYNOS4_GPIO_E4_START + (_nr)) -#define EXYNOS4_GPF0 (_nr) (EXYNOS4_GPIO_F0_START + (_nr)) -#define EXYNOS4_GPF1 (_nr) (EXYNOS4_GPIO_F1_START + (_nr)) -#define EXYNOS4_GPF2 (_nr) (EXYNOS4_GPIO_F2_START + (_nr)) -#define EXYNOS4_GPF3 (_nr) (EXYNOS4_GPIO_F3_START + (_nr)) -#define EXYNOS4_GPJ0 (_nr) (EXYNOS4_GPIO_J0_START + (_nr)) -#define EXYNOS4_GPJ1 (_nr) (EXYNOS4_GPIO_J1_START + (_nr)) -#define EXYNOS4_GPK0 (_nr) (EXYNOS4_GPIO_K0_START + (_nr)) -#define EXYNOS4_GPK1 (_nr) (EXYNOS4_GPIO_K1_START + (_nr)) -#define EXYNOS4_GPK2 (_nr) (EXYNOS4_GPIO_K2_START + (_nr)) -#define EXYNOS4_GPK3 (_nr) (EXYNOS4_GPIO_K3_START + (_nr)) -#define EXYNOS4_GPL0 (_nr) (EXYNOS4_GPIO_L0_START + (_nr)) -#define EXYNOS4_GPL1 (_nr) (EXYNOS4_GPIO_L1_START + (_nr)) -#define EXYNOS4_GPL2 (_nr) (EXYNOS4_GPIO_L2_START + (_nr)) -#define EXYNOS4_GPX0 (_nr) (EXYNOS4_GPIO_X0_START + (_nr)) -#define EXYNOS4_GPX1 (_nr) (EXYNOS4_GPIO_X1_START + (_nr)) -#define EXYNOS4_GPX2 (_nr) (EXYNOS4_GPIO_X2_START + (_nr)) -#define EXYNOS4_GPX3 (_nr) (EXYNOS4_GPIO_X3_START + (_nr)) -#define EXYNOS4_GPY0 (_nr) (EXYNOS4_GPIO_Y0_START + (_nr)) -#define EXYNOS4_GPY1 (_nr) (EXYNOS4_GPIO_Y1_START + (_nr)) -#define EXYNOS4_GPY2 (_nr) (EXYNOS4_GPIO_Y2_START + (_nr)) -#define EXYNOS4_GPY3 (_nr) (EXYNOS4_GPIO_Y3_START + (_nr)) -#define EXYNOS4_GPY4 (_nr) (EXYNOS4_GPIO_Y4_START + (_nr)) -#define EXYNOS4_GPY5 (_nr) (EXYNOS4_GPIO_Y5_START + (_nr)) -#define EXYNOS4_GPY6 (_nr) (EXYNOS4_GPIO_Y6_START + (_nr)) -#define EXYNOS4_GPZ (_nr) (EXYNOS4_GPIO_Z_START + (_nr)) - -/* the end of the EXYNOS4 specific gpios */ - -#define EXYNOS4_GPIO_END (EXYNOS4_GPZ(EXYNOS4_GPIO_Z_NR) + 1) - -/* EXYNOS5 GPIO bank sizes */ - -#define EXYNOS5_GPIO_A0_NR (8) -#define EXYNOS5_GPIO_A1_NR (6) -#define EXYNOS5_GPIO_A2_NR (8) -#define EXYNOS5_GPIO_B0_NR (5) -#define EXYNOS5_GPIO_B1_NR (5) -#define EXYNOS5_GPIO_B2_NR (4) -#define EXYNOS5_GPIO_B3_NR (4) -#define EXYNOS5_GPIO_C0_NR (7) -#define EXYNOS5_GPIO_C1_NR (4) -#define EXYNOS5_GPIO_C2_NR (7) -#define EXYNOS5_GPIO_C3_NR (7) -#define EXYNOS5_GPIO_C4_NR (7) -#define EXYNOS5_GPIO_D0_NR (4) -#define EXYNOS5_GPIO_D1_NR (8) -#define EXYNOS5_GPIO_Y0_NR (6) -#define EXYNOS5_GPIO_Y1_NR (4) -#define EXYNOS5_GPIO_Y2_NR (6) -#define EXYNOS5_GPIO_Y3_NR (8) -#define EXYNOS5_GPIO_Y4_NR (8) -#define EXYNOS5_GPIO_Y5_NR (8) -#define EXYNOS5_GPIO_Y6_NR (8) -#define EXYNOS5_GPIO_X0_NR (8) -#define EXYNOS5_GPIO_X1_NR (8) -#define EXYNOS5_GPIO_X2_NR (8) -#define EXYNOS5_GPIO_X3_NR (8) -#define EXYNOS5_GPIO_E0_NR (8) -#define EXYNOS5_GPIO_E1_NR (2) -#define EXYNOS5_GPIO_F0_NR (4) -#define EXYNOS5_GPIO_F1_NR (4) -#define EXYNOS5_GPIO_G0_NR (8) -#define EXYNOS5_GPIO_G1_NR (8) -#define EXYNOS5_GPIO_G2_NR (2) -#define EXYNOS5_GPIO_H0_NR (4) -#define EXYNOS5_GPIO_H1_NR (8) -#define EXYNOS5_GPIO_V0_NR (8) -#define EXYNOS5_GPIO_V1_NR (8) -#define EXYNOS5_GPIO_V2_NR (8) -#define EXYNOS5_GPIO_V3_NR (8) -#define EXYNOS5_GPIO_V4_NR (2) -#define EXYNOS5_GPIO_Z_NR (7) - -/* EXYNOS5 GPIO bank numbers */ - -enum exynos5_gpio_number { -EXYNOS5_GPIO_A0_START =0 , -EXYNOS5_GPIO_A1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_A0 ), -EXYNOS5_GPIO_A2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_A1 ), -EXYNOS5_GPIO_B0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_A2 ), -EXYNOS5_GPIO_B1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_B0 ), -EXYNOS5_GPIO_B2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_B1 ), -EXYNOS5_GPIO_B3_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_B2 ), -EXYNOS5_GPIO_C0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_B3 ), -EXYNOS5_GPIO_C1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_C0 ), -EXYNOS5_GPIO_C2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_C1 ), -EXYNOS5_GPIO_C3_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_C2 ), -EXYNOS5_GPIO_C4_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_C3 ), -EXYNOS5_GPIO_D0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_C4 ), -EXYNOS5_GPIO_D1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_D0 ), -EXYNOS5_GPIO_Y0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_D1 ), -EXYNOS5_GPIO_Y1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y0 ), -EXYNOS5_GPIO_Y2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y1 ), -EXYNOS5_GPIO_Y3_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y2 ), -EXYNOS5_GPIO_Y4_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y3 ), -EXYNOS5_GPIO_Y5_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y4 ), -EXYNOS5_GPIO_Y6_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y5 ), -EXYNOS5_GPIO_X0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_Y6 ), -EXYNOS5_GPIO_X1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_X0 ), -EXYNOS5_GPIO_X2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_X1 ), -EXYNOS5_GPIO_X3_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_X2 ), -EXYNOS5_GPIO_E0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_X3 ), -EXYNOS5_GPIO_E1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_E0 ), -EXYNOS5_GPIO_F0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_E1 ), -EXYNOS5_GPIO_F1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_F0 ), -EXYNOS5_GPIO_G0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_F1 ), -EXYNOS5_GPIO_G1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_G0 ), -EXYNOS5_GPIO_G2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_G1 ), -EXYNOS5_GPIO_H0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_G2 ), -EXYNOS5_GPIO_H1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_H0 ), -EXYNOS5_GPIO_V0_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_H1 ), -EXYNOS5_GPIO_V1_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_V0 ), -EXYNOS5_GPIO_V2_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_V1 ), -EXYNOS5_GPIO_V3_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_V2 ), -EXYNOS5_GPIO_V4_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_V3 ), -EXYNOS5_GPIO_Z_START =EXYNOS_GPIO_NEXT (EXYNOS5_GPIO_V4 ), -}; - -/* EXYNOS5 GPIO number definitions */ - -#define EXYNOS5_GPA0 (_nr) (EXYNOS5_GPIO_A0_START + (_nr)) -#define EXYNOS5_GPA1 (_nr) (EXYNOS5_GPIO_A1_START + (_nr)) -#define EXYNOS5_GPA2 (_nr) (EXYNOS5_GPIO_A2_START + (_nr)) -#define EXYNOS5_GPB0 (_nr) (EXYNOS5_GPIO_B0_START + (_nr)) -#define EXYNOS5_GPB1 (_nr) (EXYNOS5_GPIO_B1_START + (_nr)) -#define EXYNOS5_GPB2 (_nr) (EXYNOS5_GPIO_B2_START + (_nr)) -#define EXYNOS5_GPB3 (_nr) (EXYNOS5_GPIO_B3_START + (_nr)) -#define EXYNOS5_GPC0 (_nr) (EXYNOS5_GPIO_C0_START + (_nr)) -#define EXYNOS5_GPC1 (_nr) (EXYNOS5_GPIO_C1_START + (_nr)) -#define EXYNOS5_GPC2 (_nr) (EXYNOS5_GPIO_C2_START + (_nr)) -#define EXYNOS5_GPC3 (_nr) (EXYNOS5_GPIO_C3_START + (_nr)) -#define EXYNOS5_GPC4 (_nr) (EXYNOS5_GPIO_C4_START + (_nr)) -#define EXYNOS5_GPD0 (_nr) (EXYNOS5_GPIO_D0_START + (_nr)) -#define EXYNOS5_GPD1 (_nr) (EXYNOS5_GPIO_D1_START + (_nr)) -#define EXYNOS5_GPY0 (_nr) (EXYNOS5_GPIO_Y0_START + (_nr)) -#define EXYNOS5_GPY1 (_nr) (EXYNOS5_GPIO_Y1_START + (_nr)) -#define EXYNOS5_GPY2 (_nr) (EXYNOS5_GPIO_Y2_START + (_nr)) -#define EXYNOS5_GPY3 (_nr) (EXYNOS5_GPIO_Y3_START + (_nr)) -#define EXYNOS5_GPY4 (_nr) (EXYNOS5_GPIO_Y4_START + (_nr)) -#define EXYNOS5_GPY5 (_nr) (EXYNOS5_GPIO_Y5_START + (_nr)) -#define EXYNOS5_GPY6 (_nr) (EXYNOS5_GPIO_Y6_START + (_nr)) -#define EXYNOS5_GPX0 (_nr) (EXYNOS5_GPIO_X0_START + (_nr)) -#define EXYNOS5_GPX1 (_nr) (EXYNOS5_GPIO_X1_START + (_nr)) -#define EXYNOS5_GPX2 (_nr) (EXYNOS5_GPIO_X2_START + (_nr)) -#define EXYNOS5_GPX3 (_nr) (EXYNOS5_GPIO_X3_START + (_nr)) -#define EXYNOS5_GPE0 (_nr) (EXYNOS5_GPIO_E0_START + (_nr)) -#define EXYNOS5_GPE1 (_nr) (EXYNOS5_GPIO_E1_START + (_nr)) -#define EXYNOS5_GPF0 (_nr) (EXYNOS5_GPIO_F0_START + (_nr)) -#define EXYNOS5_GPF1 (_nr) (EXYNOS5_GPIO_F1_START + (_nr)) -#define EXYNOS5_GPG0 (_nr) (EXYNOS5_GPIO_G0_START + (_nr)) -#define EXYNOS5_GPG1 (_nr) (EXYNOS5_GPIO_G1_START + (_nr)) -#define EXYNOS5_GPG2 (_nr) (EXYNOS5_GPIO_G2_START + (_nr)) -#define EXYNOS5_GPH0 (_nr) (EXYNOS5_GPIO_H0_START + (_nr)) -#define EXYNOS5_GPH1 (_nr) (EXYNOS5_GPIO_H1_START + (_nr)) -#define EXYNOS5_GPV0 (_nr) (EXYNOS5_GPIO_V0_START + (_nr)) -#define EXYNOS5_GPV1 (_nr) (EXYNOS5_GPIO_V1_START + (_nr)) -#define EXYNOS5_GPV2 (_nr) (EXYNOS5_GPIO_V2_START + (_nr)) -#define EXYNOS5_GPV3 (_nr) (EXYNOS5_GPIO_V3_START + (_nr)) -#define EXYNOS5_GPV4 (_nr) (EXYNOS5_GPIO_V4_START + (_nr)) -#define EXYNOS5_GPZ (_nr) (EXYNOS5_GPIO_Z_START + (_nr)) - -/* the end of the EXYNOS5 specific gpios */ - -#define EXYNOS5_GPIO_END (EXYNOS5_GPZ(EXYNOS5_GPIO_Z_NR) + 1) - -/* actually, EXYNOS5_GPIO_END is bigger than EXYNOS4 */ - -#define S3C_GPIO_END (EXYNOS5_GPIO_END) - -/* define the number of gpios */ - -#define ARCH_NR_GPIOS (CONFIG_SAMSUNG_GPIO_EXTRA + S3C_GPIO_END) - -#endif /* __ASM_ARCH_GPIO_H */
Signature · 1 line
1.8.2.1
PATCH 22/28 ARM: EXYNOS: Remove mach/regs-gpio.h header
In reply to Tomasz FigaContents of this header are not used any more and can be safely removed.
--- arch/arm/mach-exynos/common.c | 1 - arch/arm/mach-exynos/include/mach/regs-gpio.h | 40 --------------------------- arch/arm/mach-exynos/pm.c | 1 - 3 files changed, 42 deletions(-) delete mode 100644 arch/arm/mach-exynos/include/mach/regs-gpio.h
arch/arm/mach-exynos/common.c +0 -1
@@ -40,7 +40,6 @@#include <mach/regs-irq.h> #include <mach/regs-pmu.h> -#include <mach/regs-gpio.h> #include <plat/cpu.h> #include <plat/pm.h>
arch/arm/mach-exynos/include/mach/regs-gpio.h deleted +0 -40
@@ -1,40 +0,0 @@ -/* linux/arch/arm/mach-exynos4/include/mach/regs-gpio.h -* -* Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. -* http://www.samsung.com -* -* EXYNOS4 - GPIO (including EINT) register definitions -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_REGS_GPIO_H -#define __ASM_ARCH_REGS_GPIO_H __FILE__ - -#include <mach/map.h> -#include <mach/irqs.h> - -#define EINT_REG_NR (x) (EINT_OFFSET(x) >> 3) -#define EINT_CON (b, x) (b + 0xE00 + (EINT_REG_NR(x) * 4)) -#define EINT_FLTCON (b, x) (b + 0xE80 + (EINT_REG_NR(x) * 4)) -#define EINT_MASK (b, x) (b + 0xF00 + (EINT_REG_NR(x) * 4)) -#define EINT_PEND (b, x) (b + 0xF40 + (EINT_REG_NR(x) * 4)) - -#define EINT_OFFSET_BIT (x) (1 << (EINT_OFFSET(x) & 0x7)) - -/* compatibility for plat-s5p/irq-pm.c */ -#define EXYNOS4_EINT40CON (S5P_VA_GPIO2 + 0xE00) -#define S5P_EINT_CON (x) (EXYNOS4_EINT40CON + ((x) * 0x4)) - -#define EXYNOS4_EINT40FLTCON0 (S5P_VA_GPIO2 + 0xE80) -#define S5P_EINT_FLTCON (x) (EXYNOS4_EINT40FLTCON0 + ((x) * 0x4)) - -#define EXYNOS4_EINT40MASK (S5P_VA_GPIO2 + 0xF00) -#define S5P_EINT_MASK (x) (EXYNOS4_EINT40MASK + ((x) * 0x4)) - -#define EXYNOS4_EINT40PEND (S5P_VA_GPIO2 + 0xF40) -#define S5P_EINT_PEND (x) (EXYNOS4_EINT40PEND + ((x) * 0x4)) - -#endif /* __ASM_ARCH_REGS_GPIO_H */
arch/arm/mach-exynos/pm.c +0 -1
@@ -30,7 +30,6 @@#include <plat/regs-srom.h> #include <mach/regs-irq.h> -#include <mach/regs-gpio.h> #include <mach/regs-clock.h> #include <mach/regs-pmu.h> #include <mach/pm-core.h>
Signature · 1 line
1.8.2.1
PATCH 23/28 ARM: SAMSUNG: Make legacy MFC support code depend on SAMSUNG_ATAGS
In reply to Tomasz FigaThis allows to bypass compilation of static platform device and resource definitions that require interrupts and base addresses to be defined statically.
--- arch/arm/plat-samsung/s5p-dev-mfc.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
arch/arm/plat-samsung/s5p-dev-mfc.c +10 -1
@@ -17,10 +17,12 @@#include <linux/of_fdt.h> #include <linux/of.h> +#include <plat/mfc.h> + +#ifdef CONFIG_SAMSUNG_ATAGS #include <mach/map.h> #include <mach/irqs.h> #include <plat/devs.h> -#include <plat/mfc.h> static struct resource s5p_mfc_resource[] = { [0] = DEFINE_RES_MEM(S5P_PA_MFC, SZ_64K),
@@ -61,6 +63,10 @@ struct platform_device s5p_device_mfc_r = { .coherent_dma_mask = DMA_BIT_MASK(32), }, }; +#else +static struct platform_device s5p_device_mfc_l; +static struct platform_device s5p_device_mfc_r; +#endif struct s5p_mfc_reserved_mem {phys_addr_t base;
@@ -70,6 +76,7 @@ struct s5p_mfc_reserved_mem {static struct s5p_mfc_reserved_mem s5p_mfc_mem[2 ]__initdata ; +void __init s5p_mfc_reserve_mem (phys_addr_t rbase,unsigned int rsize,phys_addr_t lbase,unsigned int lsize) {
@@ -93,6 +100,7 @@ void __init s5p_mfc_reserve_mem(phys_addr_t rbase, unsigned int rsize, } } +#ifdef CONFIG_SAMSUNG_ATAGS static int __init s5p_mfc_memory_init (void ) {int i;
@@ -111,6 +119,7 @@ static int __init s5p_mfc_memory_init(void)return 0 ; }device_initcall (s5p_mfc_memory_init); +#endif #ifdef CONFIG_OF int __init s5p_fdt_find_mfc_mem(unsigned long node, const char *uname,
Signature · 1 line
1.8.2.1
PATCH 24/28 ARM: EXYNOS: Select SPARSE_IRQ for Exynos
In reply to Tomasz FigaThis patch adds selection of CONFIG_SPARSE_IRQ for ARCH_EXYNOS, since it is required by multiplatform and allows to remove the legacy mach/irqs.h header.
To make this possible, a dummy IRQ_EINT_BIT macro is added to pm-core.h header to allow plat-samsung/pm.c compile. This macro is irrelevant for Exynos and will be removed after reworking Samsung pm code for multiplatform compatibility.
--- arch/arm/Kconfig | 1 + arch/arm/mach-exynos/include/mach/pm-core.h | 1 + 2 files changed, 2 insertions(+)
arch/arm/Kconfig +1 -0
@@ -807,6 +807,7 @@ config ARCH_EXYNOS select HAVE_S3C2410_WATCHDOG if WATCHDOG select HAVE_S3C_RTC if RTC_CLASS select NEED_MACH_MEMORY_H + select SPARSE_IRQ select USE_OF help Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5)
arch/arm/mach-exynos/include/mach/pm-core.h +1 -0
@@ -70,6 +70,7 @@ static inline void samsung_pm_saved_gpios(void) }/* Compatibility definitions to make plat-samsung/pm.c compile */ +#define IRQ_EINT_BIT (x) 1#define s3c_irqwake_intallow 0#define s3c_irqwake_eintallow 0
Signature · 1 line
1.8.2.1
PATCH 25/28 ARM: EXYNOS: Remove mach/irqs.h header
In reply to Tomasz FigaSince Exynos now uses CONFIG_SPARSE_IRQ and all remaining users of this header has been fixed, we can safely remove it.
--- arch/arm/mach-exynos/include/mach/irqs.h | 476 ------------------------------- 1 file changed, 476 deletions(-) delete mode 100644 arch/arm/mach-exynos/include/mach/irqs.h
arch/arm/mach-exynos/include/mach/irqs.h deleted +0 -476
@@ -1,476 +0,0 @@ -/* -* Copyright (c) 2010-2012 Samsung Electronics Co., Ltd. -* http://www.samsung.com -* -* EXYNOS - IRQ definitions -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#ifndef __ASM_ARCH_IRQS_H -#define __ASM_ARCH_IRQS_H __FILE__ - -#include <plat/irqs.h> - -/* PPI: Private Peripheral Interrupt */ - -#define IRQ_PPI (x) (x + 16) - -/* SPI: Shared Peripheral Interrupt */ - -#define IRQ_SPI (x) (x + 32) - -/* COMBINER */ - -#define MAX_IRQ_IN_COMBINER 8 -#define COMBINER_GROUP (x) ((x) * MAX_IRQ_IN_COMBINER + IRQ_SPI(128)) -#define COMBINER_IRQ (x, y) (COMBINER_GROUP(x) + y) - -/* For EXYNOS4 and EXYNOS5 */ - -#define EXYNOS_IRQ_EINT16_31 IRQ_SPI(32) - -/* For EXYNOS4 SoCs */ - -#define EXYNOS4_IRQ_EINT0 IRQ_SPI(16) -#define EXYNOS4_IRQ_EINT1 IRQ_SPI(17) -#define EXYNOS4_IRQ_EINT2 IRQ_SPI(18) -#define EXYNOS4_IRQ_EINT3 IRQ_SPI(19) -#define EXYNOS4_IRQ_EINT4 IRQ_SPI(20) -#define EXYNOS4_IRQ_EINT5 IRQ_SPI(21) -#define EXYNOS4_IRQ_EINT6 IRQ_SPI(22) -#define EXYNOS4_IRQ_EINT7 IRQ_SPI(23) -#define EXYNOS4_IRQ_EINT8 IRQ_SPI(24) -#define EXYNOS4_IRQ_EINT9 IRQ_SPI(25) -#define EXYNOS4_IRQ_EINT10 IRQ_SPI(26) -#define EXYNOS4_IRQ_EINT11 IRQ_SPI(27) -#define EXYNOS4_IRQ_EINT12 IRQ_SPI(28) -#define EXYNOS4_IRQ_EINT13 IRQ_SPI(29) -#define EXYNOS4_IRQ_EINT14 IRQ_SPI(30) -#define EXYNOS4_IRQ_EINT15 IRQ_SPI(31) - -#define EXYNOS4_IRQ_MDMA0 IRQ_SPI(33) -#define EXYNOS4_IRQ_MDMA1 IRQ_SPI(34) -#define EXYNOS4_IRQ_PDMA0 IRQ_SPI(35) -#define EXYNOS4_IRQ_PDMA1 IRQ_SPI(36) -#define EXYNOS4_IRQ_TIMER0_VIC IRQ_SPI(37) -#define EXYNOS4_IRQ_TIMER1_VIC IRQ_SPI(38) -#define EXYNOS4_IRQ_TIMER2_VIC IRQ_SPI(39) -#define EXYNOS4_IRQ_TIMER3_VIC IRQ_SPI(40) -#define EXYNOS4_IRQ_TIMER4_VIC IRQ_SPI(41) -#define EXYNOS4_IRQ_MCT_L0 IRQ_SPI(42) -#define EXYNOS4_IRQ_WDT IRQ_SPI(43) -#define EXYNOS4_IRQ_RTC_ALARM IRQ_SPI(44) -#define EXYNOS4_IRQ_RTC_TIC IRQ_SPI(45) -#define EXYNOS4_IRQ_GPIO_XB IRQ_SPI(46) -#define EXYNOS4_IRQ_GPIO_XA IRQ_SPI(47) -#define EXYNOS4_IRQ_MCT_L1 IRQ_SPI(48) - -#define EXYNOS4_IRQ_UART0 IRQ_SPI(52) -#define EXYNOS4_IRQ_UART1 IRQ_SPI(53) -#define EXYNOS4_IRQ_UART2 IRQ_SPI(54) -#define EXYNOS4_IRQ_UART3 IRQ_SPI(55) -#define EXYNOS4_IRQ_UART4 IRQ_SPI(56) -#define EXYNOS4_IRQ_MCT_G0 IRQ_SPI(57) -#define EXYNOS4_IRQ_IIC IRQ_SPI(58) -#define EXYNOS4_IRQ_IIC1 IRQ_SPI(59) -#define EXYNOS4_IRQ_IIC2 IRQ_SPI(60) -#define EXYNOS4_IRQ_IIC3 IRQ_SPI(61) -#define EXYNOS4_IRQ_IIC4 IRQ_SPI(62) -#define EXYNOS4_IRQ_IIC5 IRQ_SPI(63) -#define EXYNOS4_IRQ_IIC6 IRQ_SPI(64) -#define EXYNOS4_IRQ_IIC7 IRQ_SPI(65) -#define EXYNOS4_IRQ_SPI0 IRQ_SPI(66) -#define EXYNOS4_IRQ_SPI1 IRQ_SPI(67) -#define EXYNOS4_IRQ_SPI2 IRQ_SPI(68) - -#define EXYNOS4_IRQ_USB_HOST IRQ_SPI(70) -#define EXYNOS4_IRQ_USB_HSOTG IRQ_SPI(71) -#define EXYNOS4_IRQ_MODEM_IF IRQ_SPI(72) -#define EXYNOS4_IRQ_HSMMC0 IRQ_SPI(73) -#define EXYNOS4_IRQ_HSMMC1 IRQ_SPI(74) -#define EXYNOS4_IRQ_HSMMC2 IRQ_SPI(75) -#define EXYNOS4_IRQ_HSMMC3 IRQ_SPI(76) -#define EXYNOS4_IRQ_DWMCI IRQ_SPI(77) - -#define EXYNOS4_IRQ_MIPI_CSIS0 IRQ_SPI(78) -#define EXYNOS4_IRQ_MIPI_CSIS1 IRQ_SPI(80) - -#define EXYNOS4_IRQ_ONENAND_AUDI IRQ_SPI(82) -#define EXYNOS4_IRQ_ROTATOR IRQ_SPI(83) -#define EXYNOS4_IRQ_FIMC0 IRQ_SPI(84) -#define EXYNOS4_IRQ_FIMC1 IRQ_SPI(85) -#define EXYNOS4_IRQ_FIMC2 IRQ_SPI(86) -#define EXYNOS4_IRQ_FIMC3 IRQ_SPI(87) -#define EXYNOS4_IRQ_JPEG IRQ_SPI(88) -#define EXYNOS4_IRQ_2D IRQ_SPI(89) -#define EXYNOS4_IRQ_PCIE IRQ_SPI(90) - -#define EXYNOS4_IRQ_MIXER IRQ_SPI(91) -#define EXYNOS4_IRQ_HDMI IRQ_SPI(92) -#define EXYNOS4_IRQ_IIC_HDMIPHY IRQ_SPI(93) -#define EXYNOS4_IRQ_MFC IRQ_SPI(94) -#define EXYNOS4_IRQ_SDO IRQ_SPI(95) - -#define EXYNOS4_IRQ_AUDIO_SS IRQ_SPI(96) -#define EXYNOS4_IRQ_I2S0 IRQ_SPI(97) -#define EXYNOS4_IRQ_I2S1 IRQ_SPI(98) -#define EXYNOS4_IRQ_I2S2 IRQ_SPI(99) -#define EXYNOS4_IRQ_AC97 IRQ_SPI(100) - -#define EXYNOS4_IRQ_SPDIF IRQ_SPI(104) -#define EXYNOS4_IRQ_ADC0 IRQ_SPI(105) -#define EXYNOS4_IRQ_PEN0 IRQ_SPI(106) -#define EXYNOS4_IRQ_ADC1 IRQ_SPI(107) -#define EXYNOS4_IRQ_PEN1 IRQ_SPI(108) -#define EXYNOS4_IRQ_KEYPAD IRQ_SPI(109) -#define EXYNOS4_IRQ_POWER_PMU IRQ_SPI(110) -#define EXYNOS4_IRQ_GPS IRQ_SPI(111) -#define EXYNOS4_IRQ_INTFEEDCTRL_SSS IRQ_SPI(112) -#define EXYNOS4_IRQ_SLIMBUS IRQ_SPI(113) - -#define EXYNOS4_IRQ_TSI IRQ_SPI(115) -#define EXYNOS4_IRQ_SATA IRQ_SPI(116) - -#define EXYNOS4_IRQ_PMU COMBINER_IRQ(2, 2) -#define EXYNOS4_IRQ_PMU_CPU1 COMBINER_IRQ(3, 2) -#define EXYNOS4_IRQ_PMU_CPU2 COMBINER_IRQ(18, 2) -#define EXYNOS4_IRQ_PMU_CPU3 COMBINER_IRQ(19, 2) - -#define EXYNOS4_IRQ_TMU_TRIG0 COMBINER_IRQ(2, 4) -#define EXYNOS4_IRQ_TMU_TRIG1 COMBINER_IRQ(3, 4) - -#define EXYNOS4_IRQ_SYSMMU_MDMA0_0 COMBINER_IRQ(4, 0) -#define EXYNOS4_IRQ_SYSMMU_SSS_0 COMBINER_IRQ(4, 1) -#define EXYNOS4_IRQ_SYSMMU_FIMC0_0 COMBINER_IRQ(4, 2) -#define EXYNOS4_IRQ_SYSMMU_FIMC1_0 COMBINER_IRQ(4, 3) -#define EXYNOS4_IRQ_SYSMMU_FIMC2_0 COMBINER_IRQ(4, 4) -#define EXYNOS4_IRQ_SYSMMU_FIMC3_0 COMBINER_IRQ(4, 5) -#define EXYNOS4_IRQ_SYSMMU_JPEG_0 COMBINER_IRQ(4, 6) -#define EXYNOS4_IRQ_SYSMMU_2D_0 COMBINER_IRQ(4, 7) - -#define EXYNOS4_IRQ_SYSMMU_ROTATOR_0 COMBINER_IRQ(5, 0) -#define EXYNOS4_IRQ_SYSMMU_MDMA1_0 COMBINER_IRQ(5, 1) -#define EXYNOS4_IRQ_SYSMMU_LCD0_M0_0 COMBINER_IRQ(5, 2) -#define EXYNOS4_IRQ_SYSMMU_LCD1_M1_0 COMBINER_IRQ(5, 3) -#define EXYNOS4_IRQ_SYSMMU_TV_M0_0 COMBINER_IRQ(5, 4) -#define EXYNOS4_IRQ_SYSMMU_MFC_M0_0 COMBINER_IRQ(5, 5) -#define EXYNOS4_IRQ_SYSMMU_MFC_M1_0 COMBINER_IRQ(5, 6) -#define EXYNOS4_IRQ_SYSMMU_PCIE_0 COMBINER_IRQ(5, 7) - -#define EXYNOS4_IRQ_SYSMMU_FIMC_LITE0_0 COMBINER_IRQ(16, 0) -#define EXYNOS4_IRQ_SYSMMU_FIMC_LITE1_0 COMBINER_IRQ(16, 1) -#define EXYNOS4_IRQ_SYSMMU_FIMC_ISP_0 COMBINER_IRQ(16, 2) -#define EXYNOS4_IRQ_SYSMMU_FIMC_DRC_0 COMBINER_IRQ(16, 3) -#define EXYNOS4_IRQ_SYSMMU_FIMC_FD_0 COMBINER_IRQ(16, 4) -#define EXYNOS4_IRQ_SYSMMU_FIMC_CX_0 COMBINER_IRQ(16, 5) - -#define EXYNOS4_IRQ_FIMD0_FIFO COMBINER_IRQ(11, 0) -#define EXYNOS4_IRQ_FIMD0_VSYNC COMBINER_IRQ(11, 1) -#define EXYNOS4_IRQ_FIMD0_SYSTEM COMBINER_IRQ(11, 2) - -#define EXYNOS4210_MAX_COMBINER_NR 16 -#define EXYNOS4212_MAX_COMBINER_NR 18 -#define EXYNOS4412_MAX_COMBINER_NR 20 -#define EXYNOS4_MAX_COMBINER_NR EXYNOS4412_MAX_COMBINER_NR - -#define EXYNOS4_IRQ_GPIO1_NR_GROUPS 16 -#define EXYNOS4_IRQ_GPIO2_NR_GROUPS 9 - -/* -* For Compatibility: -* the default is for EXYNOS4, and -* for exynos5, should be re-mapped at function -*/ - -#define IRQ_TIMER0_VIC EXYNOS4_IRQ_TIMER0_VIC -#define IRQ_TIMER1_VIC EXYNOS4_IRQ_TIMER1_VIC -#define IRQ_TIMER2_VIC EXYNOS4_IRQ_TIMER2_VIC -#define IRQ_TIMER3_VIC EXYNOS4_IRQ_TIMER3_VIC -#define IRQ_TIMER4_VIC EXYNOS4_IRQ_TIMER4_VIC - -#define IRQ_WDT EXYNOS4_IRQ_WDT -#define IRQ_RTC_ALARM EXYNOS4_IRQ_RTC_ALARM -#define IRQ_RTC_TIC EXYNOS4_IRQ_RTC_TIC -#define IRQ_GPIO_XB EXYNOS4_IRQ_GPIO_XB -#define IRQ_GPIO_XA EXYNOS4_IRQ_GPIO_XA - -#define IRQ_IIC EXYNOS4_IRQ_IIC -#define IRQ_IIC1 EXYNOS4_IRQ_IIC1 -#define IRQ_IIC3 EXYNOS4_IRQ_IIC3 -#define IRQ_IIC5 EXYNOS4_IRQ_IIC5 -#define IRQ_IIC6 EXYNOS4_IRQ_IIC6 -#define IRQ_IIC7 EXYNOS4_IRQ_IIC7 - -#define IRQ_SPI0 EXYNOS4_IRQ_SPI0 -#define IRQ_SPI1 EXYNOS4_IRQ_SPI1 -#define IRQ_SPI2 EXYNOS4_IRQ_SPI2 - -#define IRQ_USB_HOST EXYNOS4_IRQ_USB_HOST -#define IRQ_OTG EXYNOS4_IRQ_USB_HSOTG - -#define IRQ_HSMMC0 EXYNOS4_IRQ_HSMMC0 -#define IRQ_HSMMC1 EXYNOS4_IRQ_HSMMC1 -#define IRQ_HSMMC2 EXYNOS4_IRQ_HSMMC2 -#define IRQ_HSMMC3 EXYNOS4_IRQ_HSMMC3 - -#define IRQ_MIPI_CSIS0 EXYNOS4_IRQ_MIPI_CSIS0 - -#define IRQ_ONENAND_AUDI EXYNOS4_IRQ_ONENAND_AUDI - -#define IRQ_FIMC0 EXYNOS4_IRQ_FIMC0 -#define IRQ_FIMC1 EXYNOS4_IRQ_FIMC1 -#define IRQ_FIMC2 EXYNOS4_IRQ_FIMC2 -#define IRQ_FIMC3 EXYNOS4_IRQ_FIMC3 -#define IRQ_JPEG EXYNOS4_IRQ_JPEG -#define IRQ_2D EXYNOS4_IRQ_2D - -#define IRQ_MIXER EXYNOS4_IRQ_MIXER -#define IRQ_HDMI EXYNOS4_IRQ_HDMI -#define IRQ_IIC_HDMIPHY EXYNOS4_IRQ_IIC_HDMIPHY -#define IRQ_MFC EXYNOS4_IRQ_MFC -#define IRQ_SDO EXYNOS4_IRQ_SDO - -#define IRQ_I2S0 EXYNOS4_IRQ_I2S0 - -#define IRQ_ADC EXYNOS4_IRQ_ADC0 -#define IRQ_TC EXYNOS4_IRQ_PEN0 - -#define IRQ_KEYPAD EXYNOS4_IRQ_KEYPAD - -#define IRQ_FIMD0_FIFO EXYNOS4_IRQ_FIMD0_FIFO -#define IRQ_FIMD0_VSYNC EXYNOS4_IRQ_FIMD0_VSYNC -#define IRQ_FIMD0_SYSTEM EXYNOS4_IRQ_FIMD0_SYSTEM - -#define IRQ_GPIO1_NR_GROUPS EXYNOS4_IRQ_GPIO1_NR_GROUPS -#define IRQ_GPIO2_NR_GROUPS EXYNOS4_IRQ_GPIO2_NR_GROUPS - -/* For EXYNOS5 SoCs */ - -#define EXYNOS5_IRQ_MDMA0 IRQ_SPI(33) -#define EXYNOS5_IRQ_PDMA0 IRQ_SPI(34) -#define EXYNOS5_IRQ_PDMA1 IRQ_SPI(35) -#define EXYNOS5_IRQ_TIMER0_VIC IRQ_SPI(36) -#define EXYNOS5_IRQ_TIMER1_VIC IRQ_SPI(37) -#define EXYNOS5_IRQ_TIMER2_VIC IRQ_SPI(38) -#define EXYNOS5_IRQ_TIMER3_VIC IRQ_SPI(39) -#define EXYNOS5_IRQ_TIMER4_VIC IRQ_SPI(40) -#define EXYNOS5_IRQ_RTIC IRQ_SPI(41) -#define EXYNOS5_IRQ_WDT IRQ_SPI(42) -#define EXYNOS5_IRQ_RTC_ALARM IRQ_SPI(43) -#define EXYNOS5_IRQ_RTC_TIC IRQ_SPI(44) -#define EXYNOS5_IRQ_GPIO_XB IRQ_SPI(45) -#define EXYNOS5_IRQ_GPIO_XA IRQ_SPI(46) -#define EXYNOS5_IRQ_GPIO IRQ_SPI(47) -#define EXYNOS5_IRQ_IEM_IEC IRQ_SPI(48) -#define EXYNOS5_IRQ_IEM_APC IRQ_SPI(49) -#define EXYNOS5_IRQ_GPIO_C2C IRQ_SPI(50) -#define EXYNOS5_IRQ_IIC IRQ_SPI(56) -#define EXYNOS5_IRQ_IIC1 IRQ_SPI(57) -#define EXYNOS5_IRQ_IIC2 IRQ_SPI(58) -#define EXYNOS5_IRQ_IIC3 IRQ_SPI(59) -#define EXYNOS5_IRQ_IIC4 IRQ_SPI(60) -#define EXYNOS5_IRQ_IIC5 IRQ_SPI(61) -#define EXYNOS5_IRQ_IIC6 IRQ_SPI(62) -#define EXYNOS5_IRQ_IIC7 IRQ_SPI(63) -#define EXYNOS5_IRQ_IIC_HDMIPHY IRQ_SPI(64) -#define EXYNOS5_IRQ_TMU IRQ_SPI(65) -#define EXYNOS5_IRQ_FIQ_0 IRQ_SPI(66) -#define EXYNOS5_IRQ_FIQ_1 IRQ_SPI(67) -#define EXYNOS5_IRQ_SPI0 IRQ_SPI(68) -#define EXYNOS5_IRQ_SPI1 IRQ_SPI(69) -#define EXYNOS5_IRQ_SPI2 IRQ_SPI(70) -#define EXYNOS5_IRQ_USB_HOST IRQ_SPI(71) -#define EXYNOS5_IRQ_USB3_DRD IRQ_SPI(72) -#define EXYNOS5_IRQ_MIPI_HSI IRQ_SPI(73) -#define EXYNOS5_IRQ_USB_HSOTG IRQ_SPI(74) -#define EXYNOS5_IRQ_HSMMC0 IRQ_SPI(75) -#define EXYNOS5_IRQ_HSMMC1 IRQ_SPI(76) -#define EXYNOS5_IRQ_HSMMC2 IRQ_SPI(77) -#define EXYNOS5_IRQ_HSMMC3 IRQ_SPI(78) -#define EXYNOS5_IRQ_MIPICSI0 IRQ_SPI(79) -#define EXYNOS5_IRQ_MIPICSI1 IRQ_SPI(80) -#define EXYNOS5_IRQ_EFNFCON_DMA_ABORT IRQ_SPI(81) -#define EXYNOS5_IRQ_MIPIDSI0 IRQ_SPI(82) -#define EXYNOS5_IRQ_WDT_IOP IRQ_SPI(83) -#define EXYNOS5_IRQ_ROTATOR IRQ_SPI(84) -#define EXYNOS5_IRQ_GSC0 IRQ_SPI(85) -#define EXYNOS5_IRQ_GSC1 IRQ_SPI(86) -#define EXYNOS5_IRQ_GSC2 IRQ_SPI(87) -#define EXYNOS5_IRQ_GSC3 IRQ_SPI(88) -#define EXYNOS5_IRQ_JPEG IRQ_SPI(89) -#define EXYNOS5_IRQ_EFNFCON_DMA IRQ_SPI(90) -#define EXYNOS5_IRQ_2D IRQ_SPI(91) -#define EXYNOS5_IRQ_EFNFCON_0 IRQ_SPI(92) -#define EXYNOS5_IRQ_EFNFCON_1 IRQ_SPI(93) -#define EXYNOS5_IRQ_MIXER IRQ_SPI(94) -#define EXYNOS5_IRQ_HDMI IRQ_SPI(95) -#define EXYNOS5_IRQ_MFC IRQ_SPI(96) -#define EXYNOS5_IRQ_AUDIO_SS IRQ_SPI(97) -#define EXYNOS5_IRQ_I2S0 IRQ_SPI(98) -#define EXYNOS5_IRQ_I2S1 IRQ_SPI(99) -#define EXYNOS5_IRQ_I2S2 IRQ_SPI(100) -#define EXYNOS5_IRQ_AC97 IRQ_SPI(101) -#define EXYNOS5_IRQ_PCM0 IRQ_SPI(102) -#define EXYNOS5_IRQ_PCM1 IRQ_SPI(103) -#define EXYNOS5_IRQ_PCM2 IRQ_SPI(104) -#define EXYNOS5_IRQ_SPDIF IRQ_SPI(105) -#define EXYNOS5_IRQ_ADC0 IRQ_SPI(106) -#define EXYNOS5_IRQ_ADC1 IRQ_SPI(107) -#define EXYNOS5_IRQ_SATA_PHY IRQ_SPI(108) -#define EXYNOS5_IRQ_SATA_PMEMREQ IRQ_SPI(109) -#define EXYNOS5_IRQ_CAM_C IRQ_SPI(110) -#define EXYNOS5_IRQ_EAGLE_PMU IRQ_SPI(111) -#define EXYNOS5_IRQ_INTFEEDCTRL_SSS IRQ_SPI(112) -#define EXYNOS5_IRQ_DP1_INTP1 IRQ_SPI(113) -#define EXYNOS5_IRQ_CEC IRQ_SPI(114) -#define EXYNOS5_IRQ_SATA IRQ_SPI(115) - -#define EXYNOS5_IRQ_MMC44 IRQ_SPI(123) -#define EXYNOS5_IRQ_MDMA1 IRQ_SPI(124) -#define EXYNOS5_IRQ_FIMC_LITE0 IRQ_SPI(125) -#define EXYNOS5_IRQ_FIMC_LITE1 IRQ_SPI(126) -#define EXYNOS5_IRQ_RP_TIMER IRQ_SPI(127) - -/* EXYNOS5440 */ - -#define EXYNOS5440_IRQ_UART0 IRQ_SPI(2) -#define EXYNOS5440_IRQ_UART1 IRQ_SPI(3) - -#define EXYNOS5_IRQ_PMU COMBINER_IRQ(1, 2) - -#define EXYNOS5_IRQ_SYSMMU_GSC0_0 COMBINER_IRQ(2, 0) -#define EXYNOS5_IRQ_SYSMMU_GSC0_1 COMBINER_IRQ(2, 1) -#define EXYNOS5_IRQ_SYSMMU_GSC1_0 COMBINER_IRQ(2, 2) -#define EXYNOS5_IRQ_SYSMMU_GSC1_1 COMBINER_IRQ(2, 3) -#define EXYNOS5_IRQ_SYSMMU_GSC2_0 COMBINER_IRQ(2, 4) -#define EXYNOS5_IRQ_SYSMMU_GSC2_1 COMBINER_IRQ(2, 5) -#define EXYNOS5_IRQ_SYSMMU_GSC3_0 COMBINER_IRQ(2, 6) -#define EXYNOS5_IRQ_SYSMMU_GSC3_1 COMBINER_IRQ(2, 7) - -#define EXYNOS5_IRQ_SYSMMU_LITE2_0 COMBINER_IRQ(3, 0) -#define EXYNOS5_IRQ_SYSMMU_LITE2_1 COMBINER_IRQ(3, 1) -#define EXYNOS5_IRQ_SYSMMU_FIMD1_0 COMBINER_IRQ(3, 2) -#define EXYNOS5_IRQ_SYSMMU_FIMD1_1 COMBINER_IRQ(3, 3) -#define EXYNOS5_IRQ_SYSMMU_LITE0_0 COMBINER_IRQ(3, 4) -#define EXYNOS5_IRQ_SYSMMU_LITE0_1 COMBINER_IRQ(3, 5) -#define EXYNOS5_IRQ_SYSMMU_SCALERPISP_0 COMBINER_IRQ(3, 6) -#define EXYNOS5_IRQ_SYSMMU_SCALERPISP_1 COMBINER_IRQ(3, 7) - -#define EXYNOS5_IRQ_SYSMMU_ROTATOR_0 COMBINER_IRQ(4, 0) -#define EXYNOS5_IRQ_SYSMMU_ROTATOR_1 COMBINER_IRQ(4, 1) -#define EXYNOS5_IRQ_SYSMMU_JPEG_0 COMBINER_IRQ(4, 2) -#define EXYNOS5_IRQ_SYSMMU_JPEG_1 COMBINER_IRQ(4, 3) - -#define EXYNOS5_IRQ_SYSMMU_FD_0 COMBINER_IRQ(5, 0) -#define EXYNOS5_IRQ_SYSMMU_FD_1 COMBINER_IRQ(5, 1) -#define EXYNOS5_IRQ_SYSMMU_SCALERCISP_0 COMBINER_IRQ(5, 2) -#define EXYNOS5_IRQ_SYSMMU_SCALERCISP_1 COMBINER_IRQ(5, 3) -#define EXYNOS5_IRQ_SYSMMU_MCUISP_0 COMBINER_IRQ(5, 4) -#define EXYNOS5_IRQ_SYSMMU_MCUISP_1 COMBINER_IRQ(5, 5) -#define EXYNOS5_IRQ_SYSMMU_3DNR_0 COMBINER_IRQ(5, 6) -#define EXYNOS5_IRQ_SYSMMU_3DNR_1 COMBINER_IRQ(5, 7) - -#define EXYNOS5_IRQ_SYSMMU_ARM_0 COMBINER_IRQ(6, 0) -#define EXYNOS5_IRQ_SYSMMU_ARM_1 COMBINER_IRQ(6, 1) -#define EXYNOS5_IRQ_SYSMMU_MFC_R_0 COMBINER_IRQ(6, 2) -#define EXYNOS5_IRQ_SYSMMU_MFC_R_1 COMBINER_IRQ(6, 3) -#define EXYNOS5_IRQ_SYSMMU_RTIC_0 COMBINER_IRQ(6, 4) -#define EXYNOS5_IRQ_SYSMMU_RTIC_1 COMBINER_IRQ(6, 5) -#define EXYNOS5_IRQ_SYSMMU_SSS_0 COMBINER_IRQ(6, 6) -#define EXYNOS5_IRQ_SYSMMU_SSS_1 COMBINER_IRQ(6, 7) - -#define EXYNOS5_IRQ_SYSMMU_MDMA0_0 COMBINER_IRQ(7, 0) -#define EXYNOS5_IRQ_SYSMMU_MDMA0_1 COMBINER_IRQ(7, 1) -#define EXYNOS5_IRQ_SYSMMU_MDMA1_0 COMBINER_IRQ(7, 2) -#define EXYNOS5_IRQ_SYSMMU_MDMA1_1 COMBINER_IRQ(7, 3) -#define EXYNOS5_IRQ_SYSMMU_TV_0 COMBINER_IRQ(7, 4) -#define EXYNOS5_IRQ_SYSMMU_TV_1 COMBINER_IRQ(7, 5) - -#define EXYNOS5_IRQ_SYSMMU_MFC_L_0 COMBINER_IRQ(8, 5) -#define EXYNOS5_IRQ_SYSMMU_MFC_L_1 COMBINER_IRQ(8, 6) - -#define EXYNOS5_IRQ_SYSMMU_DIS1_0 COMBINER_IRQ(9, 4) -#define EXYNOS5_IRQ_SYSMMU_DIS1_1 COMBINER_IRQ(9, 5) - -#define EXYNOS5_IRQ_DP COMBINER_IRQ(10, 3) -#define EXYNOS5_IRQ_SYSMMU_DIS0_0 COMBINER_IRQ(10, 4) -#define EXYNOS5_IRQ_SYSMMU_DIS0_1 COMBINER_IRQ(10, 5) -#define EXYNOS5_IRQ_SYSMMU_ISP_0 COMBINER_IRQ(10, 6) -#define EXYNOS5_IRQ_SYSMMU_ISP_1 COMBINER_IRQ(10, 7) - -#define EXYNOS5_IRQ_SYSMMU_ODC_0 COMBINER_IRQ(11, 0) -#define EXYNOS5_IRQ_SYSMMU_ODC_1 COMBINER_IRQ(11, 1) -#define EXYNOS5_IRQ_SYSMMU_DRC_0 COMBINER_IRQ(11, 6) -#define EXYNOS5_IRQ_SYSMMU_DRC_1 COMBINER_IRQ(11, 7) - -#define EXYNOS5_IRQ_MDMA1_ABORT COMBINER_IRQ(13, 1) - -#define EXYNOS5_IRQ_MDMA0_ABORT COMBINER_IRQ(15, 3) - -#define EXYNOS5_IRQ_FIMD1_FIFO COMBINER_IRQ(18, 4) -#define EXYNOS5_IRQ_FIMD1_VSYNC COMBINER_IRQ(18, 5) -#define EXYNOS5_IRQ_FIMD1_SYSTEM COMBINER_IRQ(18, 6) - -#define EXYNOS5_IRQ_ARMIOP_GIC COMBINER_IRQ(19, 0) -#define EXYNOS5_IRQ_ARMISP_GIC COMBINER_IRQ(19, 1) -#define EXYNOS5_IRQ_IOP_GIC COMBINER_IRQ(19, 3) -#define EXYNOS5_IRQ_ISP_GIC COMBINER_IRQ(19, 4) - -#define EXYNOS5_IRQ_PMU_CPU1 COMBINER_IRQ(22, 4) - -#define EXYNOS5_IRQ_EINT0 COMBINER_IRQ(23, 0) - -#define EXYNOS5_IRQ_EINT1 COMBINER_IRQ(24, 0) -#define EXYNOS5_IRQ_SYSMMU_LITE1_0 COMBINER_IRQ(24, 1) -#define EXYNOS5_IRQ_SYSMMU_LITE1_1 COMBINER_IRQ(24, 2) -#define EXYNOS5_IRQ_SYSMMU_2D_0 COMBINER_IRQ(24, 5) -#define EXYNOS5_IRQ_SYSMMU_2D_1 COMBINER_IRQ(24, 6) - -#define EXYNOS5_IRQ_EINT2 COMBINER_IRQ(25, 0) -#define EXYNOS5_IRQ_EINT3 COMBINER_IRQ(25, 1) - -#define EXYNOS5_IRQ_EINT4 COMBINER_IRQ(26, 0) -#define EXYNOS5_IRQ_EINT5 COMBINER_IRQ(26, 1) - -#define EXYNOS5_IRQ_EINT6 COMBINER_IRQ(27, 0) -#define EXYNOS5_IRQ_EINT7 COMBINER_IRQ(27, 1) - -#define EXYNOS5_IRQ_EINT8 COMBINER_IRQ(28, 0) -#define EXYNOS5_IRQ_EINT9 COMBINER_IRQ(28, 1) - -#define EXYNOS5_IRQ_EINT10 COMBINER_IRQ(29, 0) -#define EXYNOS5_IRQ_EINT11 COMBINER_IRQ(29, 1) - -#define EXYNOS5_IRQ_EINT12 COMBINER_IRQ(30, 0) -#define EXYNOS5_IRQ_EINT13 COMBINER_IRQ(30, 1) - -#define EXYNOS5_IRQ_EINT14 COMBINER_IRQ(31, 0) -#define EXYNOS5_IRQ_EINT15 COMBINER_IRQ(31, 1) - -#define EXYNOS5_MAX_COMBINER_NR 32 - -#define EXYNOS5_IRQ_GPIO1_NR_GROUPS 14 -#define EXYNOS5_IRQ_GPIO2_NR_GROUPS 9 -#define EXYNOS5_IRQ_GPIO3_NR_GROUPS 5 -#define EXYNOS5_IRQ_GPIO4_NR_GROUPS 1 - -#define MAX_COMBINER_NR (EXYNOS4_MAX_COMBINER_NR > EXYNOS5_MAX_COMBINER_NR ? \ - EXYNOS4_MAX_COMBINER_NR : EXYNOS5_MAX_COMBINER_NR) - -#define S5P_EINT_BASE1 COMBINER_IRQ(MAX_COMBINER_NR, 0) -#define S5P_EINT_BASE2 (S5P_EINT_BASE1 + 16) -#define S5P_GPIOINT_BASE (S5P_EINT_BASE1 + 32) -#define IRQ_GPIO_END (S5P_GPIOINT_BASE + S5P_GPIOINT_COUNT) -#define IRQ_TIMER_BASE (IRQ_GPIO_END + 64) - -/* Set the default NR_IRQS */ -#define EXYNOS_NR_IRQS (IRQ_TIMER_BASE + IRQ_TIMER_COUNT) - -#ifndef CONFIG_SPARSE_IRQ -#define NR_IRQS EXYNOS_NR_IRQS -#endif - -#endif /* __ASM_ARCH_IRQS_H */
Signature · 1 line
1.8.2.1
PATCH 26/28 ARM: EXYNOS: Remove unused base addresses from mach/map.h header
In reply to Tomasz FigaThis patch removes all the unused base addresses from mach/map.h header, leaving only addresses of IPs that currently use static IO mapping or need the address hardcoded, like low level debug UART.
--- arch/arm/mach-exynos/include/mach/map.h | 214 -------------------------------- 1 file changed, 214 deletions(-)
arch/arm/mach-exynos/include/mach/map.h +0 -214
@@ -30,31 +30,6 @@#define EXYNOS4x12_PA_SYSRAM_NS 0x0204F000#define EXYNOS5250_PA_SYSRAM_NS 0x0204F000 -#define EXYNOS4_PA_FIMC0 0x11800000 -#define EXYNOS4_PA_FIMC1 0x11810000 -#define EXYNOS4_PA_FIMC2 0x11820000 -#define EXYNOS4_PA_FIMC3 0x11830000 - -#define EXYNOS4_PA_JPEG 0x11840000 - -/* x = 0...1 */ -#define EXYNOS4_PA_FIMC_LITE (x) (0x12390000 + ((x) * 0x10000)) - -#define EXYNOS4_PA_G2D 0x12800000 - -#define EXYNOS4_PA_I2S0 0x03830000 -#define EXYNOS4_PA_I2S1 0xE3100000 -#define EXYNOS4_PA_I2S2 0xE2A00000 - -#define EXYNOS4_PA_PCM0 0x03840000 -#define EXYNOS4_PA_PCM1 0x13980000 -#define EXYNOS4_PA_PCM2 0x13990000 - -#define EXYNOS4_PA_SROM_BANK (x) (0x04000000 + ((x) * 0x01000000)) - -#define EXYNOS4_PA_ONENAND 0x0C000000 -#define EXYNOS4_PA_ONENAND_DMA 0x0C600000 -#define EXYNOS_PA_CHIPID 0x10000000#define EXYNOS4_PA_SYSCON 0x10010000
@@ -71,10 +46,6 @@#define EXYNOS4_PA_WATCHDOG 0x10060000#define EXYNOS5_PA_WATCHDOG 0x101D0000 -#define EXYNOS4_PA_RTC 0x10070000 - -#define EXYNOS4_PA_KEYPAD 0x100A0000 -#define EXYNOS4_PA_DMC0 0x10400000#define EXYNOS4_PA_DMC1 0x10410000
@@ -87,207 +58,22 @@#define EXYNOS5_PA_GIC_DIST 0x10481000#define EXYNOS4_PA_COREPERI 0x10500000 -#define EXYNOS4_PA_TWD 0x10500600#define EXYNOS4_PA_L2CC 0x10502000 -#define EXYNOS4_PA_TMU 0x100C0000 - -#define EXYNOS4_PA_MDMA0 0x10810000 -#define EXYNOS4_PA_MDMA1 0x12850000 -#define EXYNOS4_PA_S_MDMA1 0x12840000 -#define EXYNOS4_PA_PDMA0 0x12680000 -#define EXYNOS4_PA_PDMA1 0x12690000 -#define EXYNOS5_PA_MDMA0 0x10800000 -#define EXYNOS5_PA_MDMA1 0x11C10000 -#define EXYNOS5_PA_PDMA0 0x121A0000 -#define EXYNOS5_PA_PDMA1 0x121B0000 - -#define EXYNOS4_PA_SYSMMU_MDMA 0x10A40000 -#define EXYNOS4_PA_SYSMMU_2D_ACP 0x10A40000 -#define EXYNOS4_PA_SYSMMU_SSS 0x10A50000 -#define EXYNOS4_PA_SYSMMU_FIMC0 0x11A20000 -#define EXYNOS4_PA_SYSMMU_FIMC1 0x11A30000 -#define EXYNOS4_PA_SYSMMU_FIMC2 0x11A40000 -#define EXYNOS4_PA_SYSMMU_FIMC3 0x11A50000 -#define EXYNOS4_PA_SYSMMU_JPEG 0x11A60000 -#define EXYNOS4_PA_SYSMMU_FIMD0 0x11E20000 -#define EXYNOS4_PA_SYSMMU_FIMD1 0x12220000 -#define EXYNOS4_PA_SYSMMU_FIMC_ISP 0x12260000 -#define EXYNOS4_PA_SYSMMU_FIMC_DRC 0x12270000 -#define EXYNOS4_PA_SYSMMU_FIMC_FD 0x122A0000 -#define EXYNOS4_PA_SYSMMU_ISPCPU 0x122B0000 -#define EXYNOS4_PA_SYSMMU_FIMC_LITE0 0x123B0000 -#define EXYNOS4_PA_SYSMMU_FIMC_LITE1 0x123C0000 -#define EXYNOS4_PA_SYSMMU_PCIe 0x12620000 -#define EXYNOS4_PA_SYSMMU_G2D 0x12A20000 -#define EXYNOS4_PA_SYSMMU_ROTATOR 0x12A30000 -#define EXYNOS4_PA_SYSMMU_MDMA2 0x12A40000 -#define EXYNOS4_PA_SYSMMU_TV 0x12E20000 -#define EXYNOS4_PA_SYSMMU_MFC_L 0x13620000 -#define EXYNOS4_PA_SYSMMU_MFC_R 0x13630000 - -#define EXYNOS5_PA_GSC0 0x13E00000 -#define EXYNOS5_PA_GSC1 0x13E10000 -#define EXYNOS5_PA_GSC2 0x13E20000 -#define EXYNOS5_PA_GSC3 0x13E30000 - -#define EXYNOS5_PA_SYSMMU_MDMA1 0x10A40000 -#define EXYNOS5_PA_SYSMMU_SSS 0x10A50000 -#define EXYNOS5_PA_SYSMMU_2D 0x10A60000 -#define EXYNOS5_PA_SYSMMU_MFC_L 0x11200000 -#define EXYNOS5_PA_SYSMMU_MFC_R 0x11210000 -#define EXYNOS5_PA_SYSMMU_ROTATOR 0x11D40000 -#define EXYNOS5_PA_SYSMMU_MDMA2 0x11D50000 -#define EXYNOS5_PA_SYSMMU_JPEG 0x11F20000 -#define EXYNOS5_PA_SYSMMU_IOP 0x12360000 -#define EXYNOS5_PA_SYSMMU_RTIC 0x12370000 -#define EXYNOS5_PA_SYSMMU_ISP 0x13260000 -#define EXYNOS5_PA_SYSMMU_DRC 0x12370000 -#define EXYNOS5_PA_SYSMMU_SCALERC 0x13280000 -#define EXYNOS5_PA_SYSMMU_SCALERP 0x13290000 -#define EXYNOS5_PA_SYSMMU_FD 0x132A0000 -#define EXYNOS5_PA_SYSMMU_ISPCPU 0x132B0000 -#define EXYNOS5_PA_SYSMMU_ODC 0x132C0000 -#define EXYNOS5_PA_SYSMMU_DIS0 0x132D0000 -#define EXYNOS5_PA_SYSMMU_DIS1 0x132E0000 -#define EXYNOS5_PA_SYSMMU_3DNR 0x132F0000 -#define EXYNOS5_PA_SYSMMU_LITE0 0x13C40000 -#define EXYNOS5_PA_SYSMMU_LITE1 0x13C50000 -#define EXYNOS5_PA_SYSMMU_GSC0 0x13E80000 -#define EXYNOS5_PA_SYSMMU_GSC1 0x13E90000 -#define EXYNOS5_PA_SYSMMU_GSC2 0x13EA0000 -#define EXYNOS5_PA_SYSMMU_GSC3 0x13EB0000 -#define EXYNOS5_PA_SYSMMU_FIMD1 0x14640000 -#define EXYNOS5_PA_SYSMMU_TV 0x14650000 - -#define EXYNOS4_PA_SPI0 0x13920000 -#define EXYNOS4_PA_SPI1 0x13930000 -#define EXYNOS4_PA_SPI2 0x13940000 -#define EXYNOS5_PA_SPI0 0x12D20000 -#define EXYNOS5_PA_SPI1 0x12D30000 -#define EXYNOS5_PA_SPI2 0x12D40000 - -#define EXYNOS4_PA_GPIO1 0x11400000 -#define EXYNOS4_PA_GPIO2 0x11000000 -#define EXYNOS4_PA_GPIO3 0x03860000 -#define EXYNOS5_PA_GPIO1 0x11400000 -#define EXYNOS5_PA_GPIO2 0x13400000 -#define EXYNOS5_PA_GPIO3 0x10D10000 -#define EXYNOS5_PA_GPIO4 0x03860000 - -#define EXYNOS4_PA_MIPI_CSIS0 0x11880000 -#define EXYNOS4_PA_MIPI_CSIS1 0x11890000 - -#define EXYNOS4_PA_FIMD0 0x11C00000 - -#define EXYNOS4_PA_HSMMC (x) (0x12510000 + ((x) * 0x10000)) -#define EXYNOS4_PA_DWMCI 0x12550000 -#define EXYNOS5_PA_DWMCI0 0x12200000 -#define EXYNOS5_PA_DWMCI1 0x12210000 -#define EXYNOS5_PA_DWMCI2 0x12220000 -#define EXYNOS5_PA_DWMCI3 0x12230000 - -#define EXYNOS4_PA_HSOTG 0x12480000 -#define EXYNOS4_PA_USB_HSPHY 0x125B0000 - -#define EXYNOS4_PA_SATA 0x12560000 -#define EXYNOS4_PA_SATAPHY 0x125D0000 -#define EXYNOS4_PA_SATAPHY_CTRL 0x126B0000 -#define EXYNOS4_PA_SROMC 0x12570000#define EXYNOS5_PA_SROMC 0x12250000 -#define EXYNOS4_PA_EHCI 0x12580000 -#define EXYNOS4_PA_OHCI 0x12590000#define EXYNOS4_PA_HSPHY 0x125B0000 -#define EXYNOS4_PA_MFC 0x13400000#define EXYNOS4_PA_UART 0x13800000#define EXYNOS5_PA_UART 0x12C00000 -#define EXYNOS4_PA_VP 0x12C00000 -#define EXYNOS4_PA_MIXER 0x12C10000 -#define EXYNOS4_PA_SDO 0x12C20000 -#define EXYNOS4_PA_HDMI 0x12D00000 -#define EXYNOS4_PA_IIC_HDMIPHY 0x138E0000 - -#define EXYNOS4_PA_IIC (x) (0x13860000 + ((x) * 0x10000)) -#define EXYNOS5_PA_IIC (x) (0x12C60000 + ((x) * 0x10000)) - -#define EXYNOS4_PA_ADC 0x13910000 -#define EXYNOS4_PA_ADC1 0x13911000 - -#define EXYNOS4_PA_AC97 0x139A0000 - -#define EXYNOS4_PA_SPDIF 0x139B0000 -#define EXYNOS4_PA_TIMER 0x139D0000#define EXYNOS5_PA_TIMER 0x12DD0000 -#define EXYNOS4_PA_SDRAM 0x40000000 -#define EXYNOS5_PA_SDRAM 0x40000000 - -/* Compatibiltiy Defines */ - -#define S3C_PA_HSMMC0 EXYNOS4_PA_HSMMC(0) -#define S3C_PA_HSMMC1 EXYNOS4_PA_HSMMC(1) -#define S3C_PA_HSMMC2 EXYNOS4_PA_HSMMC(2) -#define S3C_PA_HSMMC3 EXYNOS4_PA_HSMMC(3) -#define S3C_PA_IIC EXYNOS4_PA_IIC(0) -#define S3C_PA_IIC1 EXYNOS4_PA_IIC(1) -#define S3C_PA_IIC2 EXYNOS4_PA_IIC(2) -#define S3C_PA_IIC3 EXYNOS4_PA_IIC(3) -#define S3C_PA_IIC4 EXYNOS4_PA_IIC(4) -#define S3C_PA_IIC5 EXYNOS4_PA_IIC(5) -#define S3C_PA_IIC6 EXYNOS4_PA_IIC(6) -#define S3C_PA_IIC7 EXYNOS4_PA_IIC(7) -#define S3C_PA_RTC EXYNOS4_PA_RTC -#define S3C_PA_WDT EXYNOS4_PA_WATCHDOG -#define S3C_PA_SPI0 EXYNOS4_PA_SPI0 -#define S3C_PA_SPI1 EXYNOS4_PA_SPI1 -#define S3C_PA_SPI2 EXYNOS4_PA_SPI2 -#define S3C_PA_USB_HSOTG EXYNOS4_PA_HSOTG - -#define S5P_PA_EHCI EXYNOS4_PA_EHCI -#define S5P_PA_FIMC0 EXYNOS4_PA_FIMC0 -#define S5P_PA_FIMC1 EXYNOS4_PA_FIMC1 -#define S5P_PA_FIMC2 EXYNOS4_PA_FIMC2 -#define S5P_PA_FIMC3 EXYNOS4_PA_FIMC3 -#define S5P_PA_JPEG EXYNOS4_PA_JPEG -#define S5P_PA_G2D EXYNOS4_PA_G2D -#define S5P_PA_FIMD0 EXYNOS4_PA_FIMD0 -#define S5P_PA_HDMI EXYNOS4_PA_HDMI -#define S5P_PA_IIC_HDMIPHY EXYNOS4_PA_IIC_HDMIPHY -#define S5P_PA_MFC EXYNOS4_PA_MFC -#define S5P_PA_MIPI_CSIS0 EXYNOS4_PA_MIPI_CSIS0 -#define S5P_PA_MIPI_CSIS1 EXYNOS4_PA_MIPI_CSIS1 -#define S5P_PA_MIXER EXYNOS4_PA_MIXER -#define S5P_PA_ONENAND EXYNOS4_PA_ONENAND -#define S5P_PA_ONENAND_DMA EXYNOS4_PA_ONENAND_DMA -#define S5P_PA_SDO EXYNOS4_PA_SDO -#define S5P_PA_SDRAM EXYNOS4_PA_SDRAM -#define S5P_PA_VP EXYNOS4_PA_VP - -#define SAMSUNG_PA_ADC EXYNOS4_PA_ADC -#define SAMSUNG_PA_ADC1 EXYNOS4_PA_ADC1 -#define SAMSUNG_PA_KEYPAD EXYNOS4_PA_KEYPAD -/* Compatibility UART */ -#define EXYNOS4_PA_UART0 0x13800000 -#define EXYNOS4_PA_UART1 0x13810000 -#define EXYNOS4_PA_UART2 0x13820000 -#define EXYNOS4_PA_UART3 0x13830000 -#define EXYNOS4_SZ_UART SZ_256 - -#define EXYNOS5_PA_UART0 0x12C00000 -#define EXYNOS5_PA_UART1 0x12C10000 -#define EXYNOS5_PA_UART2 0x12C20000 -#define EXYNOS5_PA_UART3 0x12C30000 -#define EXYNOS5440_PA_UART0 0x000B0000 -#define EXYNOS5440_PA_UART1 0x000C0000 -#define EXYNOS5440_SZ_UART SZ_256#define S3C_VA_UARTx (x) (S3C_VA_UART + ((x) * S3C_UART_OFFSET))
Signature · 1 line
1.8.2.1
PATCH 27/28 ARM: EXYNOS: Remove CONFIG_SOC_EXYNOS4412
In reply to Tomasz FigaExynos4212 and Exynos4412 SoCs differ only in number of ARM cores and there is no need to have separate Kconfig options for them, since they use the same code.
This patch removes CONFIG_SOC_EXYNOS4412, leaving CONFIG_SOC_EXYNOS4212 as the one supporting both SoCs from this series.
--- arch/arm/mach-exynos/Kconfig | 11 +---------- arch/arm/plat-samsung/include/plat/cpu.h | 6 +----- drivers/cpufreq/Kconfig.arm | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +-- 6 files changed, 6 insertions(+), 20 deletions(-)
arch/arm/mach-exynos/Kconfig +1 -10
@@ -46,7 +46,7 @@ config CPU_EXYNOS4210 Enable EXYNOS4210 CPU support config SOC_EXYNOS4212 - bool "SAMSUNG EXYNOS4212" + bool "SAMSUNG EXYNOS4212/4412" default y depends on ARCH_EXYNOS4 select PINCTRL_EXYNOS
@@ -56,15 +56,6 @@ config SOC_EXYNOS4212 help Enable EXYNOS4212 SoC support -config SOC_EXYNOS4412 - bool "SAMSUNG EXYNOS4412" - default y - depends on ARCH_EXYNOS4 - select PINCTRL_EXYNOS - select SAMSUNG_DMADEV - help - Enable EXYNOS4412 SoC support - config SOC_EXYNOS5250 bool "SAMSUNG EXYNOS5250" default y
arch/arm/plat-samsung/include/plat/cpu.h +1 -5
@@ -122,13 +122,9 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK)#if defined(CONFIG_SOC_EXYNOS4212 )# define soc_is_exynos4212 () is_samsung_exynos4212() -#else -# define soc_is_exynos4212 () 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS4412 )# define soc_is_exynos4412 () is_samsung_exynos4412()#else +# define soc_is_exynos4212 () 0# define soc_is_exynos4412 () 0#endif
drivers/cpufreq/Kconfig.arm +1 -1
@@ -32,7 +32,7 @@ config ARM_EXYNOS4210_CPUFREQ SoC (S5PV310 or S5PC210). config ARM_EXYNOS4X12_CPUFREQ - def_bool (SOC_EXYNOS4212 || SOC_EXYNOS4412) + def_bool SOC_EXYNOS4212 help This adds the CPUFreq driver for Samsung EXYNOS4X12 SoC (EXYNOS4212 or EXYNOS4412).
drivers/media/platform/exynos4-is/Kconfig +1 -1
@@ -32,7 +32,7 @@ config VIDEO_S5P_MIPI_CSIS To compile this driver as a module, choose M here: the module will be called s5p-csis. -if SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250 +if SOC_EXYNOS4212 || SOC_EXYNOS5250 config VIDEO_EXYNOS_FIMC_LITE tristate "EXYNOS FIMC-LITE camera interface driver"
drivers/thermal/exynos_thermal.c +1 -1
@@ -817,7 +817,7 @@ static struct exynos_tmu_platform_data const exynos4210_default_tmu_data = {#define EXYNOS4210_TMU_DRV_DATA (NULL)#endif -#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4412 ) +#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4212 )static struct exynos_tmu_platform_data const exynos_default_tmu_data = { .threshold_falling =10 , .trigger_levels[0] = 85,
drivers/tty/serial/samsung.c +1 -2
@@ -1714,8 +1714,7 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = {#endif #if defined(CONFIG_CPU_EXYNOS4210) || defined(CONFIG_SOC_EXYNOS4212) || \ - defined(CONFIG_SOC_EXYNOS4412) || defined(CONFIG_SOC_EXYNOS5250) || \ - defined(CONFIG_SOC_EXYNOS5440) + defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS5440) static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = { .info = &(struct s3c24xx_uart_info) { .name = "Samsung Exynos4 UART",
Signature · 1 line
1.8.2.1
RE: [PATCH 27/28] ARM: EXYNOS: Remove CONFIG_SOC_EXYNOS4412
Quoted 138 lines · Tomasz Figa
Exynos4212 and Exynos4412 SoCs differ only in number of ARM cores and there is no need to have separate
Kconfigoptions for them, since they use the same code.This patch removes
CONFIG_SOC_EXYNOS4412, leavingCONFIG_SOC_EXYNOS4212as the one supporting both SoCs from this series.Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Zhang Rui <[email protected]>Cc Eduardo Valentin <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-exynos/Kconfig | 11 +---------- arch/arm/plat-samsung/include/plat/cpu.h | 6 +----- drivers/cpufreq/Kconfig.arm | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +-- 6 files changed, 6 insertions(+), 20 deletions(-)arch/arm/mach-exynos/Kconfig +1
-10@@ -46,7 +46,7 @@ config CPU_EXYNOS4210 Enable EXYNOS4210 CPU support config SOC_EXYNOS4212 - bool "SAMSUNG EXYNOS4212" + bool "SAMSUNG EXYNOS4212/4412" default y depends on ARCH_EXYNOS4 select PINCTRL_EXYNOS@@ -56,15 +56,6 @@ config SOC_EXYNOS4212 help Enable EXYNOS4212 SoC support -config SOC_EXYNOS4412 - bool "SAMSUNG EXYNOS4412" - default y - depends on ARCH_EXYNOS4 - select PINCTRL_EXYNOS - select SAMSUNG_DMADEV - help - Enable EXYNOS4412 SoC support - config SOC_EXYNOS5250 bool "SAMSUNG EXYNOS5250" default yarch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/cpu.h +0
-0
samsung/include/plat/cpu.h
index 989fefe..87b03bb 100644arch/arm/plat-samsung/include/plat/cpu.h +1
-5@@ -122,13 +122,9 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK)#if defined(CONFIG_SOC_EXYNOS4212 )# define soc_is_exynos4212 () is_samsung_exynos4212() -#else -# define soc_is_exynos4212 () 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS4412 )# define soc_is_exynos4412 () is_samsung_exynos4412()#else +# define soc_is_exynos4212 () 0# define soc_is_exynos4412 () 0#endif drivers/cpufreq/Kconfig.arm +1
-1@@ -32,7 +32,7 @@ config ARM_EXYNOS4210_CPUFREQ SoC (S5PV310 or S5PC210). config ARM_EXYNOS4X12_CPUFREQ - def_bool (SOC_EXYNOS4212 || SOC_EXYNOS4412) + def_bool SOC_EXYNOS4212 help This adds the CPUFreq driver for Samsung EXYNOS4X12 SoC (EXYNOS4212 or EXYNOS4412).drivers/media/platform/exynos4-is/Kconfig +1
-1@@ -32,7 +32,7 @@ config VIDEO_S5P_MIPI_CSIS To compile this driver as a module, choose M here: the module will be called s5p-csis. -if SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250 +if SOC_EXYNOS4212 || SOC_EXYNOS5250 config VIDEO_EXYNOS_FIMC_LITE tristate "EXYNOS FIMC-LITE camera interface driver"drivers/thermal/exynos_thermal.c +1
-1@@ -817,7 +817,7 @@ static struct exynos_tmu_platform_data const exynos4210_default_tmu_data = { #define EXYNOS4210_TMU_DRV_DATA (NULL) #endif -#if defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS4412) +#if defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS4212) static struct exynos_tmu_platform_data const exynos_default_tmu_data = { .threshold_falling = 10,drivers/thermal/exynos_thermal.c +0
-0.trigger_levels[0] = 85,drivers/tty/serial/samsung.c +1
-2@@ -1714,8 +1714,7 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { #endif #if defined(CONFIG_CPU_EXYNOS4210) || defined(CONFIG_SOC_EXYNOS4212) || \ - defined(CONFIG_SOC_EXYNOS4412) || defined(CONFIG_SOC_EXYNOS5250) || \ - defined(CONFIG_SOC_EXYNOS5440) + defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS5440) static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = {drivers/tty/serial/samsung.c +0
-1.info = &(struct s3c24xx_uart_info) { .name ="Samsung Exynos4 UART" , --
Quoted 1 line
1.8.2.1
Hmm, how about SOC_EXYNOS4X12 for exynos4212 and exynos4412?
BTW, AFAIK, we need to leave both to support something...I need to check :)
- Kukjin
Re: [PATCH 27/28] ARM: EXYNOS: Remove CONFIG_SOC_EXYNOS4412
Quoted 155 lines · On Saturday 15 of June 2013 11:15:51 Kukjin Kim wrote:
Quoted 154 lines · Tomasz Figa
Exynos4212 and Exynos4412 SoCs differ only in number of ARM cores and there is no need to have separate
Kconfigoptions for them, since they use the same code.This patch removes
CONFIG_SOC_EXYNOS4412, leavingCONFIG_SOC_EXYNOS4212
as the one supporting both SoCs from this series.Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Zhang Rui <[email protected]>Cc Eduardo Valentin <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
arch/arm/mach-exynos/Kconfig | 11 +---------- arch/arm/plat-samsung/include/plat/cpu.h | 6 +----- drivers/cpufreq/Kconfig.arm | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +-- 6 files changed, 6 insertions(+), 20 deletions(-)(quoted diff) +0
-0b/arch/arm/mach-exynos/Kconfig index 47d8d9e..fe75a65 100644
arch/arm/mach-exynos/Kconfig +1
-1@@ -46,7 +46,7 @@ config CPU_EXYNOS4210 Enable EXYNOS4210 CPU support config SOC_EXYNOS4212 - bool "SAMSUNG EXYNOS4212" + bool "SAMSUNG EXYNOS4212/4412"arch/arm/mach-exynos/Kconfig +0
-9default y depends on ARCH_EXYNOS4 select PINCTRL_EXYNOS@@ -56,15 +56,6 @@ config SOC_EXYNOS4212 help Enable EXYNOS4212 SoC support -config SOC_EXYNOS4412 - bool "SAMSUNG EXYNOS4412" - default y - depends on ARCH_EXYNOS4 - select PINCTRL_EXYNOS - select SAMSUNG_DMADEV - help - Enable EXYNOS4412 SoC support -config
SOC_EXYNOS5250arch/arm/mach-exynos/Kconfig +0
-0bool "SAMSUNG EXYNOS5250" default yarch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/cpu.h +0
-0
samsung/include/plat/cpu.h
index 989fefe..87b03bb 100644arch/arm/plat-samsung/include/plat/cpu.h +1
-5@@ -122,13 +122,9 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK)#if defined(CONFIG_SOC_EXYNOS4212 )# define soc_is_exynos4212 () is_samsung_exynos4212() -#else -# define soc_is_exynos4212 () 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS4412 )# define soc_is_exynos4412 () is_samsung_exynos4412()#else +# define soc_is_exynos4212 () 0# define soc_is_exynos4412 () 0#endif drivers/cpufreq/Kconfig.arm +1
-1@@ -32,7 +32,7 @@ config ARM_EXYNOS4210_CPUFREQ SoC (S5PV310 or S5PC210). config ARM_EXYNOS4X12_CPUFREQ - def_bool (SOC_EXYNOS4212 || SOC_EXYNOS4412) + def_bool SOC_EXYNOS4212drivers/cpufreq/Kconfig.arm +0
-0help This adds the CPUFreq driver for Samsung EXYNOS4X12 SoC (EXYNOS4212 or EXYNOS4412).drivers/media/platform/exynos4-is/Kconfig +1
-1@@ -32,7 +32,7 @@ config VIDEO_S5P_MIPI_CSIS To compile this driver as a module, choose M here: the module will be called s5p-csis. -if SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250 +if SOC_EXYNOS4212 || SOC_EXYNOS5250 config VIDEO_EXYNOS_FIMC_LITEdrivers/media/platform/exynos4-is/Kconfig +0
-0tristate "EXYNOS FIMC-LITE camera interface driver"drivers/thermal/exynos_thermal.c +1
-1@@ -817,7 +817,7 @@ static struct exynos_tmu_platform_data const exynos4210_default_tmu_data = {#define EXYNOS4210_TMU_DRV_DATA (NULL)#endif -#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4412 ) +#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4212 )static struct
exynos_tmu_platform_dataconstexynos_default_tmu_data= {>drivers/thermal/exynos_thermal.c +0
-0.threshold_falling = 10, .trigger_levels[0] = 85,(quoted diff) +0
-0
b/drivers/tty/serial/samsung.cindex 0c8a9fa..eeb8ecb 100644drivers/tty/serial/samsung.c +0
-0@@ -1714,8 +1714,7 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = {
Quoted 5 lines
drivers/tty/serial/samsung.c static struct s3c24xx_serial_drv_data · line 1720
Quoted 5 lines
drivers/tty/serial/samsung.c +0
-1#endif #if defined(CONFIG_CPU_EXYNOS4210 ) || defined(CONFIG_SOC_EXYNOS4212 ) || \> - defined(CONFIG_SOC_EXYNOS4412 ) || defined(CONFIG_SOC_EXYNOS5250 )
||
Quoted 6 lines
Quoted 6 lines
drivers/tty/serial/samsung.c +1
-1\ -defined (CONFIG_SOC_EXYNOS5440) + defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS5440)static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = {
Quoted 8 lines
Quoted 6 lines
drivers/tty/serial/samsung.c +0
-1.info = &(struct s3c24xx_uart_info) { .name ="Samsung Exynos4 UART" , --1.8.2.1
Hmm, how about
SOC_EXYNOS4X12for exynos4212 and exynos4412?
I was thinking about it and finally decided to leave SOC_EXYNOS4212 for compatibility reasons - you don't need to change SOC_EXYNOS4212 to SOC_EXYNOS4X12 wherever it's used, making it possible to apply some older out of tree patches without modification.
Quoted 2 lines
BTW, AFAIK, we need to leave both to support something...I need to check :)
OK.
But IMHO, now with DeviceTree, there is usually no need for such level of differentiation on config level.
For example we might be even able reduce CPU_EXYNOS4210 and SOC_EXYNOS4212 to just ARCH_EXYNOS4, because they share almost all the code and all the differencies are specified in device tree.
Best regards,
Tomasz
Quoted 7 lines
- Kukjin
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 27/28] ARM: EXYNOS: Remove CONFIG_SOC_EXYNOS4412
In reply to Tomasz FigaTomasz,
Quoted 19 lines · Tomasz Figa
Exynos4212 and Exynos4412 SoCs differ only in number of ARM cores and there is no need to have separate
Kconfigoptions for them, since they use the same code.This patch removes
CONFIG_SOC_EXYNOS4412, leavingCONFIG_SOC_EXYNOS4212as the one supporting both SoCs from this series.Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Zhang Rui <[email protected]>Cc Eduardo Valentin <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>
Quoted 8 lines
--- arch/arm/mach-exynos/Kconfig | 11 +---------- arch/arm/plat-samsung/include/plat/cpu.h | 6 +----- drivers/cpufreq/Kconfig.arm | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +-- 6 files changed, 6 insertions(+), 20 deletions(-)
Not for the matter of the change itself, but just for simplicity while merging when the change is agreed to be good, it is recommended that you split your changes in different smaller patches, specially because you are touching several parts of the kernel that belong to different trees. If one merges your change the way it is, it is likely to create merge conflicts.
Quoted 103 lines
arch/arm/mach-exynos/Kconfig +1
-10@@ -46,7 +46,7 @@ config CPU_EXYNOS4210 Enable EXYNOS4210 CPU support config SOC_EXYNOS4212 - bool "SAMSUNG EXYNOS4212" + bool "SAMSUNG EXYNOS4212/4412" default y depends on ARCH_EXYNOS4 select PINCTRL_EXYNOS@@ -56,15 +56,6 @@ config SOC_EXYNOS4212 help Enable EXYNOS4212 SoC support -config SOC_EXYNOS4412 - bool "SAMSUNG EXYNOS4412" - default y - depends on ARCH_EXYNOS4 - select PINCTRL_EXYNOS - select SAMSUNG_DMADEV - help - Enable EXYNOS4412 SoC support - config SOC_EXYNOS5250 bool "SAMSUNG EXYNOS5250" default yarch/arm/plat-samsung/include/plat/cpu.h +1
-5@@ -122,13 +122,9 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK)#if defined(CONFIG_SOC_EXYNOS4212 )# define soc_is_exynos4212 () is_samsung_exynos4212() -#else -# define soc_is_exynos4212 () 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS4412 )# define soc_is_exynos4412 () is_samsung_exynos4412()#else +# define soc_is_exynos4212 () 0# define soc_is_exynos4412 () 0#endif drivers/cpufreq/Kconfig.arm +1
-1@@ -32,7 +32,7 @@ config ARM_EXYNOS4210_CPUFREQ SoC (S5PV310 or S5PC210). config ARM_EXYNOS4X12_CPUFREQ - def_bool (SOC_EXYNOS4212 || SOC_EXYNOS4412) + def_bool SOC_EXYNOS4212 help This adds the CPUFreq driver for Samsung EXYNOS4X12 SoC (EXYNOS4212 or EXYNOS4412).drivers/media/platform/exynos4-is/Kconfig +1
-1@@ -32,7 +32,7 @@ config VIDEO_S5P_MIPI_CSIS To compile this driver as a module, choose M here: the module will be called s5p-csis. -if SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250 +if SOC_EXYNOS4212 || SOC_EXYNOS5250 config VIDEO_EXYNOS_FIMC_LITE tristate "EXYNOS FIMC-LITE camera interface driver"drivers/thermal/exynos_thermal.c +1
-1@@ -817,7 +817,7 @@ static struct exynos_tmu_platform_data const exynos4210_default_tmu_data = {#define EXYNOS4210_TMU_DRV_DATA (NULL)#endif -#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4412 ) +#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4212 )static struct exynos_tmu_platform_data const exynos_default_tmu_data = { .threshold_falling =10 , .trigger_levels[0] = 85,drivers/tty/serial/samsung.c +1
-2@@ -1714,8 +1714,7 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = {#endif #if defined(CONFIG_CPU_EXYNOS4210) || defined(CONFIG_SOC_EXYNOS4212) || \ - defined(CONFIG_SOC_EXYNOS4412) || defined(CONFIG_SOC_EXYNOS5250) || \ - defined(CONFIG_SOC_EXYNOS5440) + defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS5440) static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = { .info = &(struct s3c24xx_uart_info) { .name = "Samsung Exynos4 UART",
Signature · 3 lines
You have got to be excited about what you are doing. (L. Lamport) Eduardo Valentin
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 27/28] ARM: EXYNOS: Remove CONFIG_SOC_EXYNOS4412
Quoted 33 lines · On Saturday 15 of June 2013 10:06:25 Eduardo Valentin wrote:
Tomasz,
Quoted 22 lines · Tomasz Figa
Exynos4212 and Exynos4412 SoCs differ only in number of ARM cores and there is no need to have separate
Kconfigoptions for them, since they use the same code.This patch removes
CONFIG_SOC_EXYNOS4412, leavingCONFIG_SOC_EXYNOS4212
as the one supporting both SoCs from this series.Cc "Rafael J. Wysocki" <[email protected]>Cc Viresh Kumar <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Zhang Rui <[email protected]>Cc Eduardo Valentin <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Tomasz Figa <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
Quoted 7 lines
arch/arm/mach-exynos/Kconfig | 11 +---------- arch/arm/plat-samsung/include/plat/cpu.h | 6 +----- drivers/cpufreq/Kconfig.arm | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +-- 6 files changed, 6 insertions(+), 20 deletions(-)
Quoted 6 lines
Not for the matter of the change itself, but just for simplicity while merging when the change is agreed to be good, it is recommended that you split your changes in different smaller patches, specially because you are touching several parts of the kernel that belong to different trees. If one merges your change the way it is, it is likely to create merge conflicts.
Right. Let me split this patch.
Best regards,
Tomasz
Quoted 122 lines
Quoted 122 lines
(quoted diff) +0
-0b/arch/arm/mach-exynos/Kconfig index 47d8d9e..fe75a65 100644
arch/arm/mach-exynos/Kconfig +1
-1@@ -46,7 +46,7 @@ config CPU_EXYNOS4210 Enable EXYNOS4210 CPU support config SOC_EXYNOS4212 - bool "SAMSUNG EXYNOS4212" + bool "SAMSUNG EXYNOS4212/4412"arch/arm/mach-exynos/Kconfig +0
-9default y depends on ARCH_EXYNOS4 select PINCTRL_EXYNOS@@ -56,15 +56,6 @@ config SOC_EXYNOS4212 help Enable EXYNOS4212 SoC support -config SOC_EXYNOS4412 - bool "SAMSUNG EXYNOS4412" - default y - depends on ARCH_EXYNOS4 - select PINCTRL_EXYNOS - select SAMSUNG_DMADEV - help - Enable EXYNOS4412 SoC support -config
SOC_EXYNOS5250arch/arm/mach-exynos/Kconfig +0
-0bool "SAMSUNG EXYNOS5250" default y(quoted diff) +0
-0
b/arch/arm/plat-samsung/include/plat/cpu.hindex 989fefe..87b03bb 100644arch/arm/plat-samsung/include/plat/cpu.h +0
-0@@ -122,13 +122,9 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID,
EXYNOS5_SOC_MASK)>
#ifdefined(CONFIG_SOC_EXYNOS4212)# define soc_is_exynos4212() is_samsung_exynos4212()arch/arm/plat-samsung/include/plat/cpu.h +1
-5-#else -# define soc_is_exynos4212 () 0 -#endif - -#if defined(CONFIG_SOC_EXYNOS4412 )# define soc_is_exynos4412 () is_samsung_exynos4412()#else +# define soc_is_exynos4212 () 0# define soc_is_exynos4412 () 0#endif drivers/cpufreq/Kconfig.arm +1
-1@@ -32,7 +32,7 @@ config ARM_EXYNOS4210_CPUFREQ SoC (S5PV310 or S5PC210). config ARM_EXYNOS4X12_CPUFREQ - def_bool (SOC_EXYNOS4212 || SOC_EXYNOS4412) + def_bool SOC_EXYNOS4212drivers/cpufreq/Kconfig.arm +0
-0help This adds the CPUFreq driver for Samsung EXYNOS4X12 SoC (EXYNOS4212 or EXYNOS4412).(quoted diff) +0
-0b/drivers/media/platform/exynos4-is/Kconfig index 6ff99b5..f483e11 100644
drivers/media/platform/exynos4-is/Kconfig +1
-1@@ -32,7 +32,7 @@ config VIDEO_S5P_MIPI_CSIS To compile this driver as a module, choose M here: the module will be called s5p-csis. -if SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250 +if SOC_EXYNOS4212 || SOC_EXYNOS5250 config VIDEO_EXYNOS_FIMC_LITEdrivers/media/platform/exynos4-is/Kconfig +0
-0tristate "EXYNOS FIMC-LITE camera interface driver"(quoted diff) +0
-0
b/drivers/thermal/exynos_thermal.cindex 788b1dd..f88a2ad 100644drivers/thermal/exynos_thermal.c +0
-0@@ -817,7 +817,7 @@ static struct exynos_tmu_platform_data const
exynos4210_default_tmu_data= {>
#defineEXYNOS4210_TMU_DRV_DATA(NULL)
#endifdrivers/thermal/exynos_thermal.c +1
-1-#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4412 ) +#if defined(CONFIG_SOC_EXYNOS5250 ) || defined(CONFIG_SOC_EXYNOS4212 )static struct exynos_tmu_platform_data const exynos_default_tmu_data = {> .threshold_falling =10 , .trigger_levels[0] = 85,(quoted diff) +0
-0
b/drivers/tty/serial/samsung.cindex 0c8a9fa..eeb8ecb 100644drivers/tty/serial/samsung.c +0
-0@@ -1714,8 +1714,7 @@ static struct s3c24xx_serial_drv_data
s5pv210_serial_drv_data= {>
#endif
Quoted 3 lines
drivers/tty/serial/samsung.c
Quoted 3 lines
#if
defined(CONFIG_CPU_EXYNOS4210)||defined(CONFIG_SOC_EXYNOS4212)|| \>drivers/tty/serial/samsung.c +0
-1-defined (CONFIG_SOC_EXYNOS4412 ) ||defined (CONFIG_SOC_EXYNOS5250 )
||
Quoted 9 lines
Quoted 9 lines
\
drivers/tty/serial/samsung.c +1
-1-defined (CONFIG_SOC_EXYNOS5440) + defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS5440)static struct s3c24xx_serial_drv_data exynos4210_serial_drv_data = { .info = &(struct s3c24xx_uart_info ) { .name ="Samsung Exynos4 UART" ,
PATCH 28/28 ARM: EXYNOS: Remove mach/regs-usb-phy.h header
In reply to Tomasz FigaThis patch removes mach/regs-usb-phy.h header, which is not used anywhere in the kernel.
--- arch/arm/mach-exynos/include/mach/regs-usb-phy.h | 74 ------------------------ 1 file changed, 74 deletions(-) delete mode 100644 arch/arm/mach-exynos/include/mach/regs-usb-phy.h
arch/arm/mach-exynos/include/mach/regs-usb-phy.h deleted +0 -74
@@ -1,74 +0,0 @@ -/* -* Copyright (C) 2011 Samsung Electronics Co.Ltd -* Author: Joonyoung Shim <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -*/ - -#ifndef __PLAT_S5P_REGS_USB_PHY_H -#define __PLAT_S5P_REGS_USB_PHY_H - -#define EXYNOS4_HSOTG_PHYREG (x) ((x) + S3C_VA_USB_HSPHY) - -#define EXYNOS4_PHYPWR EXYNOS4_HSOTG_PHYREG(0x00) -#define PHY1_HSIC_NORMAL_MASK (0xf << 9) -#define PHY1_HSIC1_SLEEP (1 << 12) -#define PHY1_HSIC1_FORCE_SUSPEND (1 << 11) -#define PHY1_HSIC0_SLEEP (1 << 10) -#define PHY1_HSIC0_FORCE_SUSPEND (1 << 9) - -#define PHY1_STD_NORMAL_MASK (0x7 << 6) -#define PHY1_STD_SLEEP (1 << 8) -#define PHY1_STD_ANALOG_POWERDOWN (1 << 7) -#define PHY1_STD_FORCE_SUSPEND (1 << 6) - -#define PHY0_NORMAL_MASK (0x39 << 0) -#define PHY0_SLEEP (1 << 5) -#define PHY0_OTG_DISABLE (1 << 4) -#define PHY0_ANALOG_POWERDOWN (1 << 3) -#define PHY0_FORCE_SUSPEND (1 << 0) - -#define EXYNOS4_PHYCLK EXYNOS4_HSOTG_PHYREG(0x04) -#define PHY1_COMMON_ON_N (1 << 7) -#define PHY0_COMMON_ON_N (1 << 4) -#define PHY0_ID_PULLUP (1 << 2) - -#define EXYNOS4_CLKSEL_SHIFT (0) - -#define EXYNOS4210_CLKSEL_MASK (0x3 << 0) -#define EXYNOS4210_CLKSEL_48M (0x0 << 0) -#define EXYNOS4210_CLKSEL_12M (0x2 << 0) -#define EXYNOS4210_CLKSEL_24M (0x3 << 0) - -#define EXYNOS4X12_CLKSEL_MASK (0x7 << 0) -#define EXYNOS4X12_CLKSEL_9600K (0x0 << 0) -#define EXYNOS4X12_CLKSEL_10M (0x1 << 0) -#define EXYNOS4X12_CLKSEL_12M (0x2 << 0) -#define EXYNOS4X12_CLKSEL_19200K (0x3 << 0) -#define EXYNOS4X12_CLKSEL_20M (0x4 << 0) -#define EXYNOS4X12_CLKSEL_24M (0x5 << 0) - -#define EXYNOS4_RSTCON EXYNOS4_HSOTG_PHYREG(0x08) -#define HOST_LINK_PORT_SWRST_MASK (0xf << 6) -#define HOST_LINK_PORT2_SWRST (1 << 9) -#define HOST_LINK_PORT1_SWRST (1 << 8) -#define HOST_LINK_PORT0_SWRST (1 << 7) -#define HOST_LINK_ALL_SWRST (1 << 6) - -#define PHY1_SWRST_MASK (0x7 << 3) -#define PHY1_HSIC_SWRST (1 << 5) -#define PHY1_STD_SWRST (1 << 4) -#define PHY1_ALL_SWRST (1 << 3) - -#define PHY0_SWRST_MASK (0x7 << 0) -#define PHY0_PHYLINK_SWRST (1 << 2) -#define PHY0_HLINK_SWRST (1 << 1) -#define PHY0_SWRST (1 << 0) - -#define EXYNOS4_PHY1CON EXYNOS4_HSOTG_PHYREG(0x34) -#define FPENABLEN (1 << 0) - -#endif /* __PLAT_S5P_REGS_USB_PHY_H */
Signature · 1 line
1.8.2.1
cover Twenty eight patches big Exynos cleanup
In reply to Tomasz FigaQuoted 8 lines · On Friday 14 June 2013 21:32:36 Tomasz Figa wrote:
As I promised, I am doing some spring (or rather summer) cleaning of Exynos- and Samsung- related code.
This first part consists mostly of removing dead code remaining after removal of ATAGS support for Exynos, but several patches cleans up other things found by the way.
Quoted 7 lines
See particular patches for more detailed description.
On Exynos4210-based Trats board:
Tested-by Tomasz Figa <[email protected]>Build tested every patch with
s3c6400_defconfig,s5pv210_defconfigandexynos_defconfig.
Great stuff. I unfortunately did almost the exact same patch since I did not know you were on it too. Yours looks better in some details, and your patch descriptions are /much/ better than my single large patch.
I'll try to cross-check the two series to see if there is anything you missed that was in my patch set.
cover Twenty eight patches big Exynos cleanup
Hi Arnd,
Quoted 10 lines · On Friday 14 of June 2013 23:26:04 Arnd Bergmann wrote:
Quoted 9 lines · On Friday 14 June 2013 21:32:36 Tomasz Figa wrote:
As I promised, I am doing some spring (or rather summer) cleaning of Exynos- and Samsung- related code.
This first part consists mostly of removing dead code remaining after removal of ATAGS support for Exynos, but several patches cleans up other things found by the way.
See particular patches for more detailed description.
Quoted 8 lines
Quoted 5 lines
On Exynos4210-based Trats board:
Tested-by Tomasz Figa <[email protected]>Build tested every patch with
s3c6400_defconfig,s5pv210_defconfigandexynos_defconfig.Great stuff. I unfortunately did almost the exact same patch since I did not know you were on it too.
Hmm, I didn't see it. Looks like we need some task synchronization. :)
Quoted 8 lines
Yours looks better in some details,
and your patch descriptions are /much/ better than my single large patch.I'll try to cross-check the two series to see if there is anything you missed that was in my patch set.
Acked-by Arnd Bergmann <[email protected]>
OK, thank you.
I will continue my spring (summer) cleaning session on Monday, probably focusing on init and PM code, but who knows what else can be found in this code. ;)
Best regards,
Tomasz
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
cover Twenty eight patches big Exynos cleanup
In reply to Arnd BergmannQuoted 23 lines · Arnd Bergmann
Quoted 8 lines · On Friday 14 June 2013 21:32:36 Tomasz Figa wrote:
As I promised, I am doing some spring (or rather summer) cleaning of Exynos- and Samsung- related code.
This first part consists mostly of removing dead code remaining after removal of ATAGS support for Exynos, but several patches cleans up other things found by the way.
Quoted 7 lines
See particular patches for more detailed description.
On Exynos4210-based Trats board:
Tested-by Tomasz Figa <[email protected]>Build tested every patch with
s3c6400_defconfig,s5pv210_defconfigandexynos_defconfig.Great stuff. I unfortunately did almost the exact same patch since I did not know you were on it too. Yours looks better in some details, and your patch descriptions are /much/ better than my single large patch.
Quoted 4 lines
I'll try to cross-check the two series to see if there is anything you missed that was in my patch set.
Acked-by Arnd Bergmann <[email protected]>
OK, let me take Tomasz's patches with your ack.
Thanks,
- Kukjin
cover Twenty eight patches big Exynos cleanup
In reply to Tomasz Figafwiw, I compared the patches now, and got to this diff. You had more things that I missed, these are the ones I found that you didn't have.
Feel free to integrate them into your series, with or without my signed-off-by, as they are all trivial and they still need to be split up and described.
arch/arm/mach-exynos/Kconfig +0 -17
@@ -110,23 +110,6 @@ config MACH_EXYNOS5_DT Machine support for Samsung EXYNOS5 machine with device tree enabled. Select this if a fdt blob is available for the EXYNOS5 SoC based board. -if ARCH_EXYNOS4 - -comment "Configuration for HSMMC 8-bit bus width" - -config EXYNOS4_SDHCI_CH0_8BIT - bool "Channel 0 with 8-bit bus" - help - Support HSMMC Channel 0 8-bit bus. - If selected, Channel 1 is disabled. - -config EXYNOS4_SDHCI_CH2_8BIT - bool "Channel 2 with 8-bit bus" - help - Support HSMMC Channel 2 8-bit bus. - If selected, Channel 3 is disabled. -endif - endmenu endif
arch/arm/mach-exynos/common.c +4 -52
100 lines not on this page · raw message
arch/arm/mach-exynos/common.h +2 -3
@@ -19,9 +19,8 @@ void exynos_init_time(void);extern unsigned long xxti_f, xusbxti_f;struct map_desc ; -void exynos_init_io (struct map_desc *mach_desc,int size); -void exynos4_init_irq (void ); -void exynos5_init_irq (void ); +void exynos_init_io (void ); +void exynos_init_irq (void );void exynos4_restart (char mode,const char *cmd);void exynos5_restart (char mode,const char *cmd);void exynos_init_late (void );
arch/arm/mach-exynos/include/mach/map.h +4 -0
@@ -23,6 +23,10 @@#include <plat/map-s5p.h> +/* +* FIXME: go through the list and remove from iotable +* all that are not essential +*/ #define EXYNOS4_PA_SYSRAM0 0x02025000#define EXYNOS4_PA_SYSRAM1 0x02020000#define EXYNOS5_PA_SYSRAM 0x02020000
arch/arm/mach-exynos/include/mach/pm-core.h +1 -4
@@ -34,10 +34,7 @@ static inline void s3c_pm_debug_init_uart(void)static inline void s3c_pm_arch_prepare_irqs (void ) { -u32 eintmask = s3c_irqwake_eintmask; - -if (of_have_populated_dt ()) - eintmask =exynos_get_eint_wake_mask (); +u32 eintmask =exynos_get_eint_wake_mask ();__raw_writel (eintmask,S5P_EINT_WAKEUP_MASK );__raw_writel (s3c_irqwake_intmask & ~(1 <<31 ),S5P_WAKEUP_MASK );
arch/arm/mach-exynos/mach-exynos4-dt.c +2 -11
@@ -23,15 +23,7 @@#include "common.h" -static void __init exynos4_dt_map_io (void ) -{ -exynos_init_io (NULL ,0 ); -} -static void __init exynos4_dt_machine_init (void ) -{ -of_platform_populate (NULL , of_default_bus_match_table,NULL ,NULL ); -}static char const *exynos4_dt_compat[]__initdata = {"samsung,exynos4210" ,
@@ -55,10 +47,9 @@ static void __init exynos4_reserve(void)DT_MACHINE_START (EXYNOS4210_DT ,"Samsung Exynos4 (Flattened Device Tree)" )/* Maintainer: Thomas Abraham <[email protected]> */ .smp = smp_ops(exynos_smp_ops), - .init_irq = exynos4_init_irq, - .map_io = exynos4_dt_map_io, + .init_irq = exynos_init_irq, + .map_io = exynos_init_io, .init_early = exynos_firmware_init, - .init_machine = exynos4_dt_machine_init, .init_late = exynos_init_late, .init_time = exynos_init_time, .dt_compat = exynos4_dt_compat,
arch/arm/mach-exynos/mach-exynos5-dt.c +2 -7
@@ -27,11 +27,6 @@static u64 dma_mask64 =DMA_BIT_MASK (64 );static u64 dma_mask32 =DMA_BIT_MASK (32 ); -static void __init exynos5_dt_map_io (void ) -{ -exynos_init_io (NULL ,0 ); -} -static int exynos5440_platform_notifier (struct notifier_block *nb,unsigned long event,void *__dev) {
@@ -104,9 +99,9 @@ static void __init exynos5_reserve(void)DT_MACHINE_START (EXYNOS5_DT ,"SAMSUNG EXYNOS5 (Flattened Device Tree)" )/* Maintainer: Kukjin Kim <[email protected]> */ - .init_irq = exynos5_init_irq, .smp = smp_ops(exynos_smp_ops), - .map_io = exynos5_dt_map_io, + .init_irq = exynos_init_irq, + .map_io = exynos_init_io, .init_machine = exynos5_dt_machine_init, .init_late = exynos_init_late, .init_time = exynos_init_time,
cover Twenty eight patches big Exynos cleanup
In reply to Tomasz FigaQuoted 49 lines · Tomasz Figa
Hi All,
As I promised, I am doing some spring (or rather summer) cleaning of Exynos- and Samsung- related code.
This first part consists mostly of removing dead code remaining after removal of ATAGS support for Exynos, but several patches cleans up other things found by the way.
See particular patches for more detailed description.
On Exynos4210-based Trats board:
Tested-by Tomasz Figa <[email protected]>Build tested every patch with
s3c6400_defconfig,s5pv210_defconfigandexynos_defconfig.Tomasz Figa (28):
ARM: EXYNOS: Remove unused board files
ARM: EXYNOS: MakeARCH_EXYNOSselectUSE_OF
ARM: SAMSUNG: IntroduceSAMSUNG_ATAGSKconfigentry
ARM: EXYNOS: common: Remove legacy PMU initialization code
ARM: EXYNOS: common: Remove legacy EINT initialization code
ARM: EXYNOS: common: Remove legacy UART initialization code
ARM: EXYNOS: Remove legacy dev- and setup- files
ARM: EXYNOS: common: Remove legacy interrupt initialization code
ARM: EXYNOS: common: Remove legacy timer initialization code
ARM: EXYNOS: common: Remove platform device initialization
ARM: EXYNOS: common: Remove legacy mapping of chip ID block
ARM: EXYNOS: firmware: Remove check for device tree presence
ARM: EXYNOS:pm_domains: Remove legacy power domain registration code
ARM: SAMSUNG: IntroduceGPIO_SAMSUNGKconfigentry
ARM: EXYNOS: Provide compatibility stubs for PM code inpm-core.h
header
ARM: SAMSUNG: Compile s5p-irq-pm only with ATAGS support
ARM: EXYNOS: DecoupleARCH_EXYNOSfromPLAT_S5P
ARM: SAMSUNG: pm: Include most of mach/ headers conditionally
ARM: EXYNOS: Do not select legacyKconfigsymbols any more
ARM: EXYNOS: Removesetup-i2c0.c
ARM: EXYNOS: Removemach/gpio.h
ARM: EXYNOS: Removemach/regs-gpio.hheader
ARM: SAMSUNG: Make legacy MFC support code depend onSAMSUNG_ATAGS
ARM: EXYNOS: SelectSPARSE_IRQfor Exynos
ARM: EXYNOS: Removemach/irqs.hheader
ARM: EXYNOS: Remove unused base addresses frommach/map.hheader
ARM: EXYNOS: RemoveCONFIG_SOC_EXYNOS4412
ARM: EXYNOS: Removemach/regs-usb-phy.hheader
Quoted 16 lines
arch/arm/Kconfig | 15 +- arch/arm/Makefile | 1 + arch/arm/mach-exynos/Kconfig | 14 +- arch/arm/mach-exynos/Makefile | 6 - arch/arm/mach-exynos/common.c | 472 +------- arch/arm/mach-exynos/dev-audio.c | 254 ---- arch/arm/mach-exynos/dev-uart.c | 55 - arch/arm/mach-exynos/firmware.c | 22 +- arch/arm/mach-exynos/include/mach/gpio.h | 289 ----- arch/arm/mach-exynos/include/mach/irqs.h | 476 -------- arch/arm/mach-exynos/include/mach/map.h | 214 ---- arch/arm/mach-exynos/include/mach/pm-core.h | 5 + arch/arm/mach-exynos/include/mach/regs-gpio.h | 40 - arch/arm/mach-exynos/include/mach/regs-usb-phy.h | 74 -- arch/arm/mach-exynos/mach-armlex4210.c | 207 ---- arch/arm/mach-exynos/mach-nuri.c | 1388
---------------------
Quoted 5 lines
-
arch/arm/mach-exynos/mach-origen.c | 823 ------------- arch/arm/mach-exynos/mach-smdk4x12.c | 396 ------ arch/arm/mach-exynos/mach-smdkv310.c | 444 ------- arch/arm/mach-exynos/mach-universal_c210.c | 1159
------------------
Quoted 58 lines
arch/arm/mach-exynos/pm.c | 1 - arch/arm/mach-exynos/pm_domains.c | 94 +- arch/arm/mach-exynos/setup-fimc.c | 44 - arch/arm/mach-exynos/setup-fimd0.c | 43 - arch/arm/mach-exynos/setup-i2c0.c | 29 - arch/arm/mach-exynos/setup-i2c1.c | 23 - arch/arm/mach-exynos/setup-i2c2.c | 23 - arch/arm/mach-exynos/setup-i2c3.c | 23 - arch/arm/mach-exynos/setup-i2c4.c | 23 - arch/arm/mach-exynos/setup-i2c5.c | 23 - arch/arm/mach-exynos/setup-i2c6.c | 23 - arch/arm/mach-exynos/setup-i2c7.c | 23 - arch/arm/mach-exynos/setup-keypad.c | 36 - arch/arm/mach-exynos/setup-sdhci-gpio.c | 152 --- arch/arm/mach-exynos/setup-spi.c | 45 - arch/arm/mach-exynos/setup-usb-phy.c | 223 ---- arch/arm/plat-samsung/Kconfig | 40 +- arch/arm/plat-samsung/Makefile | 11 +- arch/arm/plat-samsung/include/plat/cpu.h | 6 +- arch/arm/plat-samsung/include/plat/pm.h | 5 + arch/arm/plat-samsung/init.c | 8 +- arch/arm/plat-samsung/pm-gpio.c | 5 +- arch/arm/plat-samsung/pm.c | 8 +- arch/arm/plat-samsung/s5p-dev-mfc.c | 11 +- drivers/cpufreq/Kconfig.arm | 2 +- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +- 50 files changed, 115 insertions(+), 7179 deletions(-) delete mode 100644 arch/arm/mach-exynos/dev-audio.c delete mode 100644 arch/arm/mach-exynos/dev-uart.c delete mode 100644 arch/arm/mach-exynos/include/mach/gpio.h delete mode 100644 arch/arm/mach-exynos/include/mach/irqs.h delete mode 100644 arch/arm/mach-exynos/include/mach/regs-gpio.h delete mode 100644 arch/arm/mach-exynos/include/mach/regs-usb-phy.h delete mode 100644 arch/arm/mach-exynos/mach-armlex4210.c delete mode 100644 arch/arm/mach-exynos/mach-nuri.c delete mode 100644 arch/arm/mach-exynos/mach-origen.c delete mode 100644 arch/arm/mach-exynos/mach-smdk4x12.c delete mode 100644 arch/arm/mach-exynos/mach-smdkv310.c delete mode 100644 arch/arm/mach-exynos/mach-universal_c210.c delete mode 100644 arch/arm/mach-exynos/setup-fimc.c delete mode 100644 arch/arm/mach-exynos/setup-fimd0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c1.c delete mode 100644 arch/arm/mach-exynos/setup-i2c2.c delete mode 100644 arch/arm/mach-exynos/setup-i2c3.c delete mode 100644 arch/arm/mach-exynos/setup-i2c4.c delete mode 100644 arch/arm/mach-exynos/setup-i2c5.c delete mode 100644 arch/arm/mach-exynos/setup-i2c6.c delete mode 100644 arch/arm/mach-exynos/setup-i2c7.c delete mode 100644 arch/arm/mach-exynos/setup-keypad.c delete mode 100644 arch/arm/mach-exynos/setup-sdhci-gpio.c delete mode 100644 arch/arm/mach-exynos/setup-spi.c delete mode 100644 arch/arm/mach-exynos/setup-usb-phy.c
Quoted 2 lines
--
1.8.2.1
Basically, looks good. I'm looking at this series then let me take.
BTW, just note, happens build error with s5pc100_defconfig....
arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_1bit_save':arch/arm/plat-samsung/pm-gpio.c:33:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:34:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_1bit_resume':arch/arm/plat-samsung/pm-gpio.c:42:22: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:43:22: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:63:24: error: expected identifier or '(' before 'void'arch/arm/plat-samsung/pm-gpio.c:63:24: error: expected ')' before numeric constantarch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_2bit_save':arch/arm/plat-samsung/pm-gpio.c:70:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:71:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:72:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_2bit_resume':arch/arm/plat-samsung/pm-gpio.c:129:22: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:130:22: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:136:19: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:190:24: error: expected identifier or '(' before 'void'arch/arm/plat-samsung/pm-gpio.c:190:24: error: expected ')' before numeric constantarch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_4bit_save':arch/arm/plat-samsung/pm-gpio.c:199:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:200:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:201:6: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:204:7: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_4bit_con':arch/arm/plat-samsung/pm-gpio.c:250:22: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_4bit_resume':arch/arm/plat-samsung/pm-gpio.c:266:22: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:281:19: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:282:19: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:284:20: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:286:19: error: 'struct samsung_gpio_chip' has no member named 'pm_save' arch/arm/plat-samsung/pm-gpio.c:287:19: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:302:24: error: expected identifier or '(' before 'void'arch/arm/plat-samsung/pm-gpio.c:302:24: error: expected ')' before numeric constantarch/arm/plat-samsung/pm-gpio.c: In function 'samsung_pm_save_gpios':arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'struct samsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:31:13: warning: 'samsung_gpio_pm_1bit_save' defined but not used [-Wunused-function] arch/arm/plat-samsung/pm-gpio.c:37:13: warning:
'samsung_gpio_pm_1bit_resume' defined but not used [-Wunused-function] arch/arm/plat-samsung/pm-gpio.c:68:13: warning: 'samsung_gpio_pm_2bit_save' defined but not used [-Wunused-function] arch/arm/plat-samsung/pm-gpio.c:124:13: warning:
'samsung_gpio_pm_2bit_resume' defined but not used [-Wunused-function] arch/arm/plat-samsung/pm-gpio.c:197:13: warning: 'samsung_gpio_pm_4bit_save' defined but not used [-Wunused-function] arch/arm/plat-samsung/pm-gpio.c:261:13: warning:
'samsung_gpio_pm_4bit_resume' defined but not used [-Wunused-function] make[2]: *** [arch/arm/plat-samsung/pm-gpio.o] Error 1
make[2]: *** Waiting for unfinished jobs....
- Kukjin
cover Twenty eight patches big Exynos cleanup
Quoted 138 lines · On Saturday 15 of June 2013 11:30:52 Kukjin Kim wrote:
Quoted 51 lines · Tomasz Figa
Hi All,
As I promised, I am doing some spring (or rather summer) cleaning of Exynos- and Samsung- related code.
This first part consists mostly of removing dead code remaining after removal of ATAGS support for Exynos, but several patches cleans up other things found by the way.
See particular patches for more detailed description.
On Exynos4210-based Trats board:
Tested-by Tomasz Figa <[email protected]>Build tested every patch with
s3c6400_defconfig,s5pv210_defconfigandexynos_defconfig.Tomasz Figa (28):
ARM: EXYNOS: Remove unused board files
ARM: EXYNOS: MakeARCH_EXYNOSselectUSE_OF
ARM: SAMSUNG: IntroduceSAMSUNG_ATAGSKconfigentry
ARM: EXYNOS: common: Remove legacy PMU initialization code
ARM: EXYNOS: common: Remove legacy EINT initialization code
ARM: EXYNOS: common: Remove legacy UART initialization code
ARM: EXYNOS: Remove legacy dev- and setup- files
ARM: EXYNOS: common: Remove legacy interrupt initialization code
ARM: EXYNOS: common: Remove legacy timer initialization code
ARM: EXYNOS: common: Remove platform device initialization
ARM: EXYNOS: common: Remove legacy mapping of chip ID block
ARM: EXYNOS: firmware: Remove check for device tree presence
ARM: EXYNOS:pm_domains: Remove legacy power domain registration code
ARM: SAMSUNG: IntroduceGPIO_SAMSUNGKconfigentry
ARM: EXYNOS: Provide compatibility stubs for PM code inpm-core.hheader
ARM: SAMSUNG: Compile s5p-irq-pm only with ATAGS support
ARM: EXYNOS: DecoupleARCH_EXYNOSfromPLAT_S5P
ARM: SAMSUNG: pm: Include most of mach/ headers conditionally
ARM: EXYNOS: Do not select legacyKconfigsymbols any more
ARM: EXYNOS: Removesetup-i2c0.c
ARM: EXYNOS: Removemach/gpio.h
ARM: EXYNOS: Removemach/regs-gpio.hheader
ARM: SAMSUNG: Make legacy MFC support code depend onSAMSUNG_ATAGS
ARM: EXYNOS: SelectSPARSE_IRQfor Exynos
ARM: EXYNOS: Removemach/irqs.hheader
ARM: EXYNOS: Remove unused base addresses frommach/map.hheader
ARM: EXYNOS: RemoveCONFIG_SOC_EXYNOS4412
ARM: EXYNOS: Removemach/regs-usb-phy.hheaderQuoted 16 lines
arch/arm/Kconfig | 15 +- arch/arm/Makefile | 1 + arch/arm/mach-exynos/Kconfig | 14 +- arch/arm/mach-exynos/Makefile | 6 - arch/arm/mach-exynos/common.c | 472 +------- arch/arm/mach-exynos/dev-audio.c | 254 ---- arch/arm/mach-exynos/dev-uart.c | 55 - arch/arm/mach-exynos/firmware.c | 22 +- arch/arm/mach-exynos/include/mach/gpio.h | 289 ----- arch/arm/mach-exynos/include/mach/irqs.h | 476 -------- arch/arm/mach-exynos/include/mach/map.h | 214 ---- arch/arm/mach-exynos/include/mach/pm-core.h | 5 + arch/arm/mach-exynos/include/mach/regs-gpio.h | 40 - arch/arm/mach-exynos/include/mach/regs-usb-phy.h | 74 -- arch/arm/mach-exynos/mach-armlex4210.c | 207 ---- arch/arm/mach-exynos/mach-nuri.c | 1388---------------------
Quoted 6 lines
-
arch/arm/mach-exynos/mach-origen.c | 823 ------------- arch/arm/mach-exynos/mach-smdk4x12.c | 396 ------ arch/arm/mach-exynos/mach-smdkv310.c | 444 ------- arch/arm/mach-exynos/mach-universal_c210.c | 1159------------------
Quoted 58 lines
arch/arm/mach-exynos/pm.c | 1 - arch/arm/mach-exynos/pm_domains.c | 94 +- arch/arm/mach-exynos/setup-fimc.c | 44 - arch/arm/mach-exynos/setup-fimd0.c | 43 - arch/arm/mach-exynos/setup-i2c0.c | 29 - arch/arm/mach-exynos/setup-i2c1.c | 23 - arch/arm/mach-exynos/setup-i2c2.c | 23 - arch/arm/mach-exynos/setup-i2c3.c | 23 - arch/arm/mach-exynos/setup-i2c4.c | 23 - arch/arm/mach-exynos/setup-i2c5.c | 23 - arch/arm/mach-exynos/setup-i2c6.c | 23 - arch/arm/mach-exynos/setup-i2c7.c | 23 - arch/arm/mach-exynos/setup-keypad.c | 36 - arch/arm/mach-exynos/setup-sdhci-gpio.c | 152 --- arch/arm/mach-exynos/setup-spi.c | 45 - arch/arm/mach-exynos/setup-usb-phy.c | 223 ---- arch/arm/plat-samsung/Kconfig | 40 +- arch/arm/plat-samsung/Makefile | 11 +- arch/arm/plat-samsung/include/plat/cpu.h | 6 +- arch/arm/plat-samsung/include/plat/pm.h | 5 + arch/arm/plat-samsung/init.c | 8 +- arch/arm/plat-samsung/pm-gpio.c | 5 +- arch/arm/plat-samsung/pm.c | 8 +- arch/arm/plat-samsung/s5p-dev-mfc.c | 11 +- drivers/cpufreq/Kconfig.arm | 2 +- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 2 +- drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/thermal/exynos_thermal.c | 2 +- drivers/tty/serial/samsung.c | 3 +- 50 files changed, 115 insertions(+), 7179 deletions(-) delete mode 100644 arch/arm/mach-exynos/dev-audio.c delete mode 100644 arch/arm/mach-exynos/dev-uart.c delete mode 100644 arch/arm/mach-exynos/include/mach/gpio.h delete mode 100644 arch/arm/mach-exynos/include/mach/irqs.h delete mode 100644 arch/arm/mach-exynos/include/mach/regs-gpio.h delete mode 100644 arch/arm/mach-exynos/include/mach/regs-usb-phy.h delete mode 100644 arch/arm/mach-exynos/mach-armlex4210.c delete mode 100644 arch/arm/mach-exynos/mach-nuri.c delete mode 100644 arch/arm/mach-exynos/mach-origen.c delete mode 100644 arch/arm/mach-exynos/mach-smdk4x12.c delete mode 100644 arch/arm/mach-exynos/mach-smdkv310.c delete mode 100644 arch/arm/mach-exynos/mach-universal_c210.c delete mode 100644 arch/arm/mach-exynos/setup-fimc.c delete mode 100644 arch/arm/mach-exynos/setup-fimd0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c0.c delete mode 100644 arch/arm/mach-exynos/setup-i2c1.c delete mode 100644 arch/arm/mach-exynos/setup-i2c2.c delete mode 100644 arch/arm/mach-exynos/setup-i2c3.c delete mode 100644 arch/arm/mach-exynos/setup-i2c4.c delete mode 100644 arch/arm/mach-exynos/setup-i2c5.c delete mode 100644 arch/arm/mach-exynos/setup-i2c6.c delete mode 100644 arch/arm/mach-exynos/setup-i2c7.c delete mode 100644 arch/arm/mach-exynos/setup-keypad.c delete mode 100644 arch/arm/mach-exynos/setup-sdhci-gpio.c delete mode 100644 arch/arm/mach-exynos/setup-spi.c delete mode 100644 arch/arm/mach-exynos/setup-usb-phy.c
Quoted 6 lines
Quoted 2 lines
--
1.8.2.1Basically, looks good. I'm looking at this series then let me take.
BTW, just note, happens build error with
s5pc100_defconfig....
Hmm, I think I might know what the problem is.
pm-gpio.c should be compiled only with CONFIG_PM selected, but I made it compile on GPIO_SAMSUNG.
Let me check this and send an updated version of patch 14/28, which introduced this modification.
Best regards,
Tomasz
Quoted 96 lines
arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_1bit_save':arch/arm/plat-samsung/pm-gpio.c:33:6:
error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:34:6: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_1bit_resume':arch/arm/plat-samsung/pm-gpio.c:42:22:
error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:43:22: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:63:24: error: expected identifier or '(' before 'void'arch/arm/plat-samsung/pm-gpio.c:63:24: error: expected ')' before numeric constantarch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_2bit_save':arch/arm/plat-samsung/pm-gpio.c:70:6:
error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:71:6: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:72:6: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_2bit_resume':arch/arm/plat-samsung/pm-gpio.c:129:22:
error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:130:22: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:136:19: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:190:24: error: expected identifier or '(' before 'void'arch/arm/plat-samsung/pm-gpio.c:190:24: error: expected ')' before numeric constantarch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_4bit_save':arch/arm/plat-samsung/pm-gpio.c:199:6:
error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:200:6: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:201:6: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:204:7: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_4bit_con':arch/arm/plat-samsung/pm-gpio.c:250:22: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: In function 'samsung_gpio_pm_4bit_resume':arch/arm/plat-samsung/pm-gpio.c:266:22:
error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:281:19: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:282:19: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:284:20: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:286:19: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:287:19: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:302:24: error: expected identifier or '(' before 'void'arch/arm/plat-samsung/pm-gpio.c:302:24: error: expected ')' before numeric constantarch/arm/plat-samsung/pm-gpio.c: In function 'samsung_pm_save_gpios':arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c:342:3: error: 'structsamsung_gpio_chip' has no member named 'pm_save'arch/arm/plat-samsung/pm-gpio.c: At top level:arch/arm/plat-samsung/pm-gpio.c:31:13: warning:
'samsung_gpio_pm_1bit_save' defined but not used [-Wunused-function]arch/arm/plat-samsung/pm-gpio.c:37:13: warning:
'samsung_gpio_pm_1bit_resume' defined but not used [-Wunused-function]arch/arm/plat-samsung/pm-gpio.c:68:13: warning:
'samsung_gpio_pm_2bit_save' defined but not used [-Wunused-function]arch/arm/plat-samsung/pm-gpio.c:124:13: warning:
'samsung_gpio_pm_2bit_resume' defined but not used [-Wunused-function]arch/arm/plat-samsung/pm-gpio.c:197:13: warning:
'samsung_gpio_pm_4bit_save' defined but not used [-Wunused-function]arch/arm/plat-samsung/pm-gpio.c:261:13: warning:
'samsung_gpio_pm_4bit_resume' defined but not used [-Wunused-function] make[2]: *** [arch/arm/plat-samsung/pm-gpio.o] Error 1 make[2]: *** Waiting for unfinished jobs....- Kukjin
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html