TI816X: Update common omap platform files
Subsystems (11)
PATCH v3 1/4 TI816X: Update common omap platform files
This patch updates the common platform files with TI816X support. Also adds new files for TI816X modules base addresseses and irq definitions.
The approach taken in this patch is to add TI816X as part of OMAP3 variant where the cpu class is considered as OMAP34XX and the type is TI816X. This means, both cpu_is_omap34xx() and cpu_is_ti816x() checks return success on TI816X.
--- arch/arm/plat-omap/include/plat/clkdev_omap.h | 1 + arch/arm/plat-omap/include/plat/clock.h | 1 + arch/arm/plat-omap/include/plat/common.h | 1 + arch/arm/plat-omap/include/plat/cpu.h | 18 ++++ arch/arm/plat-omap/include/plat/hardware.h | 1 + arch/arm/plat-omap/include/plat/irqs-ti816x.h | 131 +++++++++++++++++++++++++ arch/arm/plat-omap/include/plat/irqs.h | 3 + arch/arm/plat-omap/include/plat/serial.h | 5 + arch/arm/plat-omap/include/plat/ti816x.h | 31 ++++++ 9 files changed, 192 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-omap/include/plat/irqs-ti816x.h create mode 100644 arch/arm/plat-omap/include/plat/ti816x.h
arch/arm/plat-omap/include/plat/clkdev_omap.h +1 -0
@@ -38,6 +38,7 @@ struct omap_clk {#define CK_3517 (1 << 9)#define CK_36XX (1 << 10)/* 36xx/37xx-specific clocks */ #define CK_443X (1 << 11) +#define CK_TI816X (1 << 12)#define CK_34XX (CK_3430ES1 | CK_3430ES2PLUS)
arch/arm/plat-omap/include/plat/clock.h +1 -0
@@ -53,6 +53,7 @@ struct clkops {#define RATE_IN_3430ES2PLUS (1 << 3)/* 3430 ES >= 2 rates only */ #define RATE_IN_36XX (1 << 4)#define RATE_IN_4430 (1 << 5) +#define RATE_IN_TI816X (1 << 6)#define RATE_IN_24XX (RATE_IN_242X | RATE_IN_243X)#define RATE_IN_34XX (RATE_IN_3430ES1 | RATE_IN_3430ES2PLUS)
arch/arm/plat-omap/include/plat/common.h +1 -0
@@ -63,6 +63,7 @@ void omap2_set_globals_242x(void);void omap2_set_globals_243x (void );void omap2_set_globals_3xxx (void );void omap2_set_globals_443x (void ); +void omap2_set_globals_ti816x (void );/* These get called from omap2_set_globals_xxxx(), do not call these */ void omap2_set_globals_tap (struct omap_globals *);
arch/arm/plat-omap/include/plat/cpu.h +18 -0
@@ -105,6 +105,12 @@ static inline int is_omap ##subclass (void) \return (GET_OMAP_SUBCLASS == (id)) ?1 :0 ; \ } +#define IS_TI_SUBCLASS (subclass, id) \ +static inline int is_ti ##subclass (void) \ +{ \ + return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \ +} + IS_OMAP_CLASS(7xx, 0x07) IS_OMAP_CLASS(15xx, 0x15) IS_OMAP_CLASS(16xx, 0x16)
@@ -118,6 +124,8 @@ IS_OMAP_SUBCLASS(343x, 0x343) IS_OMAP_SUBCLASS(363x, 0x363) IS_OMAP_SUBCLASS(443x, 0x443) +IS_TI_SUBCLASS(816x, 0x816) +#define cpu_is_omap7xx () 0#define cpu_is_omap15xx () 0#define cpu_is_omap16xx () 0
@@ -275,6 +283,7 @@ IS_OMAP_TYPE(3517, 0x3517)#define cpu_is_omap3430 () 0#define cpu_is_omap4430 () 0#define cpu_is_omap3630 () 0 +#define cpu_is_ti816x () 0/* * Whether we have MULTI_OMAP1 or not, we still need to distinguish
@@ -330,6 +339,7 @@ IS_OMAP_TYPE(3517, 0x3517)# undef cpu_is_omap3530# undef cpu_is_omap3505# undef cpu_is_omap3517 +# undef cpu_is_ti816x# define cpu_is_omap3430 () is_omap3430()# define cpu_is_omap3503 () (cpu_is_omap3430() && \ (!omap3_has_iva()) && \
@@ -343,6 +353,7 @@ IS_OMAP_TYPE(3517, 0x3517)# define cpu_is_omap3530 () (cpu_is_omap3430())# define cpu_is_omap3505 () is_omap3505()# define cpu_is_omap3517 () is_omap3517() +# define cpu_is_ti816x () is_ti816x()# undef cpu_is_omap3630# define cpu_is_omap3630 () is_omap363x()#endif
@@ -389,6 +400,10 @@ IS_OMAP_TYPE(3517, 0x3517)#define OMAP3505_REV (v) (OMAP35XX_CLASS | (0x3505 << 16) | (v << 8))#define OMAP3517_REV (v) (OMAP35XX_CLASS | (0x3517 << 16) | (v << 8)) +#define TI816X_CLASS 0x81600034 +#define TI8168_REV_ES1_0 TI816X_CLASS +#define TI8168_REV_ES1_1 (TI816X_CLASS | (OMAP_REVBITS_01 << 8)) +#define OMAP443X_CLASS 0x44300044#define OMAP4430_REV_ES1_0 OMAP443X_CLASS#define OMAP4430_REV_ES2_0 0x44301044
@@ -419,6 +434,7 @@ IS_OMAP_TYPE(3517, 0x3517)#define CHIP_IS_OMAP3630ES1_1 (1 << 9)#define CHIP_IS_OMAP3630ES1_2 (1 << 10)#define CHIP_IS_OMAP4430ES2 (1 << 11) +#define CHIP_IS_TI816X (1 << 12)#define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430)
@@ -455,6 +471,7 @@ extern u32 omap3_features;#define OMAP3_HAS_ISP BIT(4)#define OMAP3_HAS_192MHZ_CLK BIT(5)#define OMAP3_HAS_IO_WAKEUP BIT(6) +#define OMAP3_HAS_SDRC BIT(7)#define OMAP3_HAS_FEATURE (feat,flag) \ static inline unsigned int omap3_has_ ##feat(void) \
@@ -469,5 +486,6 @@ OMAP3_HAS_FEATURE(neon, NEON) OMAP3_HAS_FEATURE(isp, ISP) OMAP3_HAS_FEATURE(192mhz_clk, 192MHZ_CLK) OMAP3_HAS_FEATURE(io_wakeup, IO_WAKEUP) +OMAP3_HAS_FEATURE(sdrc, SDRC)#endif
arch/arm/plat-omap/include/plat/hardware.h +1 -0
@@ -286,5 +286,6 @@#include <plat/omap24xx.h> #include <plat/omap34xx.h> #include <plat/omap44xx.h> +#include <plat/ti816x.h> #endif /* __ASM_ARCH_OMAP_HARDWARE_H */
arch/arm/plat-omap/include/plat/irqs-ti816x.h new file +131 -0
131 lines not on this page · raw message
arch/arm/plat-omap/include/plat/irqs.h +3 -0
@@ -31,6 +31,9 @@/* All OMAP4 specific defines are moved to irqs-44xx.h */ #include "irqs-44xx.h" +/* All TI816X specific defines are in irqs-ti816x.h */ +#include "irqs-ti816x.h" +/* * IRQ numbers for interrupt handler 1 *
arch/arm/plat-omap/include/plat/serial.h +5 -0
@@ -51,6 +51,11 @@#define OMAP4_UART3_BASE 0x48020000#define OMAP4_UART4_BASE 0x4806e000 +/* TI816X serial ports */ +#define TI816X_UART1_BASE 0x48020000 +#define TI816X_UART2_BASE 0x48022000 +#define TI816X_UART3_BASE 0x48024000 +/* External port on Zoom2/3 */ #define ZOOM_UART_BASE 0x10000000#define ZOOM_UART_VIRT 0xfa400000
arch/arm/plat-omap/include/plat/ti816x.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* This file contains the address data for various ti816x modules. +* +* Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ +* +* 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 version 2. +* +* This program is distributed "as is" WITHOUT ANY WARRANTY of any +* kind, whether express or implied; without even the implied warranty +* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ + +#ifndef __ASM_ARCH_TI816X_H +#define __ASM_ARCH_TI816X_H + +#define L3_TI816X_BASE 0x44000000 +#define L4_FAST_TI816X_BASE 0x4a000000 +#define L4_SLOW_TI816X_BASE 0x48000000 + +#define TI816X_SCM_BASE 0x48140000 +#define TI816X_CTRL_BASE TI816X_SCM_BASE +#define TI816X_PRCM_BASE 0x48180000 + +#define TI816X_ARM_INTC_BASE 0x48200000 + +#define TI816X_GPMC_BASE 0x50000000 + +#endif /* __ASM_ARCH_TI816X_H */
Signature · 1 line
1.6.2.4
Paul Walmsley
maintainerHello Hemant
Quoted 6 lines · Hemant Pedanekar
This patch updates the common platform files with TI816X support. Also adds new files for TI816X modules base addresseses and irq definitions.
The approach taken in this patch is to add TI816X as part of OMAP3 variant where the cpu class is considered as OMAP34XX and the type is TI816X. This means, both
cpu_is_omap34xx()andcpu_is_ti816x()checks return success on TI816X.
Looks like you should add a CONFIG_ARCH_OMAPTI816X Kconfig option for this chip. I suspect that many handheld device manufacturers won't want to include TI816X-specific code/data in their builds, and vice versa.
- Paul
Tony Lindgren
maintainerQuoted 7 lines · Paul Walmsley
Hello Hemant
Quoted 3 lines · Hemant Pedanekar
This patch updates the common platform files with TI816X support. Also adds new files for TI816X modules base addresseses and irq definitions.
Quoted 7 lines
Quoted 3 lines
The approach taken in this patch is to add TI816X as part of OMAP3 variant where the cpu class is considered as OMAP34XX and the type is TI816X. This means, both
cpu_is_omap34xx()andcpu_is_ti816x()checks return success on TI816X.Looks like you should add a
CONFIG_ARCH_OMAPTI816XKconfigoption for this chip. I suspect that many handheld device manufacturers won't want to include TI816X-specific code/data in their builds, and vice versa.
Please use CONFIG_SOC_OMAPTI816X instead, eventually we should use CONFIG_ARCH_OMAPX only for something that requires different compiler options.
Regards,
Tony
Tony Lindgren wrote on Tuesday, January 04, 2011 7:20 AM:
Quoted 17 lines · Paul Walmsley
Quoted 7 lines
Hello Hemant
Quoted 3 lines · Hemant Pedanekar
This patch updates the common platform files with TI816X support. Also adds new files for TI816X modules base addresseses and irq definitions.
Quoted 8 lines
Quoted 4 lines
The approach taken in this patch is to add TI816X as part of OMAP3 variant where the cpu class is considered as OMAP34XX and the type is TI816X. This means, both
cpu_is_omap34xx()andcpu_is_ti816x()checks return success on TI816X.Looks like you should add a
CONFIG_ARCH_OMAPTI816XKconfigoption for this chip. I suspect that many handheld device manufacturers won't want to include TI816X-specific code/data in their builds, and vice versa.
Quoted 7 lines
Please use
CONFIG_SOC_OMAPTI816Xinstead, eventually we should useCONFIG_ARCH_OMAPXonly for something that requires different compiler options.Regards,
Tony
Thanks Tony and Paul for comments.
This means following cases need to handle:
1) Multi-OMAP build.
2) OMAP3 build for OMAP3xxx as well as TI816X SoCs - have precedence to default OMAP3 only build at most of the places. Note that this build will not really be optimized for either of them - some areas being irq macro, clock data handling with various run time checks being executed, few cpu_is_ti816x checks being executed etc.
3) OMAP3 build for OMAP3xxx SoCs only - This should be same as having CONFIG_ARCH_OMAP3 alone as earlier without TI816X patches. Thus, CONFIG_SOC_OMAPTI816X should be disabled in this case.
4) OMAP3 build for TI816X only - CONFIG_SOC_OMAPTI816X should be enabled here, which should lead to apply TI816X specific changes to OMAP3 code.
Am I getting this correct? Looking at above, it seems another config option like CONFIG_SOC_OMAP3XXX is also needed in addition to CONFIG_SOC_OMAPTI816X.
Please let me know your comments about this.
Thanks
-
Hemant
Paul Walmsley
maintainerQuoted 2 lines · Hemant
Looking at above, it seems another config option like
CONFIG_SOC_OMAP3XXXis also needed in addition toCONFIG_SOC_OMAPTI816X.
We already have CONFIG_ARCH_OMAP3430, CONFIG_ARCH_OMAP2430, and CONFIG_ARCH_OMAP2420. I guess at some point those need to be renamed to CONFIG_SOC_*.
- Paul
Tony Lindgren
maintainerQuoted 8 lines · Paul Walmsley
Quoted 2 lines · Hemant
Looking at above, it seems another config option like
CONFIG_SOC_OMAP3XXXis also needed in addition toCONFIG_SOC_OMAPTI816X.We already have
CONFIG_ARCH_OMAP3430,CONFIG_ARCH_OMAP2430, andCONFIG_ARCH_OMAP2420. I guess at some point those need to be renamed to CONFIG_SOC_*.
Yes that's what I was thinking too. Keep CONFIG_ARCH_OMAP2, 3, and 4, and rename CONFIG_ARCH_OMAP3430 etc to CONFIG_SO_COMAP3430 and so on.
Regards,
Tony
Tony Lindgren
maintainerPATCH 1/1 omap: Start using CONFIG_SOC_OMAP (Re: [PATCH v3 1/4] TI816X: Update common omap platform files)
Quoted 6 lines · Tony Lindgren
Quoted 5 lines · Paul Walmsley
Quoted 2 lines · Hemant
Looking at above, it seems another config option like
CONFIG_SOC_OMAP3XXXis also needed in addition toCONFIG_SOC_OMAPTI816X.
Quoted 6 lines
Quoted 3 lines
We already have
CONFIG_ARCH_OMAP3430,CONFIG_ARCH_OMAP2430, andCONFIG_ARCH_OMAP2420. I guess at some point those need to be renamed to CONFIG_SOC_*.Yes that's what I was thinking too. Keep
CONFIG_ARCH_OMAP2, 3, and 4, and renameCONFIG_ARCH_OMAP3430etc toCONFIG_SO_COMAP3430and so on.
Here's a patch to do that for 2.6.39, will update this after the merge window is over. Note that we should keep this separate from adding CONFIG_SOC_OMAPTI816X, that can be already done even without this patch.
Regards,
Tony
From: Tony Lindgren <[email protected]>
Date: Tue, 4 Jan 2011 15:32:32 -0800
Subject: [PATCH] omap: Start using CONFIG_SOC_OMAP
We want to have just CONFIG_ARCH_OMAP2, 3 and 4. The rest are nowadays just subcategories of these.
Search and replace the following:
ARCH_OMAP2420 SOC_OMAP2420ARCH_OMAP2430 SOC_OMAP2430ARCH_OMAP3430 SOC_OMAP3430
No functional changes.
arch/arm/mach-omap2/Kconfig +8 -8
@@ -52,20 +52,20 @@ config ARCH_OMAP4 comment "OMAP Core Type" depends on ARCH_OMAP2 -config ARCH_OMAP2420 +config SOC_OMAP2420 bool "OMAP2420 support" depends on ARCH_OMAP2 default y select OMAP_DM_TIMER select ARCH_OMAP_OTG -config ARCH_OMAP2430 +config SOC_OMAP2430 bool "OMAP2430 support" depends on ARCH_OMAP2 default y select ARCH_OMAP_OTG -config ARCH_OMAP3430 +config SOC_OMAP3430 bool "OMAP3430 support" depends on ARCH_OMAP3 default y
@@ -105,25 +105,25 @@ config MACH_OMAP_GENERIC config MACH_OMAP2_TUSB6010 bool - depends on ARCH_OMAP2 && ARCH_OMAP2420 + depends on ARCH_OMAP2 && SOC_OMAP2420 default y if MACH_NOKIA_N8X0 config MACH_OMAP_H4 bool "OMAP 2420 H4 board" - depends on ARCH_OMAP2420 + depends on SOC_OMAP2420 default y select OMAP_PACKAGE_ZAF select OMAP_DEBUG_DEVICES config MACH_OMAP_APOLLON bool "OMAP 2420 Apollon board" - depends on ARCH_OMAP2420 + depends on SOC_OMAP2420 default y select OMAP_PACKAGE_ZAC config MACH_OMAP_2430SDP bool "OMAP 2430 SDP board" - depends on ARCH_OMAP2430 + depends on SOC_OMAP2430 default y select OMAP_PACKAGE_ZAC
@@ -218,7 +218,7 @@ config MACH_NOKIA_N810_WIMAX config MACH_NOKIA_N8X0 bool "Nokia N800/N810" - depends on ARCH_OMAP2420 + depends on SOC_OMAP2420 default y select OMAP_PACKAGE_ZAC select MACH_NOKIA_N800
arch/arm/mach-omap2/Makefile +10 -10
@@ -31,8 +31,8 @@ AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec) # Functions loaded to SRAM -obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o -obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o +obj-$(CONFIG_SOC_OMAP2420) += sram242x.o +obj-$(CONFIG_SOC_OMAP2430) += sram243x.o obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o AFLAGS_sram242x.o :=-Wa,-march=armv6
@@ -40,8 +40,8 @@ AFLAGS_sram243x.o :=-Wa,-march=armv6 AFLAGS_sram34xx.o :=-Wa,-march=armv7-a # Pin multiplexing -obj-$(CONFIG_ARCH_OMAP2420) += mux2420.o -obj-$(CONFIG_ARCH_OMAP2430) += mux2430.o +obj-$(CONFIG_SOC_OMAP2420) += mux2420.o +obj-$(CONFIG_SOC_OMAP2430) += mux2430.o obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o
@@ -113,8 +113,8 @@ obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o \ clkt2xxx_dpllcore.o \ clkt2xxx_virt_prcm_set.o \ clkt2xxx_apll.o clkt2xxx_osc.o -obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o -obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o +obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o +obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \ clock34xx.o clkt34xx_dpll3m2.o \ clock3517.o clock36xx.o \
@@ -123,12 +123,12 @@ obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o \ dpll3xxx.o # OMAP2 clock rate set data (old "OPP" data) -obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o -obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o +obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o +obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o # hwmod data -obj-$(CONFIG_ARCH_OMAP2420) += omap_hwmod_2420_data.o -obj-$(CONFIG_ARCH_OMAP2430) += omap_hwmod_2430_data.o +obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2420_data.o +obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2430_data.o obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o
arch/arm/mach-omap2/clock2xxx.h +2 -2
@@ -20,13 +20,13 @@ u32 omap2xxx_get_apll_clkin(void);u32 omap2xxx_get_sysclkdiv (void );void omap2xxx_clk_prepare_for_reboot (void ); -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 int omap2420_clk_init (void );#else #define omap2420_clk_init () 0#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 int omap2430_clk_init (void );#else #define omap2430_clk_init () 0
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c +8 -8
@@ -171,7 +171,7 @@ static struct clkdm_dep core_24xx_wkdeps[] = {/* 2430-specific possible wakeup dependencies */ -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ static struct clkdm_dep mdm_2430_wkdeps[] = {
@@ -194,7 +194,7 @@ static struct clkdm_dep mdm_2430_wkdeps[] = { { NULL }, }; -#endif /* CONFIG_ARCH_OMAP2430 */ +#endif /* CONFIG_SOC_OMAP2430 */ /* OMAP3-specific possible dependencies */
@@ -450,7 +450,7 @@ static struct clockdomain cm_clkdm = {* 2420-only clockdomains */ -#if defined(CONFIG_ARCH_OMAP2420 ) +#if defined(CONFIG_SOC_OMAP2420 )static struct clockdomain mpu_2420_clkdm = { .name = "mpu_clkdm",
@@ -514,14 +514,14 @@ static struct clockdomain dss_2420_clkdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420), }; -#endif /* CONFIG_ARCH_OMAP2420 */ +#endif /* CONFIG_SOC_OMAP2420 */ /* * 2430-only clockdomains */ -#if defined(CONFIG_ARCH_OMAP2430 ) +#if defined(CONFIG_SOC_OMAP2430 )static struct clockdomain mpu_2430_clkdm = { .name = "mpu_clkdm",
@@ -600,7 +600,7 @@ static struct clockdomain dss_2430_clkdm = { .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), }; -#endif /* CONFIG_ARCH_OMAP2430 */ +#endif /* CONFIG_SOC_OMAP2430 */ /*
@@ -811,7 +811,7 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { &cm_clkdm, &prm_clkdm, -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 &mpu_2420_clkdm, &iva1_2420_clkdm, &dsp_2420_clkdm,
@@ -821,7 +821,7 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { &dss_2420_clkdm,#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 &mpu_2430_clkdm, &mdm_clkdm, &dsp_2430_clkdm,
arch/arm/mach-omap2/common.c +2 -2
@@ -40,7 +40,7 @@ static void __init __omap2_set_globals(struct omap_globals *omap2_globals)#endif -#if defined(CONFIG_ARCH_OMAP2420 ) +#if defined(CONFIG_SOC_OMAP2420 )static struct omap_globals omap242x_globals = { .class = OMAP242X_CLASS,
@@ -61,7 +61,7 @@ void __init omap2_set_globals_242x(void) }#endif -#if defined(CONFIG_ARCH_OMAP2430 ) +#if defined(CONFIG_SOC_OMAP2430 )static struct omap_globals omap243x_globals = { .class = OMAP243X_CLASS,
arch/arm/mach-omap2/devices.c +3 -3
@@ -333,7 +333,7 @@ static struct platform_device omap2_mcspi2 = { }, }; -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ defined(CONFIG_ARCH_OMAP4 )static struct omap2_mcspi_platform_config omap2_mcspi3_config = { .num_cs = 2,
@@ -400,7 +400,7 @@ static inline void omap4_mcspi_fixup(void) }#endif -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ defined(CONFIG_ARCH_OMAP4 )static inline void omap2_mcspi3_init (void ) {
@@ -895,7 +895,7 @@ void __init omap2_init_mmc(struct omap_mmc_platform_data **mmc_data,/*-------------------------------------------------------------------------*/ #if defined(CONFIG_HDQ_MASTER_OMAP ) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE ) -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3430 ) +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_SOC_OMAP3430 )#define OMAP_HDQ_BASE 0x480B2000#endif static struct resource omap_hdq_resources[] = {
arch/arm/mach-omap2/io.c +4 -4
@@ -66,7 +66,7 @@ static struct map_desc omap24xx_io_desc[] __initdata = { }, }; -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 static struct map_desc omap242x_io_desc[] __initdata = { { .virtual = DSP_MEM_2420_VIRT,
@@ -90,7 +90,7 @@ static struct map_desc omap242x_io_desc[] __initdata = {#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 static struct map_desc omap243x_io_desc[] __initdata = { { .virtual = L4_WK_243X_VIRT,
@@ -241,7 +241,7 @@ static void __init _omap2_map_common_io(void)omap_sram_init (); } -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 void __init omap242x_map_common_io (void ) {iotable_init (omap24xx_io_desc,ARRAY_SIZE (omap24xx_io_desc));
@@ -250,7 +250,7 @@ void __init omap242x_map_common_io(void) }#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 void __init omap243x_map_common_io (void ) {iotable_init (omap24xx_io_desc,ARRAY_SIZE (omap24xx_io_desc));
arch/arm/mach-omap2/mailbox.c +1 -1
@@ -310,7 +310,7 @@ struct omap_mbox mbox_dsp_info = {struct omap_mbox *omap3_mboxes[] = { &mbox_dsp_info,NULL };#endif -#if defined(CONFIG_ARCH_OMAP2420) +#if defined(CONFIG_SOC_OMAP2420) /* IVA */ static struct omap_mbox2_priv omap2_mbox_iva_priv = { .tx_fifo = {
arch/arm/mach-omap2/mcbsp.c +2 -2
@@ -104,7 +104,7 @@ EXPORT_SYMBOL(omap2_mcbsp_set_clks_src);/* Platform data */ -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 static struct omap_mcbsp_platform_data omap2420_mcbsp_pdata[] = { { .phys_base = OMAP24XX_MCBSP1_BASE,
@@ -129,7 +129,7 @@ static struct omap_mcbsp_platform_data omap2420_mcbsp_pdata[] = {#define OMAP2420_MCBSP_REG_NUM 0#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 static struct omap_mcbsp_platform_data omap2430_mcbsp_pdata[] = { { .phys_base = OMAP24XX_MCBSP1_BASE,
arch/arm/mach-omap2/opp2xxx.h +1 -1
@@ -418,7 +418,7 @@ struct prcm_config {extern const struct prcm_config omap2420_rate_table[]; -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 extern const struct prcm_config omap2430_rate_table[];#else #define omap2430_rate_table NULL
arch/arm/mach-omap2/powerdomains2xxx_data.c +3 -3
@@ -78,7 +78,7 @@ static struct powerdomain core_24xx_pwrdm = {* 2430-specific powerdomains */ -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */
@@ -97,7 +97,7 @@ static struct powerdomain mdm_pwrdm = { }, }; -#endif /* CONFIG_ARCH_OMAP2430 */ +#endif /* CONFIG_SOC_OMAP2430 */ /* As powerdomains are added or removed above, this list must also be changed */ static struct powerdomain *powerdomains_omap2xxx[]__initdata = {
@@ -111,7 +111,7 @@ static struct powerdomain *powerdomains_omap2xxx[] __initdata = { &core_24xx_pwrdm,#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 &mdm_pwrdm,#endif NULL
arch/arm/plat-omap/counter_32k.c +2 -2
@@ -53,7 +53,7 @@ static cycle_t omap16xx_32k_read(struct clocksource *cs)#define omap16xx_32k_read NULL#endif -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 static cycle_t omap2420_32k_read (struct clocksource *cs) {return omap_readl (OMAP2420_32KSYNCT_BASE +0x10 ) - offset_32k;
@@ -62,7 +62,7 @@ static cycle_t omap2420_32k_read(struct clocksource *cs)#define omap2420_32k_read NULL#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 static cycle_t omap2430_32k_read (struct clocksource *cs) {return omap_readl (OMAP2430_32KSYNCT_BASE +0x10 ) - offset_32k;
arch/arm/plat-omap/include/plat/cpu.h +5 -5
@@ -170,11 +170,11 @@ IS_OMAP_SUBCLASS(443x, 0x443)# undef cpu_is_omap24xx# define cpu_is_omap24xx () is_omap24xx()# endif -# if defined (CONFIG_ARCH_OMAP2420 ) +# if defined (CONFIG_SOC_OMAP2420 )# undef cpu_is_omap242x# define cpu_is_omap242x () is_omap242x()# endif -# if defined (CONFIG_ARCH_OMAP2430 ) +# if defined (CONFIG_SOC_OMAP2430 )# undef cpu_is_omap243x# define cpu_is_omap243x () is_omap243x()# endif
@@ -189,11 +189,11 @@ IS_OMAP_SUBCLASS(443x, 0x443)# undef cpu_is_omap24xx# define cpu_is_omap24xx () 1# endif -# if defined(CONFIG_ARCH_OMAP2420 ) +# if defined(CONFIG_SOC_OMAP2420 )# undef cpu_is_omap242x# define cpu_is_omap242x () 1# endif -# if defined(CONFIG_ARCH_OMAP2430 ) +# if defined(CONFIG_SOC_OMAP2430 )# undef cpu_is_omap243x# define cpu_is_omap243x () 1# endif
@@ -201,7 +201,7 @@ IS_OMAP_SUBCLASS(443x, 0x443)# undef cpu_is_omap34xx# define cpu_is_omap34xx () 1# endif -# if defined(CONFIG_ARCH_OMAP3430 ) +# if defined(CONFIG_SOC_OMAP3430 )# undef cpu_is_omap343x# define cpu_is_omap343x () 1# endif
arch/arm/plat-omap/include/plat/io.h +2 -2
@@ -259,7 +259,7 @@ struct omap_sdrc_params;extern void omap1_map_common_io (void );extern void omap1_init_common_hw (void ); -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 extern void omap242x_map_common_io (void );#else static inline void omap242x_map_common_io (void )
@@ -267,7 +267,7 @@ static inline void omap242x_map_common_io(void) }#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 extern void omap243x_map_common_io (void );#else static inline void omap243x_map_common_io (void )
arch/arm/plat-omap/include/plat/multi.h +2 -2
@@ -66,7 +66,7 @@# error "OMAP1 and OMAP2PLUS can't be selected at the same time"# endif #endif -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 # ifdef OMAP_NAME # undef MULTI_OMAP2# define MULTI_OMAP2
@@ -74,7 +74,7 @@# define OMAP_NAME omap2420# endif #endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 # ifdef OMAP_NAME # undef MULTI_OMAP2# define MULTI_OMAP2
arch/arm/plat-omap/sram.c +2 -2
@@ -312,7 +312,7 @@ u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass) }#endif -#ifdef CONFIG_ARCH_OMAP2420 +#ifdef CONFIG_SOC_OMAP2420 static int __init omap242x_sram_init (void ) { _omap2_sram_ddr_init = omap_sram_push(omap242x_sram_ddr_init,
@@ -333,7 +333,7 @@ static inline int omap242x_sram_init(void) }#endif -#ifdef CONFIG_ARCH_OMAP2430 +#ifdef CONFIG_SOC_OMAP2430 static int __init omap243x_sram_init (void ) { _omap2_sram_ddr_init = omap_sram_push(omap243x_sram_ddr_init,
drivers/mmc/host/Kconfig +1 -1
@@ -202,7 +202,7 @@ config MMC_OMAP config MMC_OMAP_HS tristate "TI OMAP High Speed Multimedia Card Interface support" - depends on ARCH_OMAP2430 || ARCH_OMAP3 || ARCH_OMAP4 + depends on SOC_OMAP2430 || ARCH_OMAP3 || ARCH_OMAP4 help This selects the TI OMAP High Speed Multimedia card Interface. If you have an OMAP2430 or OMAP3 board or OMAP4 board with a
drivers/spi/omap2_mcspi.c +2 -2
@@ -1116,7 +1116,7 @@ static u8 __initdata spi2_txdma_id[] = { OMAP24XX_DMA_SPI2_TX1, }; -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) \ || defined(CONFIG_ARCH_OMAP4 )static u8 __initdata spi3_rxdma_id[] = { OMAP24XX_DMA_SPI3_RX0,
@@ -1159,7 +1159,7 @@ static int __init omap2_mcspi_probe(struct platform_device *pdev) txdma_id = spi2_txdma_id; num_chipselect =2 ;break ; -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) \ || defined(CONFIG_ARCH_OMAP4 )case 3 : rxdma_id = spi3_rxdma_id;
drivers/usb/musb/Kconfig +4 -4
@@ -36,7 +36,7 @@ config USB_MUSB_SOC boolean depends on USB_MUSB_HDRC default y if ARCH_DAVINCI - default y if ARCH_OMAP2430 + default y if SOC_OMAP2430 default y if ARCH_OMAP3 default y if ARCH_OMAP4 default y if (BF54x && !BF544)
@@ -49,7 +49,7 @@ comment "DA8xx/OMAP-L1x USB support" depends on USB_MUSB_HDRC && ARCH_DAVINCI_DA8XX comment "OMAP 243x high speed USB support" - depends on USB_MUSB_HDRC && ARCH_OMAP2430 + depends on USB_MUSB_HDRC && SOC_OMAP2430 comment "OMAP 343x high speed USB support" depends on USB_MUSB_HDRC && ARCH_OMAP3
@@ -62,7 +62,7 @@ comment "Blackfin high speed USB Support" config USB_MUSB_AM35X bool - depends on USB_MUSB_HDRC && !ARCH_OMAP2430 && !ARCH_OMAP4 + depends on USB_MUSB_HDRC && !SOC_OMAP2430 && !ARCH_OMAP4 select NOP_USB_XCEIV default MACH_OMAP3517EVM help
@@ -171,7 +171,7 @@ config MUSB_PIO_ONLY config USB_INVENTRA_DMA bool depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY - default ARCH_OMAP2430 || ARCH_OMAP3 || BLACKFIN || ARCH_OMAP4 + default SOC_OMAP2430 || ARCH_OMAP3 || BLACKFIN || ARCH_OMAP4 help Enable DMA transfers using Mentor's engine.
drivers/usb/musb/Makefile +3 -3
@@ -11,11 +11,11 @@ musb_hdrc-y := musb_core.o musb_hdrc-$(CONFIG_ARCH_DAVINCI_DMx) += davinci.o musb_hdrc-$(CONFIG_ARCH_DAVINCI_DA8XX) += da8xx.o musb_hdrc-$(CONFIG_USB_TUSB6010) += tusb6010.o -musb_hdrc-$(CONFIG_ARCH_OMAP2430) += omap2430.o +musb_hdrc-$(CONFIG_SOC_OMAP2430) += omap2430.o ifeq ($(CONFIG_USB_MUSB_AM35X),y) - musb_hdrc-$(CONFIG_ARCH_OMAP3430) += am35x.o + musb_hdrc-$(CONFIG_SOC_OMAP3430) += am35x.o else - musb_hdrc-$(CONFIG_ARCH_OMAP3430) += omap2430.o + musb_hdrc-$(CONFIG_SOC_OMAP3430) += omap2430.o endif musb_hdrc-$(CONFIG_ARCH_OMAP4) += omap2430.o musb_hdrc-$(CONFIG_BF54x) += blackfin.o
drivers/usb/musb/musb_core.c +2 -2
@@ -1075,7 +1075,7 @@ static void musb_shutdown(struct platform_device *pdev)* more than selecting one of a bunch of predefined configurations. */ #if defined(CONFIG_USB_TUSB6010 ) || \ - defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) \ + defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) \ || defined(CONFIG_ARCH_OMAP4 )static ushort __initdata fifo_mode =4 ;#else
@@ -1547,7 +1547,7 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb)/*-------------------------------------------------------------------------*/ -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3430 ) || \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_SOC_OMAP3430 ) || \ defined(CONFIG_ARCH_OMAP4 )static irqreturn_t generic_interrupt (int irq,void *__hci)
drivers/usb/musb/musb_core.h +5 -5
@@ -212,8 +212,8 @@ enum musb_g_ep0_state {* directly with the "flat" model, or after setting up an index register. */ -#if defined(CONFIG_ARCH_DAVINCI ) || defined(CONFIG_ARCH_OMAP2430 ) \ - || defined(CONFIG_ARCH_OMAP3430 ) || defined(CONFIG_BLACKFIN ) \ +#if defined(CONFIG_ARCH_DAVINCI ) || defined(CONFIG_SOC_OMAP2430 ) \ + || defined(CONFIG_SOC_OMAP3430 ) || defined(CONFIG_BLACKFIN ) \ || defined(CONFIG_ARCH_OMAP4 )/* REVISIT indexed access seemed to * misbehave (on DaVinci) for at least peripheral IN ...
@@ -471,7 +471,7 @@ struct musb_csr_regs {struct musb_context_registers { -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ defined(CONFIG_ARCH_OMAP4 )u32 otg_sysconfig, otg_forcestandby;#endif
@@ -486,7 +486,7 @@ struct musb_context_registers {struct musb_csr_regs index_regs[MUSB_C_NUM_EPS ]; }; -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ defined(CONFIG_ARCH_OMAP4 ) || defined(CONFIG_BLACKFIN )extern void musb_platform_save_context (struct musb *musb,struct musb_context_registers *musb_context);
@@ -601,7 +601,7 @@ extern int musb_platform_set_mode(struct musb *musb, u8 musb_mode);#if defined(CONFIG_USB_TUSB6010 ) || defined(CONFIG_BLACKFIN ) || \ defined(CONFIG_ARCH_DAVINCI_DA8XX ) || \ - defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ + defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) || \ defined(CONFIG_ARCH_OMAP4 )extern void musb_platform_try_idle (struct musb *musb,unsigned long timeout);#else
drivers/usb/musb/musbhsdma.h +1 -1
@@ -31,7 +31,7 @@* */ -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3430 ) +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_SOC_OMAP3430 )#include "omap2430.h" #endif
drivers/w1/masters/Kconfig +1 -1
@@ -60,7 +60,7 @@ config W1_MASTER_GPIO config HDQ_MASTER_OMAP tristate "OMAP HDQ driver" - depends on ARCH_OMAP2430 || ARCH_OMAP3 + depends on SOC_OMAP2430 || ARCH_OMAP3 help Say Y here if you want support for the 1-wire or HDQ Interface on an OMAP processor.
sound/soc/omap/omap-mcbsp.c +3 -3
@@ -92,7 +92,7 @@ static const unsigned long omap1_mcbsp_port[][2] = {};static const int omap24xx_dma_reqs[][2 ] = { {OMAP24XX_DMA_MCBSP1_TX ,OMAP24XX_DMA_MCBSP1_RX }, {OMAP24XX_DMA_MCBSP2_TX ,OMAP24XX_DMA_MCBSP2_RX }, -#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) +#if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) {OMAP24XX_DMA_MCBSP3_TX ,OMAP24XX_DMA_MCBSP3_RX }, {OMAP24XX_DMA_MCBSP4_TX ,OMAP24XX_DMA_MCBSP4_RX }, { OMAP24XX_DMA_MCBSP5_TX, OMAP24XX_DMA_MCBSP5_RX },
@@ -102,7 +102,7 @@ static const int omap24xx_dma_reqs[][2] = {static const int omap24xx_dma_reqs[][2 ] = {};#endif -#if defined(CONFIG_ARCH_OMAP2420 ) +#if defined(CONFIG_SOC_OMAP2420 )static const unsigned long omap2420_mcbsp_port[][2 ] = { {OMAP24XX_MCBSP1_BASE +OMAP_MCBSP_REG_DXR1 , OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1 },
@@ -113,7 +113,7 @@ static const unsigned long omap2420_mcbsp_port[][2] = {static const unsigned long omap2420_mcbsp_port[][2 ] = {};#endif -#if defined(CONFIG_ARCH_OMAP2430 ) +#if defined(CONFIG_SOC_OMAP2430 )static const unsigned long omap2430_mcbsp_port[][2 ] = { {OMAP24XX_MCBSP1_BASE +OMAP_MCBSP_REG_DXR , OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR },
sound/soc/omap/omap-mcbsp.h +2 -2
@@ -43,14 +43,14 @@ enum omap_mcbsp_div { OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */ }; -#if defined(CONFIG_ARCH_OMAP2420 ) +#if defined(CONFIG_SOC_OMAP2420 )#define NUM_LINKS 2#endif #if defined(CONFIG_ARCH_OMAP15XX ) || defined(CONFIG_ARCH_OMAP16XX )#undef NUM_LINKS#define NUM_LINKS 3#endif -#if defined(CONFIG_ARCH_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 ) +#if defined(CONFIG_SOC_OMAP2430 ) || defined(CONFIG_ARCH_OMAP3 )#undef NUM_LINKS#define NUM_LINKS 5#endif
Tony Lindgren wrote on Wednesday, January 05, 2011 4:56 AM:
Quoted 10 lines · Paul Walmsley
Quoted 8 lines · Hemant
Quoted 3 lines
Looking at above, it seems another config option like
CONFIG_SOC_OMAP3XXXis also needed in addition toCONFIG_SOC_OMAPTI816X.We already have
CONFIG_ARCH_OMAP3430,CONFIG_ARCH_OMAP2430, andCONFIG_ARCH_OMAP2420. I guess at some point those need to be renamed to CONFIG_SOC_*.
Quoted 6 lines
Yes that's what I was thinking too. Keep
CONFIG_ARCH_OMAP2, 3, and 4, and renameCONFIG_ARCH_OMAP3430etc toCONFIG_SO_COMAP3430and so on.Regards,
Tony
So I will add CONFIG_SOC_OMAPTI816X to handle TI816X specific variations. But I think without addition of corresponding CONFIG_SOC_OMAP3XXX, it would be difficult to handle 2nd case I mentioned (OMAP3 build for OMAP3xxx as well as TI816X SoCs). Will it be OK if we consider this 2nd case as invalid/unsupported for the moment - that is, 2nd case = 4th case (OMAP3 build for TI816X only)? Same applies for multi-omap case too.
In short, if CONFIG_SOC_OMAPTI816X is selected, the build becomes specific to TI816X and not OMAP3xxx in all the cases (so keep CONFIG_SOC_OMAPTI816X disabled by default in multi-omap configuration).
Thanks
-
Hemant
[email protected] wrote on :
Quoted 27 lines
Tony Lindgren wrote on Wednesday, January 05, 2011 4:56 AM:
Quoted 10 lines · Paul Walmsley
Quoted 8 lines · Hemant
Quoted 3 lines
Looking at above, it seems another config option like
CONFIG_SOC_OMAP3XXXis also needed in addition toCONFIG_SOC_OMAPTI816X.We already have
CONFIG_ARCH_OMAP3430,CONFIG_ARCH_OMAP2430, andCONFIG_ARCH_OMAP2420. I guess at some point those need to be renamed to CONFIG_SOC_*.Quoted 6 lines
Yes that's what I was thinking too. Keep
CONFIG_ARCH_OMAP2, 3, and 4, and renameCONFIG_ARCH_OMAP3430etc toCONFIG_SO_COMAP3430and so on.Regards,
Tony
So I will add
CONFIG_SOC_OMAPTI816Xto handle TI816X specific variations. But I think without addition of correspondingCONFIG_SOC_OMAP3XXX, it would be
difficult to handle 2nd case I mentioned (OMAP3 build for OMAP3xxx as well as TI816X SoCs). Will it be OK if we consider this 2nd case as invalid/unsupported for the moment - that is, 2nd case = 4th case (OMAP3 build for TI816X only)? Same applies for multi-omap case too.
Quoted 5 lines
In short, if
CONFIG_SOC_OMAPTI816Xis selected, the build becomes specific to TI816X and not OMAP3xxx in all the cases (so keepCONFIG_SOC_OMAPTI816Xdisabled
by default in multi-omap configuration).
Tony,
Does the above look ok? Also please let me know any other comments and I will send updated patches.
Thanks
-
Hemant
Tony Lindgren
maintainerQuoted 29 lines · Pedanekar, Hemant
[email protected] wrote on :
Quoted 27 lines
Tony Lindgren wrote on Wednesday, January 05, 2011 4:56 AM:
Quoted 10 lines · Paul Walmsley
Quoted 8 lines · Hemant
Quoted 3 lines
Looking at above, it seems another config option like
CONFIG_SOC_OMAP3XXXis also needed in addition toCONFIG_SOC_OMAPTI816X.We already have
CONFIG_ARCH_OMAP3430,CONFIG_ARCH_OMAP2430, andCONFIG_ARCH_OMAP2420. I guess at some point those need to be renamed to CONFIG_SOC_*.Quoted 6 lines
Yes that's what I was thinking too. Keep
CONFIG_ARCH_OMAP2, 3, and 4, and renameCONFIG_ARCH_OMAP3430etc toCONFIG_SO_COMAP3430and so on.Regards,
Tony
So I will add
CONFIG_SOC_OMAPTI816Xto handle TI816X specific variations. But I think without addition of correspondingCONFIG_SOC_OMAP3XXX, it would be
difficult to handle 2nd case I mentioned (OMAP3 build for OMAP3xxx as well as TI816X SoCs). Will it be OK if we consider this 2nd case as invalid/unsupported for the moment - that is, 2nd case = 4th case (OMAP3 build for TI816X only)? Same applies for multi-omap case too.
Quoted 8 lines
Quoted 5 lines
In short, if
CONFIG_SOC_OMAPTI816Xis selected, the build becomes specific to TI816X and not OMAP3xxx in all the cases (so keepCONFIG_SOC_OMAPTI816Xdisabled
by default in multi-omap configuration).Tony,
Does the above look ok? Also please let me know any other comments and I will send updated patches.
Let's try to keep all the possible dependencies out of this for now. Please just add CONFIG_SOC_OMAPTI816X and keep CONFIG_ARCH_OMAP3 selected. The CONFIG_SOC_XXXX things must be optional to save memory, whatever we do we should also be able to do without them.
Regards,
Tony