Skip to contentSkip to conversation

ARM: LPC32XX: arch Kconfig, platform Kconfig, and makefiles

PATCH New Kevin Wells 2 participants 2 messages Jan 27, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/10 ARM: LPC32XX: arch Kconfig, platform Kconfig, and makefiles

LPC32xx architecture Kconfig, platform Kconfig, and makefiles

---
  arch/arm/mach-lpc32xx/Kconfig       |  158  
+++++++++++++++++++++++++++++++++++
  arch/arm/mach-lpc32xx/Kconfig.plat  |   98 ++++++++++++++++++++++
  arch/arm/mach-lpc32xx/Makefile      |    9 ++
  arch/arm/mach-lpc32xx/Makefile.boot |    4 +
  4 files changed, 269 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/arch/arm/mach-lpc32xx/Kconfig
new file mode 100644
index 0000000..a277885

arch/arm/mach-lpc32xx/Kconfig new file +8 -0
@@ -0,0 +1,158 @@
+if ARCH_LPC32XX
+
+menu "LPC32XX chip options"
+
+config ARCH_LPC32XX_IRAM_SIZE
+	int
+	default 131072 if ARCH_LPC32XX_20
+	default 262144 if ARCH_LPC32XX_30 || ARCH_LPC32XX_40 ||  

ARCH_LPC32XX_50
+
+choice
+ prompt "Select 32x0 device variation"
+ default ARCH_LPC32XX_50
+
+ config ARCH_LPC32XX_20
+ bool "LPC3220"
+ help
+ 128K IRAM, no ethernet or LCD
+
+ config ARCH_LPC32XX_30
+ bool "LPC3230"
+ help
+ 256K IRAM and LCD, no ethernet
+
+ config ARCH_LPC32XX_40
+ bool "LPC3240"
+ help
+ 256K IRAM and ethernet, no LCD
+
+ config ARCH_LPC32XX_50
+ bool "LPC3250"
+ help
+ 256K IRAM and ethernet and LCD
+
+endchoice
+
+menu "Serial port configuration"
+
+menu "Individual UART enable selections"
+
+config ARCH_LPC32XX_HSUART1_ENABLE
+ bool "Enable high speed UART1"
+ help
+ Also enable LPC32xx high speed serial support in drivers/serial
+
+config ARCH_LPC32XX_HSUART2_ENABLE
+ bool "Enable high speed UART2"
+ help
+ Also enable LPC32xx high speed serial support in drivers/serial
+
+config ARCH_LPC32XX_UART3_ENABLE
+ bool "Enable standard UART3"
+ help
+ Also enable 8250 serial support in drivers/serial
+
+config ARCH_LPC32XX_UART4_ENABLE
+ bool "Enable standard UART4"
+ help
+ Also enable 8250 serial support in drivers/serial
+
+config ARCH_LPC32XX_UART5_ENABLE
+ bool "Enable standard UART5"
+ default y
+ help
+ Also enable 8250 serial support in drivers/serial
+
+config ARCH_LPC32XX_UART6_ENABLE
+ bool "Enable standard UART6"
+ help
+ Also enable 8250 serial support in drivers/serial
+
+config ARCH_LPC32XX_HSUART7_ENABLE
+ bool "Enable high speed UART7"
+ help
+ Also enable LPC32xx high speed serial support in drivers/serial
+
+endmenu
+
+config ARCH_LPC32XX_UART6_IRDAMODE
+ bool "Use IRDA mode on UART6"
+ depends on ARCH_LPC32XX_UART6_ENABLE
+ help
+ Enables the IrDA modulator for UART6
+
+choice
+ prompt "Kernel uncompress status output UART selection"
+ default ARCH_LPC32XX_UNCOMP_U5
+
+ config ARCH_LPC32XX_UNCOMP_HSU1
+ bool "High speed UART 1"
+ help
+ Kernel uncompress output is on high speed UART 1
+
+ config ARCH_LPC32XX_UNCOMP_HSU2
+ bool "High speed UART 2"
+ help
+ Kernel uncompress output is on high speed UART 2
+
+ config ARCH_LPC32XX_UNCOMP_U3
+ bool "Standard UART 3"
+ help
+ Kernel uncompress output is on standard UART 3
+
+ config ARCH_LPC32XX_UNCOMP_U4
+ bool "Standard UART 4"
+ help
+ Kernel uncompress output is on standard UART 4
+
+ config ARCH_LPC32XX_UNCOMP_U5
+ bool "Standard UART 5"
+ help
+ Kernel uncompress output is on standard UART 5
+
+ config ARCH_LPC32XX_UNCOMP_U6
+ bool "Standard UART 6"
+ help
+ Kernel uncompress output is on standard UART 6
+
+ config ARCH_LPC32XX_UNCOMP_HSU7
+ bool "High speed UART 7"
+ help
+ Kernel uncompress output is on high speed UART 7
+
+endchoice
+
+choice
+ prompt "debug output (printascii) UART selection"
+ default ARCH_LPC32XX_DEBUGO_U5
+
+ config ARCH_LPC32XX_DEBUGO_U3
+ bool "Standard UART 3"
+ help
+ printascii messages are output on standard UART 3
+
+ config ARCH_LPC32XX_DEBUGO_U4
+ bool "Standard UART 4"
+ help
+ printascii messages are output on standard UART 4
+
+ config ARCH_LPC32XX_DEBUGO_U5
+ bool "Standard UART 5"
+ help
+ printascii messages are output on standard UART 5
+
+ config ARCH_LPC32XX_DEBUGO_U6
+ bool "Standard UART 6"
+ help
+ printascii messages are output on standard UART 6
+
+endchoice
+
+endmenu
+
+endmenu
+
+source "arch/arm/mach-lpc32xx/Kconfig.plat"
+
+endif
+

