diff mbox

[06/12] Initial omap3 Kconfig fragment

Message ID 1299637966-18458-7-git-send-email-john.stultz@linaro.org
State Deferred
Headers show

Commit Message

John Stultz March 9, 2011, 2:32 a.m. UTC
CC: Jason Hui <jason.hui@linaro.org>
CC: patches@linaro.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 arch/arm/configs/Kconfig.omap3 |  141 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 141 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/configs/Kconfig.omap3

Comments

Arnd Bergmann March 9, 2011, 8:48 a.m. UTC | #1
On Wednesday 09 March 2011 03:32:40 John Stultz wrote:
> +
> +
> +source "Kconfig.distro"
> +

I think we want something more flexible than sourcing
a global Kconfig.distro from the board file.

First of all, we want at least three levels, as Amit
mentioned: distro, arch, board. I can think of at least
another one: "flavor" for common variants of the distro
config, e.g. if you want to enable a lot of debugging
options or turn your root file systems into =y so you
can work without initramfs.

Would it be possible to pass multiple Kconfig fragments
to the Kconfig parser instead of just one top-level
file that sources all the other ones?

	Arnd
John Stultz March 9, 2011, 6:28 p.m. UTC | #2
On Wed, 2011-03-09 at 09:48 +0100, Arnd Bergmann wrote:
> On Wednesday 09 March 2011 03:32:40 John Stultz wrote:
> > +
> > +
> > +source "Kconfig.distro"
> > +
> 
> I think we want something more flexible than sourcing
> a global Kconfig.distro from the board file.
> 
> First of all, we want at least three levels, as Amit
> mentioned: distro, arch, board. I can think of at least
> another one: "flavor" for common variants of the distro
> config, e.g. if you want to enable a lot of debugging
> options or turn your root file systems into =y so you
> can work without initramfs.
> 
> Would it be possible to pass multiple Kconfig fragments
> to the Kconfig parser instead of just one top-level
> file that sources all the other ones?

Yep. I'd like to do exactly this in the future (probably a first pass
will just generate a tmp file that sources the multiple fragments
provided).

But I wanted to get the proof of concept out there first, so it hasn't
been as much of a priority.

thanks
-john
diff mbox

Patch

diff --git a/arch/arm/configs/Kconfig.omap3 b/arch/arm/configs/Kconfig.omap3
new file mode 100644
index 0000000..82847cf
--- /dev/null
+++ b/arch/arm/configs/Kconfig.omap3
@@ -0,0 +1,141 @@ 
+config generateconfig_OMAP3_YES
+	def_bool y
+	
+	
+	select ARM
+	select ARCH_OMAP
+	select ARCH_OMAP3
+	select OMAP_RESET_CLOCKS
+
+	select SMP
+	select EXPERIMENTAL
+
+	select OMAP3_EMU
+
+	select ARM_THUMBEE
+	select ARM_ERRATA_430973
+
+	select CPU_FREQ
+	select CPU_FREQ_STAT_DETAILS
+	select CPU_FREQ_GOV_POWERSAVE
+	select CPU_FREQ_GOV_USERSPACE
+	select CPU_FREQ_GOV_ONDEMAND
+	select CPU_FREQ_GOV_CONSERVATIVE
+	select CPU_IDLE
+
+	select TI_DAVINCI_EMAC
+	select TI_DAVINCI_MDIO
+	select TI_DAVINCI_CPDMA
+
+	select USB_EHCI_HCD
+	select USB_EHCI_ROOT_HUB_TT
+
+	select NET
+	select NETDEVICES
+	select NET_ETHERNET
+
+	select SPI
+	select GPIOLIB
+	select SYSFS
+	
+	select SND
+	select SOUND
+	select SND_OMAP
+	select SND_SOC
+	
+	select USB_NET
+	select USB_USBNET
+	select USB
+	
+	select PARPORT
+
+	select FB
+	
+	select TWL4030_CORE
+	
+	select RTC_CLASS
+	select I2C
+	select RTC_DRV_M41T80
+
+	select MTD
+	select MTD_NAND
+	select MTD_ONENAND
+		
+	select MMC
+		
+	select LEDS
+
+	select FPE_NWFPE
+
+	select MTD_NAND_OMAP2
+	select MTD_NAND_OMAP_PREFETCH_DMA
+	select MTD_ONENAND_VERIFY_WRITE
+	select MTD_ONENAND_2X_PROGRAM
+
+	select PARPORT_1284
+
+	select MMC_OMAP_HS
+	select BACKLIGHT_LCD_SUPPORT
+	select OABI_COMPAT
+
+	select USB_NET_SMSC95XX
+
+	select GPIO_SYSFS
+	select SND_OMAP_SOC
+	
+	select OMAP2_DSS
+	select OMAP2_DSS_SDI
+
+	select FB_OMAP2
+	select PANEL_GENERIC_DPI
+	select PANEL_SHARP_LS037V7DW01
+	select PANEL_TPO_TD043MTEA1
+
+	select GPIO_TWL4030
+	select TWL4030_CORE
+	select REGULATOR_TWL4030
+	select TWL4030_POWER
+	select GPIO_PCA953X
+	select GPIO_PCA953X_IRQ
+
+	select SND_OMAP_SOC_MCBSP
+	select SND_OMAP_SOC_OVERO
+	select SND_OMAP_SOC_OMAP3EVM
+
+	select SND_OMAP_SOC_SDP3430
+	select SND_OMAP_SOC_SDP4430
+	select SND_OMAP_SOC_OMAP3_PANDORA
+	select SND_OMAP_SOC_OMAP3_BEAGLE
+	select SND_OMAP_SOC_ZOOM2
+	select SND_OMAP_SOC_IGEP0020
+
+	select INTF_ALARM
+	select RTC_DRV_TWL4030
+	select RTC_DRV_M41T80_WDT
+
+
+
+# Enabling OMAP2 makes beagle boards not boot
+config ARCH_OMAP2
+	default n
+
+config SWP_EMULATE
+	default n
+
+config MACH_DEVKIT8000
+	default n
+
+config MACH_CM_T35
+	default n
+
+config USB_DEVICE_CLASS
+	default n
+
+config OMAP2_VRAM_SIZE
+	default 6
+
+
+
+source "Kconfig.distro"
+
+source "arch/arm/Kconfig"