Commit 1d3f33d541312acd34bd2fa780396d111a0f73b1

Authored by Shawn Guo
Committed by Uwe Kleine-König
1 parent 4afbbb7c1b

ARM: mxs: Add build configuration for mxs

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Showing 7 changed files with 63 additions and 0 deletions Side-by-side Diff

... ... @@ -351,6 +351,14 @@
351 351 help
352 352 Support for Freescale MXC/iMX-based family of processors
353 353  
  354 +config ARCH_MXS
  355 + bool "Freescale MXS-based"
  356 + select GENERIC_CLOCKEVENTS
  357 + select ARCH_REQUIRE_GPIOLIB
  358 + select COMMON_CLKDEV
  359 + help
  360 + Support for Freescale MXS-based family of processors
  361 +
354 362 config ARCH_STMP3XXX
355 363 bool "Freescale STMP3xxx"
356 364 select CPU_ARM926T
... ... @@ -901,6 +909,8 @@
901 909 source "arch/arm/mach-mv78xx0/Kconfig"
902 910  
903 911 source "arch/arm/plat-mxc/Kconfig"
  912 +
  913 +source "arch/arm/mach-mxs/Kconfig"
904 914  
905 915 source "arch/arm/mach-netx/Kconfig"
906 916  
... ... @@ -158,6 +158,7 @@
158 158 machine-$(CONFIG_ARCH_MX3) := mx3
159 159 machine-$(CONFIG_ARCH_MX5) := mx5
160 160 machine-$(CONFIG_ARCH_MXC91231) := mxc91231
  161 +machine-$(CONFIG_ARCH_MXS) := mxs
161 162 machine-$(CONFIG_ARCH_NETX) := netx
162 163 machine-$(CONFIG_ARCH_NOMADIK) := nomadik
163 164 machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx
arch/arm/mach-mxs/Kconfig
  1 +if ARCH_MXS
  2 +
  3 +source "arch/arm/mach-mxs/devices/Kconfig"
  4 +
  5 +config SOC_IMX23
  6 + bool
  7 + select CPU_ARM926T
  8 +
  9 +config SOC_IMX28
  10 + bool
  11 + select CPU_ARM926T
  12 +
  13 +comment "MXS platforms:"
  14 +
  15 +config MACH_MX23EVK
  16 + bool "Support MX23EVK Platform"
  17 + select SOC_IMX23
  18 + select MXS_HAVE_PLATFORM_DUART
  19 + default y
  20 + help
  21 + Include support for MX23EVK platform. This includes specific
  22 + configurations for the board and its peripherals.
  23 +
  24 +config MACH_MX28EVK
  25 + bool "Support MX28EVK Platform"
  26 + select SOC_IMX28
  27 + select MXS_HAVE_PLATFORM_DUART
  28 + select MXS_HAVE_PLATFORM_FEC
  29 + default y
  30 + help
  31 + Include support for MX28EVK platform. This includes specific
  32 + configurations for the board and its peripherals.
  33 +
  34 +endif
arch/arm/mach-mxs/Makefile
  1 +# Common support
  2 +obj-y := clock.o devices.o gpio.o icoll.o iomux.o system.o timer.o
  3 +
  4 +obj-$(CONFIG_SOC_IMX23) += clock-mx23.o mm-mx23.o
  5 +obj-$(CONFIG_SOC_IMX28) += clock-mx28.o mm-mx28.o
  6 +
  7 +obj-$(CONFIG_MACH_MX23EVK) += mach-mx23evk.o
  8 +obj-$(CONFIG_MACH_MX28EVK) += mach-mx28evk.o
  9 +
  10 +obj-y += devices/
arch/arm/mach-mxs/Makefile.boot
  1 +zreladdr-y := 0x40008000
arch/arm/mach-mxs/devices/Kconfig
  1 +config MXS_HAVE_PLATFORM_DUART
  2 + bool
  3 +
  4 +config MXS_HAVE_PLATFORM_FEC
  5 + bool
arch/arm/mach-mxs/devices/Makefile
  1 +obj-$(CONFIG_MXS_HAVE_PLATFORM_DUART) += platform-duart.o
  2 +obj-$(CONFIG_MXS_HAVE_PLATFORM_FEC) += platform-fec.o