(quoted diff) +0 -0

b/arch/arm/mach-lpc32xx/Kconfig.plat
new file mode 100644
index 0000000..a67d1ad

arch/arm/mach-lpc32xx/Kconfig.plat new file +92 -0

92 lines not on this page · raw message

buffer
+ size is larger than the size of IRAM, then SDRAM will be used
+ instead.
+
+endchoice
+
+endmenu

(quoted diff) +0 -0

b/arch/arm/mach-lpc32xx/Makefile
new file mode 100644
index 0000000..9c76c70

arch/arm/mach-lpc32xx/Makefile new file +5 -0
@@ -0,0 +1,9 @@
+#
+# Makefile for the linux kernel.
+#
+
+obj-y				:= timer.o irq.o common.o serial.o  

clock.o
+obj-y += gpiolib.o pm.o pm_events.o suspend.o
+
+obj-$(CONFIG_MACH_PHY3250) += phy3250.o
+

(quoted diff) +0 -0

b/arch/arm/mach-lpc32xx/Makefile.boot
new file mode 100644
index 0000000..b796b41

arch/arm/mach-lpc32xx/Makefile.boot new file +4 -0
@@ -0,0 +1,4 @@
+   zreladdr-y	:= 0x80008000
+params_phys-y	:= 0x80000100
+initrd_phys-y	:= 0x82000000
+
Signature · 1 line
1.6.6
#1 lore raw

PATCH 2/10 ARM: LPC32XX: arch Kconfig, platform Kconfig, and makefiles

Hi Kevin,

Quoted 27 lines · Kevin Wells

LPC32xx architecture Kconfig, platform Kconfig, and makefiles

---
 arch/arm/mach-lpc32xx/Kconfig       |  158
+++++++++++++++++++++++++++++++++++
 arch/arm/mach-lpc32xx/Kconfig.plat  |   98 ++++++++++++++++++++++
 arch/arm/mach-lpc32xx/Makefile      |    9 ++
 arch/arm/mach-lpc32xx/Makefile.boot |    4 +
 4 files changed, 269 insertions(+), 0 deletions(-)
arch/arm/mach-lpc32xx/Kconfig new file +8 -0
new file mode 100644
index 0000000..a277885
@@ -0,0 +1,158 @@
+if ARCH_LPC32XX
+
+menu "LPC32XX chip options"
+
+config ARCH_LPC32XX_IRAM_SIZE
+	int
+	default 131072 if ARCH_LPC32XX_20
+	default 262144 if ARCH_LPC32XX_30 || ARCH_LPC32XX_40 ||
Quoted 1 line

ARCH_LPC32XX_50

^^^^^^^^^^^^^^^

You mailer (Balsa?) wraps long lines in this and in other patches, thus corrupting them. Please fix.

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -