ARM: mxc: update defconfigs
Subsystems (3)
PATCH 1/6 ARM: mxc: update defconfigs
- enable new machines:
- IMX27IPCAM (mx27)
- VPR200 (mx3)
- EUKREA_CPUIMX51SD (mx51)
- MX51_EFIKAMX (mx51)
- MX51_EFIKASB (mx51)
- disable SYSFS_DEPRECATED_V2 (mx1, mx21, mx3)
- enable CPU_IDLE (mx27)
- enable MXC_PWM (mx1, mx51)
- drop PM=y, defaults to y since
1eb208a (PM: Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME))
(mx1, mx27, mx3, mx51)
- enable CAN_MCP251X (mx27, mx51) and CAN_SJA1000 (mx27)
- enable MTD_NAND_MXC and UBI (mx51)
- add MISC_DEVICES=y, defaults to n since
5f2365d (misc devices: do not enable by default)
(EEPROM_AT24 depends on MISC_DEVICES) (mx27, mx3)
or drop MISC_DEVICES=n (mx1, mx51)
- enable EEPROM_AT25 (mx27)
- drop INOTIFY; is gone since
2dfc1ca (inotify: remove inotify in kernel interface)
(mx1)
- drop VGA_CONSOLE; isn't selectable on imx any more since fb78b51 (ARM: Disable VGA console for ARM in most cases) (mx21)
- drop FEC=y, defaults to y since
085e79e (net/fec: consolidate all i.MX options to CONFIG_ARM)
(mx27, mx3, mx51)
- drop CRYPTO_ANSI_CPRNG=n; depends on CRYPTO which is unset (mx1)
- drop VIDEO_ALLOW_V4L1=n; gone since
58c66df ([media] Remove VIDEO_V4L1 Kconfig option)
(mx3)
- enable mc13xxx including regulator, rtc, touch and led (mx27, mx3, mx51)
- enable KEYBOARD_GPIO (mx27, mx3) and KEYBOARD_IMX (mx27, mx3, mx51)
- drop SERIO=n as KEYBOARD_ATKBD (default y since INPUT=y) selects SERIO (mx27, mx3)
- enable I2C_IMX and SPI_IMX (mx51)
- enable SND_IMX_SOC including platfrom glue (mx27, mx3, mx51)
- enable SOC_CAMERA_MT9{T031,V022} (mx27)
- enable VIDEO_MX2 (mx27)
- enable LEDS_GPIO and LEDS_PWM (mx27, mx3, mx51)
- enable USB_EHCI_MXC (mx27)
- enable IMX_DMA (mx1, mx21, mx27)
- enable IMX_SDMA (mx3, mx51)
- RCU_CPU_STALL_DETECTOR isn't selectable any more since
687d7a9 (rcu: restrict TREE_RCU to SMP builds with !PREEMPT)
(mx51)
- MMC_MXC isn't selectable any more since
170cba8 (mmc: mmc_mxc: Allow selection only for the correct platforms)
(mx1)
- drop MTD_CONCAT; gone since
f53fdeb (mtd: drop MTD_CONCAT from Kconfig entirely)
(mx51)
- drop AUTOFS_FS=y; is in staging since
db7bee2 (autofs3: move to drivers/staging)
(mx51)
- change CRYPTO_DEFLATE and CRYPTO_LZO to =m as they depend on CRYPTO since
cce9e06 ([CRYPTO] api: Split out low-level API)
and CRYPTO is only =m. (mx51)
--- arch/arm/configs/mx1_defconfig | 11 +++----- arch/arm/configs/mx21_defconfig | 8 +++--- arch/arm/configs/mx27_defconfig | 45 ++++++++++++++++++++++++++++---- arch/arm/configs/mx3_defconfig | 40 +++++++++++++++++++++-------- arch/arm/configs/mx51_defconfig | 53 +++++++++++++++++++++++++++++++------- 5 files changed, 119 insertions(+), 38 deletions(-)
arch/arm/configs/mx1_defconfig +4 -7
@@ -3,7 +3,6 @@ CONFIG_SYSVIPC=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 -CONFIG_SYSFS_DEPRECATED_V2=y CONFIG_EXPERT=y CONFIG_SLAB=y CONFIG_MODULES=y
@@ -16,6 +15,7 @@ CONFIG_ARCH_MX1=y CONFIG_ARCH_MX1ADS=y CONFIG_MACH_SCB9328=y CONFIG_MXC_IRQ_PRIOR=y +CONFIG_MXC_PWM=y CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y CONFIG_PREEMPT=y
@@ -23,7 +23,6 @@ CONFIG_AEABI=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="noinitrd console=ttymxc0,115200 root=/dev/mtdblock2 rw ip=off" -CONFIG_PM=y CONFIG_PM_DEBUG=y CONFIG_NET=y CONFIG_PACKET=y
@@ -47,7 +46,6 @@ CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_PHYSMAP=y # CONFIG_BLK_DEV is not set -# CONFIG_MISC_DEVICES is not set CONFIG_NETDEVICES=y CONFIG_PHYLIB=y CONFIG_SMSC_PHY=y
@@ -58,9 +56,9 @@ CONFIG_DM9000=y # CONFIG_INPUT is not set # CONFIG_SERIO is not set # CONFIG_VT is not set +# CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_IMX=y CONFIG_SERIAL_IMX_CONSOLE=y -# CONFIG_LEGACY_PTYS is not set # CONFIG_HW_RANDOM is not set CONFIG_I2C=y CONFIG_I2C_CHARDEV=y
@@ -74,9 +72,9 @@ CONFIG_USB_GADGET=y CONFIG_USB_GADGET_IMX=y CONFIG_USB_ETH=m CONFIG_MMC=y -CONFIG_MMC_MXC=y +CONFIG_DMADEVICES=y +CONFIG_IMX_DMA=y # CONFIG_DNOTIFY is not set -CONFIG_INOTIFY=y CONFIG_TMPFS=y CONFIG_JFFS2_FS=y CONFIG_NFS_FS=y
@@ -87,4 +85,3 @@ CONFIG_ROOT_NFS=y # CONFIG_ENABLE_MUST_CHECK is not set # CONFIG_RCU_CPU_STALL_DETECTOR is not set CONFIG_SYSCTL_SYSCALL_CHECK=y -# CONFIG_CRYPTO_ANSI_CPRNG is not set
arch/arm/configs/mx21_defconfig +4 -4
@@ -2,7 +2,6 @@ CONFIG_EXPERIMENTAL=y # CONFIG_SWAP is not set CONFIG_SYSVIPC=y CONFIG_LOG_BUF_SHIFT=14 -CONFIG_SYSFS_DEPRECATED_V2=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_EXPERT=y CONFIG_KALLSYMS_EXTRA_PASS=y
@@ -51,8 +50,8 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_MXC=y CONFIG_NETDEVICES=y -CONFIG_NET_ETHERNET=y CONFIG_MII=y +CONFIG_NET_ETHERNET=y # CONFIG_NETDEV_1000 is not set # CONFIG_NETDEV_10000 is not set # CONFIG_INPUT_MOUSEDEV is not set
@@ -62,12 +61,12 @@ CONFIG_INPUT_EVDEV=y CONFIG_INPUT_TOUCHSCREEN=y # CONFIG_SERIO is not set # CONFIG_CONSOLE_TRANSLATIONS is not set +# CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_NR_UARTS=1 CONFIG_SERIAL_IMX=y CONFIG_SERIAL_IMX_CONSOLE=y -# CONFIG_LEGACY_PTYS is not set # CONFIG_HW_RANDOM is not set CONFIG_I2C=y CONFIG_I2C_CHARDEV=y
@@ -76,7 +75,6 @@ CONFIG_SPI=y # CONFIG_HWMON is not set CONFIG_FB=y CONFIG_FB_IMX=y -# CONFIG_VGA_CONSOLE is not set CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FONTS=y CONFIG_FONT_8x8=y
@@ -85,6 +83,8 @@ CONFIG_LOGO=y # CONFIG_USB_SUPPORT is not set CONFIG_MMC=y CONFIG_MMC_MXC=y +CONFIG_DMADEVICES=y +CONFIG_IMX_DMA=y # CONFIG_DNOTIFY is not set CONFIG_MSDOS_FS=y CONFIG_TMPFS=y
arch/arm/configs/mx27_defconfig +39 -6
102 lines not on this page · raw message
arch/arm/configs/mx3_defconfig +29 -11
@@ -3,7 +3,6 @@ CONFIG_SYSVIPC=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 -CONFIG_SYSFS_DEPRECATED_V2=y CONFIG_EXPERT=y CONFIG_SLAB=y CONFIG_MODULES=y
@@ -13,18 +12,19 @@ CONFIG_MODVERSIONS=y # CONFIG_BLK_DEV_BSG is not set CONFIG_ARCH_MXC=y CONFIG_MACH_MX31ADS_WM1133_EV1=y +CONFIG_MACH_MX31LILLY=y +CONFIG_MACH_MX31LITE=y CONFIG_MACH_PCM037=y CONFIG_MACH_PCM037_EET=y -CONFIG_MACH_MX31LITE=y CONFIG_MACH_MX31_3DS=y CONFIG_MACH_MX31MOBOARD=y -CONFIG_MACH_MX31LILLY=y CONFIG_MACH_QONG=y -CONFIG_MACH_PCM043=y CONFIG_MACH_ARMADILLO5X0=y -CONFIG_MACH_MX35_3DS=y CONFIG_MACH_KZM_ARM11_01=y +CONFIG_MACH_PCM043=y +CONFIG_MACH_MX35_3DS=y CONFIG_MACH_EUKREA_CPUIMX35=y +CONFIG_MACH_VPR200=y CONFIG_MXC_IRQ_PRIOR=y CONFIG_MXC_PWM=y CONFIG_NO_HZ=y
@@ -35,7 +35,6 @@ CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="noinitrd console=ttymxc0,115200 root=/dev/mtdblock2 rw ip=off" CONFIG_VFP=y -CONFIG_PM=y CONFIG_PM_DEBUG=y CONFIG_NET=y CONFIG_PACKET=y
@@ -62,24 +61,26 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_MXC=y CONFIG_MTD_UBI=y # CONFIG_BLK_DEV is not set +CONFIG_MISC_DEVICES=y CONFIG_EEPROM_AT24=y CONFIG_NETDEVICES=y CONFIG_SMSC_PHY=y CONFIG_NET_ETHERNET=y CONFIG_SMSC911X=y CONFIG_DNET=y -CONFIG_FEC=y # CONFIG_NETDEV_1000 is not set # CONFIG_NETDEV_10000 is not set -# CONFIG_INPUT is not set -# CONFIG_SERIO is not set +CONFIG_KEYBOARD_GPIO=y +CONFIG_KEYBOARD_IMX=y +CONFIG_INPUT_TOUCHSCREEN=y +CONFIG_TOUCHSCREEN_MC13783=y # CONFIG_VT is not set +# CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=m CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_SHARE_IRQ=y CONFIG_SERIAL_IMX=y CONFIG_SERIAL_IMX_CONSOLE=y -# CONFIG_LEGACY_PTYS is not set # CONFIG_HW_RANDOM is not set CONFIG_I2C=y CONFIG_I2C_CHARDEV=y
@@ -90,11 +91,12 @@ CONFIG_W1_MASTER_MXC=y CONFIG_W1_SLAVE_THERM=y # CONFIG_HWMON is not set CONFIG_MFD_WM8350_I2C=y +CONFIG_MFD_MC13XXX=y CONFIG_REGULATOR=y CONFIG_REGULATOR_WM8350=y +CONFIG_REGULATOR_MC13783=y CONFIG_MEDIA_SUPPORT=y CONFIG_VIDEO_DEV=y -# CONFIG_VIDEO_ALLOW_V4L1 is not set CONFIG_SOC_CAMERA=y CONFIG_SOC_CAMERA_MT9M001=y CONFIG_SOC_CAMERA_MT9M111=y
@@ -105,10 +107,26 @@ CONFIG_SOC_CAMERA_OV772X=y CONFIG_VIDEO_MX3=y # CONFIG_RADIO_ADAPTERS is not set CONFIG_FB=y +CONFIG_SOUND=y +CONFIG_SND=y +# CONFIG_SND_SUPPORT_OLD_API is not set +CONFIG_SND_SOC=y +CONFIG_SND_IMX_SOC=y +CONFIG_SND_MXC_SOC_WM1133_EV1=y +CONFIG_SND_SOC_PHYCORE_AC97=y +CONFIG_SND_SOC_EUKREA_TLV320=y # CONFIG_USB_SUPPORT is not set CONFIG_MMC=y CONFIG_MMC_MXC=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y +CONFIG_LEDS_PWM=y +CONFIG_LEDS_MC13783=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_MC13XXX=y CONFIG_DMADEVICES=y +CONFIG_IMX_SDMA=y # CONFIG_DNOTIFY is not set CONFIG_TMPFS=y CONFIG_JFFS2_FS=y
arch/arm/configs/mx51_defconfig +43 -10
136 lines not on this page · raw message
Signature · 1 line
1.7.2.3
PATCH 2/6 ARM: mxc: don't use the symbols in the CPU family choice to select others
The symbols in this choice should only be used to select between the available machines that can be built into a single kernel. As these sets (will) differ e.g. depending on ARM_PATCH_PHYS_VIRT and AUTO_ZRELADDR letting them select other symbols makes the logic more complex and needs to duplicate some things. So let the machines select the corresponding symbols (indirectly via SOC_XYZ).
--- arch/arm/mach-imx/Kconfig | 3 +++ arch/arm/mach-mx5/Kconfig | 6 ++++++ arch/arm/plat-mxc/Kconfig | 4 ---- 3 files changed, 9 insertions(+), 4 deletions(-)
arch/arm/mach-imx/Kconfig +3 -0
@@ -43,6 +43,7 @@ config SOC_IMX27 config SOC_IMX31 bool + select CPU_V6 select IMX_HAVE_PLATFORM_MXC_RNGA select ARCH_MXC_AUDMUX_V2 select ARCH_MX31
@@ -50,6 +51,7 @@ config SOC_IMX31 config SOC_IMX35 bool + select CPU_V6 select ARCH_MXC_IOMUX_V3 select ARCH_MXC_AUDMUX_V2 select HAVE_EPIT
@@ -66,6 +68,7 @@ config MACH_MXLADS config ARCH_MX1ADS bool "MX1ADS platform" select MACH_MXLADS + select SOC_IMX1 select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_UART help
arch/arm/mach-mx5/Kconfig +6 -0
@@ -13,6 +13,8 @@ config ARCH_MX53 config SOC_IMX50 bool + select CPU_V7 + select ARM_L1_CACHE_SHIFT_6 select MXC_TZIC select ARCH_MXC_IOMUX_V3 select ARCH_MXC_AUDMUX_V2
@@ -21,6 +23,8 @@ config SOC_IMX50 config SOC_IMX51 bool + select CPU_V7 + select ARM_L1_CACHE_SHIFT_6 select MXC_TZIC select ARCH_MXC_IOMUX_V3 select ARCH_MXC_AUDMUX_V2
@@ -29,6 +33,8 @@ config SOC_IMX51 config SOC_IMX53 bool + select CPU_V7 + select ARM_L1_CACHE_SHIFT_6 select MXC_TZIC select ARCH_MXC_IOMUX_V3 select ARCH_MX53
arch/arm/plat-mxc/Kconfig +0 -4
@@ -10,7 +10,6 @@ choice config ARCH_MX1 bool "MX1-based" - select SOC_IMX1 help This enables support for systems based on the Freescale i.MX1 family
@@ -26,14 +25,11 @@ config ARCH_MX25 config ARCH_MX3 bool "MX3-based" - select CPU_V6 help This enables support for systems based on the Freescale i.MX3 family config ARCH_MX5 bool "MX5-based" - select CPU_V7 - select ARM_L1_CACHE_SHIFT_6 help This enables support for systems based on the Freescale i.MX51 family
Signature · 1 line
1.7.2.3
PATCH 3/6 ARM: mxc: simplify platform selection for i.MX21 and i.MX27
In reply to Uwe Kleine-KönigThis moves the choice between i.MX21 and i.MX27 (that appeared when choosing "MX2-based" in the mxc-global CPU family choice) to the global choice.
Now this global choice isn't about "CPU families" anymore but this isn't currently possible anyhow (e.g. because i.MX25 doesn't match many expectations that are called MX2 and we cannot compile i.MX51 and i.MX53 into a single (runnable) kernel) and will change further in the future.
Note that reduced .config files for i.MX21 need some care not to switch so a i.MX31/35 config which is the default in the global choice. mx21_defconfig is adapted accordingly.
---
Hello,
this is a more complete version of
http://mid.gmane.org/1299086585-22707-1-git-send-email-u.kleine-koenig at pengutronix.de
. Back then Sascha suggested to do a more complete switch to a structure that allows to take ARM_PATCH_PHYS_VIRT into account. But as we're not yet there to support this on i.MX and because I think this justifies a seperate patch I this up again.
Best regards
Uwe
arch/arm/configs/mx21_defconfig | 2 +- arch/arm/configs/mx27_defconfig | 1 - arch/arm/mach-imx/Kconfig | 30 ++++++++---------------------- arch/arm/plat-mxc/Kconfig | 26 +++++++++++++++++--------- 4 files changed, 26 insertions(+), 33 deletions(-)
arch/arm/configs/mx21_defconfig +1 -1
@@ -12,7 +12,7 @@ CONFIG_MODULE_UNLOAD=y # CONFIG_IOSCHED_DEADLINE is not set # CONFIG_IOSCHED_CFQ is not set CONFIG_ARCH_MXC=y -CONFIG_ARCH_MX2=y +CONFIG_MACH_MX21=y CONFIG_MACH_MX21ADS=y CONFIG_MXC_PWM=y CONFIG_NO_HZ=y
arch/arm/configs/mx27_defconfig +0 -1
@@ -17,7 +17,6 @@ CONFIG_MODULE_UNLOAD=y # CONFIG_IOSCHED_DEADLINE is not set # CONFIG_IOSCHED_CFQ is not set CONFIG_ARCH_MXC=y -CONFIG_ARCH_MX2=y CONFIG_MACH_MX27=y CONFIG_MACH_MX27ADS=y CONFIG_MACH_PCM038=y
arch/arm/mach-imx/Kconfig +8 -22
@@ -1,10 +1,14 @@ config IMX_HAVE_DMA_V1 bool # -# ARCH_MX31 and ARCH_MX35 are left for compatibility +# ARCH_MX2, ARCH_MX31 and ARCH_MX35 are left for compatibility # Some usages assume that having one of them implies not having (e.g.) ARCH_MX2. # To easily distinguish good and reviewed from unreviewed usages new (and IMHO -# more sensible) names are used: SOC_IMX31 and SOC_IMX35 +# more sensible) names are used: SOC_IMX21, SOC_IMX27, SOC_IMX31 and SOC_IMX35 +config ARCH_MX2 + # note that i.MX25 doesn't select this + bool + config ARCH_MX31 bool
@@ -20,6 +24,7 @@ config SOC_IMX1 config SOC_IMX21 bool + select ARCH_MX2 select CPU_ARM926T select ARCH_MXC_AUDMUX_V1 select IMX_HAVE_DMA_V1
@@ -35,6 +40,7 @@ config SOC_IMX25 config SOC_IMX27 bool + select ARCH_MX2 select CPU_ARM926T select ARCH_MXC_AUDMUX_V1 select IMX_HAVE_DMA_V1
@@ -82,26 +88,6 @@ config MACH_SCB9328 endif -if ARCH_MX2 - -choice - prompt "CPUs:" - default MACH_MX21 - -config MACH_MX21 - bool "i.MX21 support" - help - This enables support for Freescale's MX2 based i.MX21 processor. - -config MACH_MX27 - bool "i.MX27 support" - help - This enables support for Freescale's MX2 based i.MX27 processor. - -endchoice - -endif - if MACH_MX21 comment "MX21 platforms:"
arch/arm/plat-mxc/Kconfig +17 -9
@@ -5,28 +5,36 @@ source "arch/arm/plat-mxc/devices/Kconfig" menu "Freescale MXC Implementations" choice - prompt "Freescale CPU family:" + prompt "Set of supported SoCs:" default ARCH_MX3 +# don't use the symbols available in this choice in code. They should only be +# used to select the machines that can be compiled into a single kernel. config ARCH_MX1 - bool "MX1-based" + bool "MX1" help This enables support for systems based on the Freescale i.MX1 family -config ARCH_MX2 - bool "MX2-based" +config MACH_MX21 + bool "i.MX21" help - This enables support for systems based on the Freescale i.MX2 family + This enables support for machines using Freescale's i.MX21 processor. config ARCH_MX25 - bool "MX25-based" + bool "i.MX25" help - This enables support for systems based on the Freescale i.MX25 family + This enables support for machines using Freescale's i.MX25 processor. + +config MACH_MX27 + bool "i.MX27" + help + This enables support for machines using Freescale's i.MX27 processor. config ARCH_MX3 - bool "MX3-based" + bool "i.MX31 + i.MX35" help - This enables support for systems based on the Freescale i.MX3 family + This enables support for machines using Freescale's i.MX31 and i.MX35 + processors. config ARCH_MX5 bool "MX5-based"
Signature · 1 line
1.7.2.3
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Uwe Kleine-KönigThe two SoCs have different PHYS_OFFSETs so it's not (yet) possible to compile a single (working) kernel for these.
--- arch/arm/configs/mx51_defconfig | 2 +- arch/arm/mach-mx5/Kconfig | 51 +++++++++++++++++++++++++------------- arch/arm/plat-mxc/Kconfig | 19 +++++++++++++- 3 files changed, 51 insertions(+), 21 deletions(-)
arch/arm/configs/mx51_defconfig +1 -1
@@ -13,7 +13,7 @@ CONFIG_MODULE_SRCVERSION_ALL=y # CONFIG_LBDAF is not set # CONFIG_BLK_DEV_BSG is not set CONFIG_ARCH_MXC=y -CONFIG_ARCH_MX5=y +CONFIG_ARCH_MX51=y CONFIG_MACH_MX51_BABBAGE=y CONFIG_MACH_MX51_3DS=y CONFIG_MACH_EUKREA_CPUIMX51=y
arch/arm/mach-mx5/Kconfig +33 -18
89 lines not on this page · raw message
arch/arm/plat-mxc/Kconfig +17 -2
@@ -4,6 +4,12 @@ source "arch/arm/plat-mxc/devices/Kconfig" menu "Freescale MXC Implementations" +config ARCH_MX50_SUPPORTED + bool + +config ARCH_MX53_SUPPORTED + bool + choice prompt "Set of supported SoCs:" default ARCH_MX3
@@ -36,8 +42,17 @@ config ARCH_MX3 This enables support for machines using Freescale's i.MX31 and i.MX35 processors. -config ARCH_MX5 - bool "MX5-based" +config ARCH_MX503 + bool "i.MX50 + i.MX53" + select ARCH_MX50_SUPPORTED + select ARCH_MX53_SUPPORTED + help + This enables support for machines using Freescale's i.MX50 and i.MX51 + processors. + +config ARCH_MX51 + bool "i.MX51" + select ARCH_MX51_SUPPORTED help This enables support for systems based on the Freescale i.MX51 family
Signature · 1 line
1.7.2.3
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 2 lines · Uwe Kleine-K?nig
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.
Really?
Have a look at CONFIG_ARM_PATCH_PHYS_VIRT. It's in mainline and fully functional.
Nicolas
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 9 lines · Nicolas Pitre
Quoted 2 lines · Uwe Kleine-K?nig
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. It's in mainline and fully functional.
I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch. Currently you can build a kernel for i.MX51 + i.MX53 but IIRC it works on no machine. When considering ARM_PATCH_PHYS_VIRT there are more SoCs that could be built into a single image and so needs a more complicated logic. And I don't want to depend on ARM_PATCH_PHYS_VIRT (yet), e.g. because it's new and still depends on EXPERIMENTAL.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 6 lines · Uwe Kleine-K?nig
Quoted 5 lines · Nicolas Pitre
Quoted 2 lines · Uwe Kleine-K?nig
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.
Quoted 6 lines
Quoted 4 lines
Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. It's in mainline and fully functional.I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch.
Sure. Instead of a compile time expansion of virt_to_phys() and phys_to_virt(), you get a run time patching of the kernel binary according to the runtime deduced PHYS_OFFSET. See commit logs for "git log 6fc31d54..b511d75" for the details.
Quoted 2 lines
Currently you can build a
kernel for i.MX51 + i.MX53 but IIRC it works on no machine.
Maybe it should be fixed?
Quoted 2 lines
When considering
ARM_PATCH_PHYS_VIRTthere are more SoCs that could be built into a single image and so needs a more complicated logic.
The ultimate goal is to structure the code so we can build as many SOCs together as possible.
Quoted 2 lines
And I don't want to depend on
ARM_PATCH_PHYS_VIRT(yet), e.g. because it's new and still depends on EXPERIMENTAL.
When will it be no experimental anymore if no one starts using it? RMK talked about making it enabled by default, and that could allow for the removal of a bunch of arch/arm/*/include/mach/memory.h files.
Nicolas
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Well, whoever's responsibility it is to fix this, whereever it needs to be fixed, it needs to be fixed, as it is absolutely nuts that you cannot run an MX51 and MX53 board off the same kernel.
If nobody knows or agrees, can anyone can identify exactly what needs to be fixed and where, and how much work this would actually be, so they or someone else can actually go do it, instead of us just debating about how experimental it might be?
As far as I see it the only reason it depends on EXPERIMENTAL is because it breaks at least one subarch, it breaks XIP kernels and it breaks Thumb2 kernels (this last one is not so much a showstopper for enabling it by default, unless I am mistaken in my assumption that Thumb2 kernels still don't work reliably right now anyway?)
Signature · 6 lines
Matt Sealey <[email protected]> Product Development Analyst, Genesi USA, Inc. 2011/4/11 Nicolas Pitre <[email protected]>:
Quoted 47 lines · Uwe Kleine-K?nig
Quoted 7 lines · Nicolas Pitre
Quoted 5 lines · Uwe Kleine-K?nig
Quoted 3 lines
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.Quoted 6 lines
Quoted 4 lines
Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. ?It's in mainline and fully functional.I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch.
Sure. ?Instead of a compile time expansion of
virt_to_phys()andphys_to_virt(), you get a run time patching of the kernel binary according to the runtime deducedPHYS_OFFSET. ?See commit logs for "git log 6fc31d54..b511d75" for the details.Quoted 2 lines
Currently you can build a
kernel for i.MX51 + i.MX53 but IIRC it works on no machine.Maybe it should be fixed?
Quoted 2 lines
When considering
ARM_PATCH_PHYS_VIRTthere are more SoCs that could be built into a single image and so needs a more complicated logic.The ultimate goal is to structure the code so we can build as many SOCs together as possible.
Quoted 2 lines
And I don't want to depend on
ARM_PATCH_PHYS_VIRT(yet), e.g. because it's new and still depends on EXPERIMENTAL.When will it be no experimental anymore if no one starts using it? ?RMK talked about making it enabled by default, and that could allow for the removal of a bunch of
arch/arm/*/include/mach/memory.hfiles.Nicolas
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Do _not_ top post.
Quoted 9 lines · Matt Sealey
Well, whoever's responsibility it is to fix this, whereever it needs to be fixed, it needs to be fixed, as it is absolutely nuts that you cannot run an MX51 and MX53 board off the same kernel.
If nobody knows or agrees, can anyone can identify exactly what needs to be fixed and where, and how much work this would actually be, so they or someone else can actually go do it, instead of us just debating about how experimental it might be?
Quoted 5 lines
As far as I see it the only reason it depends on EXPERIMENTAL is because it breaks at least one subarch, it breaks XIP kernels and it breaks Thumb2 kernels (this last one is not so much a showstopper for enabling it by default, unless I am mistaken in my assumption that Thumb2 kernels still don't work reliably right now anyway?)
I can only guess that you're talking about the dynamic patching of the virt_to_phys stuff - but that's only a guess because there is _no_ _context_ because you _top_ _posted_.
It is marked as EXPERIMENTAL because it is a new feature which has just gone in, and hasn't had sufficient testing out in the wild to justify removal of EXPERIMENTAL. Therefore, the EXPERIMENTAL tag tells people that the feature may not be as stable as it should be.
It can be removed _after_ the next merge window when we have a higher confidence that no one has seen any major problems with it.
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Nicolas PitreQuoted 12 lines · Nicolas Pitre
Quoted 10 lines · Uwe Kleine-K?nig
Quoted 9 lines · Nicolas Pitre
Quoted 2 lines · Uwe Kleine-K?nig
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. It's in mainline and fully functional.
Quoted 7 lines
Quoted 2 lines
I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch.
Sure. Instead of a compile time expansion of
virt_to_phys()andphys_to_virt(), you get a run time patching of the kernel binary according to the runtime deducedPHYS_OFFSET. See commit logs for "git log 6fc31d54..b511d75" for the details.
I'm well aware of the details, too. I just said that if ARM_PATCH_PHYS_VIRT is off, i.MX51 and i.MX53 cannot be supported by the same kernel, so I changed the Kconfig logic to reflect this. You can be sure I will follow up with a patch that checks for ARM_PATCH_PHYS_VIRT and will allow more SoCs in a single kernel.
Quoted 4 lines
Quoted 2 lines
Currently you can build a
kernel for i.MX51 + i.MX53 but IIRC it works on no machine.Maybe it should be fixed?
My patch does. :-)
Quoted 5 lines
Quoted 2 lines
When considering
ARM_PATCH_PHYS_VIRTthere are more SoCs that could be built into a single image and so needs a more complicated logic.The ultimate goal is to structure the code so we can build as many SOCs together as possible.
Yeah, and I think we're on a good way for mxc, don't you?
Quoted 6 lines
Quoted 2 lines
And I don't want to depend on
ARM_PATCH_PHYS_VIRT(yet), e.g. because it's new and still depends on EXPERIMENTAL.When will it be no experimental anymore if no one starts using it? RMK talked about making it enabled by default, and that could allow for the removal of a bunch of
arch/arm/*/include/mach/memory.hfiles.
I will using it, but I don't want to make the mx5 port depend on it and so on EXPERIMENTAL. I don't know about you, but I have to satisfy two
worlds: the ARM community with all the new stuff and industrial customers that want a system that just works. And I don't want to explain a member of the latter group who has read the help text of EXPERIMENTAL why this is needed for his fundamentally important system that has to be reliable 100%.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Nicolas PitreHello,
Quoted 5 lines · Nicolas Pitre
Quoted 2 lines · Uwe Kleine-K?nig
Currently you can build a
kernel for i.MX51 + i.MX53 but IIRC it works on no machine.Maybe it should be fixed?
To catch similar errors earlier next time, I'd like the compiler to wail if the physoffsets don't match (in the !ARM_PATCH_PHYS_VIRT case).
The best thing I could come up with up to now is:
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
# if defined CONFIG_ARCH_MX1 # define PLAT_PHYS_OFFSET MX1_PHYS_OFFSET # endif # if defined CONFIG_MACH_MX21 && (!defined(PLAT_PHYS_OFFSET) || PLAT_PHYS_OFFSET != MX21_PHYS_OFFSET) # define PLAT_PHYS_OFFSET MX21_PHYS_OFFSET # endif # if defined CONFIG_ARCH_MX25 && (!defined(PLAT_PHYS_OFFSET) || PLAT_PHYS_OFFSET != MX25_PHYS_OFFSET) # define PLAT_PHYS_OFFSET MX25_PHYS_OFFSET # endif ...
this is really ugly. And even to make this work I have to do
arch/arm/include/asm/memory.h +3 -2
@@ -16,8 +16,6 @@#include <linux/compiler.h> #include <linux/const.h> #include <linux/types.h> -#include <mach/memory.h> -#include <asm/sizes.h> /* * Allow for constants defined here to be used from assembly code
@@ -25,6 +23,9 @@*/ #define UL (x) _AC(x, UL) +#include <mach/memory.h> +#include <asm/sizes.h> +#ifdef CONFIG_MMU /*
because cpp can only compare integers and so needs a definition for UL. Even when keeping the definition as it is now (i.e. asserting a single definition by using #ifelse) adding something like:
#if defined(PLAT_PHYS_OFFSET)
# if defined(CONFIG_ARCH_MX1) && (PLAT_PHYS_OFFSET != MX1_PHYS_OFFSET) #error something # endif # ... #endif
needs the UL macro.
Does someone has a better idea? If not it's probably not worth the change.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 10 lines · Uwe Kleine-K?nig
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
# if defined CONFIG_ARCH_MX1 # define PLAT_PHYS_OFFSET MX1_PHYS_OFFSET # endif # if defined CONFIG_MACH_MX21 && (!defined(PLAT_PHYS_OFFSET) || PLAT_PHYS_OFFSET != MX21_PHYS_OFFSET) # define PLAT_PHYS_OFFSET MX21_PHYS_OFFSET # endif # if defined CONFIG_ARCH_MX25 && (!defined(PLAT_PHYS_OFFSET) || PLAT_PHYS_OFFSET != MX25_PHYS_OFFSET) # define PLAT_PHYS_OFFSET MX25_PHYS_OFFSET # endif
And what's wrong with:
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
#ifdef CONFIG_ARCH_MX1
#ifdef PLAT_PHYS_OFFSET
#error Invalid configuration - PLAT_PHYS_OFFSET already defined #endif
#define PLAT_PHYS_OFFSET MX1_PHYS_OFFSET
#endif
#ifdef CONFIG_MACH_MX21
#ifdef PLAT_PHYS_OFFSET
#error Invalid configuration - PLAT_PHYS_OFFSET already defined #endif
#define PLAT_PHYS_OFFSET MX21_PHYS_OFFSET
#endif
...
#endif
?
Or this _may_ work:
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
#if CONFIG_ARCH_MX1 + CONFIG_MACH_MX21 + ... > 1
#error Invalid configuration - unable to handle different phys base addresses #endif
...
#endif
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Hi Russell,
Quoted 31 lines · Russell King - ARM Linux
Quoted 10 lines · Uwe Kleine-K?nig
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
# if defined CONFIG_ARCH_MX1 # define PLAT_PHYS_OFFSET MX1_PHYS_OFFSET # endif # if defined CONFIG_MACH_MX21 && (!defined(PLAT_PHYS_OFFSET) || PLAT_PHYS_OFFSET != MX21_PHYS_OFFSET) # define PLAT_PHYS_OFFSET MX21_PHYS_OFFSET # endif # if defined CONFIG_ARCH_MX25 && (!defined(PLAT_PHYS_OFFSET) || PLAT_PHYS_OFFSET != MX25_PHYS_OFFSET) # define PLAT_PHYS_OFFSET MX25_PHYS_OFFSET # endifAnd what's wrong with:
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
#ifdefCONFIG_ARCH_MX1
#ifdefPLAT_PHYS_OFFSET
#error Invalid configuration -PLAT_PHYS_OFFSETalready defined #endif
#definePLAT_PHYS_OFFSETMX1_PHYS_OFFSET
#endif#ifdef
CONFIG_MACH_MX21
#ifdefPLAT_PHYS_OFFSET
#error Invalid configuration -PLAT_PHYS_OFFSETalready defined #endif
#definePLAT_PHYS_OFFSETMX21_PHYS_OFFSET
#endif
...
#endif
Quoted 1 line
?
i.MX25 and i.MX31 have the same PHYS_OFFSET, so the error should not trigger if these two are enabled. So testing only #ifdef PLAT_PHYS_OFFSET is wrong.
Quoted 6 lines
Or this _may_ work:
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
#ifCONFIG_ARCH_MX1+CONFIG_MACH_MX21+ ... > 1
#error Invalid configuration - unable to handle different phys base addresses #endif
Same problem (and I guess it yields some cpp warnings about CONFIG_ARCH_MX1 not being defined for an i.MX21-only build, but I didn't test).
Quoted 3 lines
...
#endif
Thanks for your try,
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 7 lines · Uwe Kleine-K?nig
Quoted 4 lines
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
#ifCONFIG_ARCH_MX1+CONFIG_MACH_MX21+ ... > 1
#error Invalid configuration - unable to handle different phys base addresses #endifSame problem (and I guess it yields some cpp warnings about
CONFIG_ARCH_MX1not being defined for an i.MX21-only build, but I didn't test).
Well then,
#if (CONFIG_ARCH_MX1 | CONFIG_MACH_MX21) + (...) + ... > 1
where each group of | cover those which share the same phys base.
No idea what those are because each MX SoC hides its phys base behind some SoC private definition. This is definitely a case where more preprocessor junk reduces the code readability and makes it harder to understand. Removal of preprocessor indirection sounds like a candidate for the consolidation effort to me.
I think we're at the point where "no" to that is not acceptable. Make it happen please. We must reduce the size of arch/arm by all means possible.
PATCH 1/1 ARM: remove ns9xxx port
The port is actually unmaintained and only received global cleanups and a few build fixes since mid 2008.
---
Hello,
Quoted 1 line · Russell King - ARM Linux
We must reduce the size of
arch/armby all means possible.
What about this? You considered to do this some time ago[1] already and I asked to wait because Digi planned to continue the mainline efforts around spring 2010.
Best regards
Uwe
[1] http://mid.gmane.org/20091121105009.GD7998 at n2100.arm.linux.org.uk
arch/arm/Kconfig | 14 -- arch/arm/Makefile | 1 - arch/arm/configs/ns9xxx_defconfig | 56 ----- arch/arm/mach-ns9xxx/Kconfig | 40 ---- arch/arm/mach-ns9xxx/Makefile | 12 - arch/arm/mach-ns9xxx/Makefile.boot | 2 - arch/arm/mach-ns9xxx/board-a9m9750dev.c | 156 -------------- arch/arm/mach-ns9xxx/board-a9m9750dev.h | 15 -- arch/arm/mach-ns9xxx/board-jscc9p9360.c | 17 -- arch/arm/mach-ns9xxx/board-jscc9p9360.h | 13 -- arch/arm/mach-ns9xxx/clock.c | 215 -------------------- arch/arm/mach-ns9xxx/clock.h | 35 ---- arch/arm/mach-ns9xxx/generic.c | 19 -- arch/arm/mach-ns9xxx/generic.h | 16 -- arch/arm/mach-ns9xxx/gpio-ns9360.c | 118 ----------- arch/arm/mach-ns9xxx/gpio-ns9360.h | 13 -- arch/arm/mach-ns9xxx/gpio.c | 147 ------------- arch/arm/mach-ns9xxx/include/mach/board.h | 40 ---- arch/arm/mach-ns9xxx/include/mach/debug-macro.S | 21 -- arch/arm/mach-ns9xxx/include/mach/entry-macro.S | 28 --- arch/arm/mach-ns9xxx/include/mach/gpio.h | 47 ----- arch/arm/mach-ns9xxx/include/mach/hardware.h | 77 ------- arch/arm/mach-ns9xxx/include/mach/io.h | 20 -- arch/arm/mach-ns9xxx/include/mach/irqs.h | 86 -------- arch/arm/mach-ns9xxx/include/mach/memory.h | 24 --- arch/arm/mach-ns9xxx/include/mach/module.h | 55 ----- .../mach-ns9xxx/include/mach/processor-ns9360.h | 32 --- arch/arm/mach-ns9xxx/include/mach/processor.h | 42 ---- arch/arm/mach-ns9xxx/include/mach/regs-bbu.h | 45 ---- .../include/mach/regs-board-a9m9750dev.h | 24 --- arch/arm/mach-ns9xxx/include/mach/regs-mem.h | 135 ------------ .../arm/mach-ns9xxx/include/mach/regs-sys-common.h | 31 --- .../arm/mach-ns9xxx/include/mach/regs-sys-ns9360.h | 148 -------------- arch/arm/mach-ns9xxx/include/mach/system.h | 35 ---- arch/arm/mach-ns9xxx/include/mach/timex.h | 20 -- arch/arm/mach-ns9xxx/include/mach/uncompress.h | 164 --------------- arch/arm/mach-ns9xxx/include/mach/vmalloc.h | 16 -- arch/arm/mach-ns9xxx/irq.c | 74 ------- arch/arm/mach-ns9xxx/mach-cc9p9360dev.c | 43 ---- arch/arm/mach-ns9xxx/mach-cc9p9360js.c | 31 --- arch/arm/mach-ns9xxx/plat-serial8250.c | 70 ------- arch/arm/mach-ns9xxx/processor-ns9360.c | 53 ----- arch/arm/mach-ns9xxx/time-ns9360.c | 181 ---------------- 43 files changed, 0 insertions(+), 2431 deletions(-) delete mode 100644 arch/arm/configs/ns9xxx_defconfig delete mode 100644 arch/arm/mach-ns9xxx/Kconfig delete mode 100644 arch/arm/mach-ns9xxx/Makefile delete mode 100644 arch/arm/mach-ns9xxx/Makefile.boot delete mode 100644 arch/arm/mach-ns9xxx/board-a9m9750dev.c delete mode 100644 arch/arm/mach-ns9xxx/board-a9m9750dev.h delete mode 100644 arch/arm/mach-ns9xxx/board-jscc9p9360.c delete mode 100644 arch/arm/mach-ns9xxx/board-jscc9p9360.h delete mode 100644 arch/arm/mach-ns9xxx/clock.c delete mode 100644 arch/arm/mach-ns9xxx/clock.h delete mode 100644 arch/arm/mach-ns9xxx/generic.c delete mode 100644 arch/arm/mach-ns9xxx/generic.h delete mode 100644 arch/arm/mach-ns9xxx/gpio-ns9360.c delete mode 100644 arch/arm/mach-ns9xxx/gpio-ns9360.h delete mode 100644 arch/arm/mach-ns9xxx/gpio.c delete mode 100644 arch/arm/mach-ns9xxx/include/mach/board.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/debug-macro.S delete mode 100644 arch/arm/mach-ns9xxx/include/mach/entry-macro.S delete mode 100644 arch/arm/mach-ns9xxx/include/mach/gpio.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/hardware.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/io.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/irqs.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/memory.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/module.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/processor-ns9360.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/processor.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/regs-bbu.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/regs-board-a9m9750dev.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/regs-mem.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/regs-sys-common.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/regs-sys-ns9360.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/system.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/timex.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/uncompress.h delete mode 100644 arch/arm/mach-ns9xxx/include/mach/vmalloc.h delete mode 100644 arch/arm/mach-ns9xxx/irq.c delete mode 100644 arch/arm/mach-ns9xxx/mach-cc9p9360dev.c delete mode 100644 arch/arm/mach-ns9xxx/mach-cc9p9360js.c delete mode 100644 arch/arm/mach-ns9xxx/plat-serial8250.c delete mode 100644 arch/arm/mach-ns9xxx/processor-ns9360.c delete mode 100644 arch/arm/mach-ns9xxx/time-ns9360.c
arch/arm/Kconfig +0 -14
@@ -554,18 +554,6 @@ config ARCH_KS8695 Support for Micrel/Kendin KS8695 "Centaur" (ARM922T) based System-on-Chip devices. -config ARCH_NS9XXX - bool "NetSilicon NS9xxx" - select CPU_ARM926T - select GENERIC_GPIO - select GENERIC_CLOCKEVENTS - select HAVE_CLK - help - Say Y here if you intend to run this kernel on a NetSilicon NS9xxx - System. - - <http://www.digi.com/products/microprocessors/index.jsp> - config ARCH_W90X900 bool "Nuvoton W90X900 CPU" select CPU_ARM926T
@@ -951,8 +939,6 @@ source "arch/arm/mach-netx/Kconfig" source "arch/arm/mach-nomadik/Kconfig" source "arch/arm/plat-nomadik/Kconfig" -source "arch/arm/mach-ns9xxx/Kconfig" - source "arch/arm/mach-nuc93x/Kconfig" source "arch/arm/plat-omap/Kconfig"
arch/arm/Makefile +0 -1
@@ -163,7 +163,6 @@ machine-$(CONFIG_ARCH_MX5) := mx5 machine-$(CONFIG_ARCH_MXS) := mxs machine-$(CONFIG_ARCH_NETX) := netx machine-$(CONFIG_ARCH_NOMADIK) := nomadik -machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx machine-$(CONFIG_ARCH_OMAP1) := omap1 machine-$(CONFIG_ARCH_OMAP2) := omap2 machine-$(CONFIG_ARCH_OMAP3) := omap2
arch/arm/configs/ns9xxx_defconfig deleted +0 -56
56 lines not on this page · raw message
arch/arm/mach-ns9xxx/Kconfig deleted +0 -40
@@ -1,40 +0,0 @@ -if ARCH_NS9XXX - -menu "NS9xxx Implementations" - -config NS9XXX_HAVE_SERIAL8250 - bool - -config PROCESSOR_NS9360 - bool - -config MODULE_CC9P9360 - bool - select PROCESSOR_NS9360 - -config BOARD_A9M9750DEV - select NS9XXX_HAVE_SERIAL8250 - bool - -config BOARD_JSCC9P9360 - bool - -config MACH_CC9P9360DEV - bool "ConnectCore 9P 9360 on an A9M9750 Devboard" - select MODULE_CC9P9360 - select BOARD_A9M9750DEV - help - Say Y here if you are using the Digi ConnectCore 9P 9360 - on an A9M9750 Development Board. - -config MACH_CC9P9360JS - bool "ConnectCore 9P 9360 on a JSCC9P9360 Devboard" - select MODULE_CC9P9360 - select BOARD_JSCC9P9360 - help - Say Y here if you are using the Digi ConnectCore 9P 9360 - on an JSCC9P9360 Development Board. - -endmenu - -endif
arch/arm/mach-ns9xxx/Makefile deleted +0 -12
@@ -1,12 +0,0 @@ -obj-y := clock.o generic.o gpio.o irq.o - -obj-$(CONFIG_MACH_CC9P9360DEV) += mach-cc9p9360dev.o -obj-$(CONFIG_MACH_CC9P9360JS) += mach-cc9p9360js.o - -obj-$(CONFIG_PROCESSOR_NS9360) += gpio-ns9360.o processor-ns9360.o time-ns9360.o - -obj-$(CONFIG_BOARD_A9M9750DEV) += board-a9m9750dev.o -obj-$(CONFIG_BOARD_JSCC9P9360) += board-jscc9p9360.o - -# platform devices -obj-$(CONFIG_NS9XXX_HAVE_SERIAL8250) += plat-serial8250.o
arch/arm/mach-ns9xxx/Makefile.boot deleted +0 -2
@@ -1,2 +0,0 @@ -zreladdr-y := 0x8000 -params_phys-y := 0x100
arch/arm/mach-ns9xxx/board-a9m9750dev.c deleted +0 -156
156 lines not on this page · raw message
arch/arm/mach-ns9xxx/board-a9m9750dev.h deleted +0 -15
@@ -1,15 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/board-a9m9750dev.h -* -* Copyright (C) 2006 by Digi International Inc. -* All rights reserved. -* -* 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/init.h> - -void __init board_a9m9750dev_map_io (void ); -void __init board_a9m9750dev_init_machine (void ); -void __init board_a9m9750dev_init_irq (void );
arch/arm/mach-ns9xxx/board-jscc9p9360.c deleted +0 -17
@@ -1,17 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/board-jscc9p9360.c -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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 "board-jscc9p9360.h" - -void __init board_jscc9p9360_init_machine (void ) -{ -/* TODO: reserve GPIOs for push buttons, etc pp */ -} -
arch/arm/mach-ns9xxx/board-jscc9p9360.h deleted +0 -13
@@ -1,13 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/board-jscc9p9360.h -* -* Copyright (C) 2006 by Digi International Inc. -* All rights reserved. -* -* 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/init.h> - -void __init board_jscc9p9360_init_machine (void );
arch/arm/mach-ns9xxx/clock.c deleted +0 -215
215 lines not on this page · raw message
arch/arm/mach-ns9xxx/clock.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/clock.h -* -* Copyright (C) 2007 by Digi International Inc. -* All rights reserved. -* -* 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 __NS9XXX_CLOCK_H -#define __NS9XXX_CLOCK_H - -#include <linux/list.h> - -struct clk { -struct module *owner; -const char *name; -int id; - -struct clk *parent; - -unsigned long rate; -int (*endisable)(struct clk *,int enable); -unsigned long (*get_rate)(struct clk *); - -struct list_head node; -unsigned long refcount; -unsigned long usage; -}; - -int clk_register (struct clk *clk); -int clk_unregister (struct clk *clk); - -#endif /* ifndef __NS9XXX_CLOCK_H */
arch/arm/mach-ns9xxx/generic.c deleted +0 -19
@@ -1,19 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/generic.c -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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/kernel.h> -#include <linux/init.h> -#include <asm/memory.h> - -#include "generic.h" - -void __init ns9xxx_init_machine (void ) -{ -}
arch/arm/mach-ns9xxx/generic.h deleted +0 -16
@@ -1,16 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/generic.h -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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/time.h> -#include <asm/mach/time.h> -#include <linux/init.h> - -void __init ns9xxx_init_irq (void ); -void __init ns9xxx_init_machine (void );
arch/arm/mach-ns9xxx/gpio-ns9360.c deleted +0 -118
118 lines not on this page · raw message
arch/arm/mach-ns9xxx/gpio-ns9360.h deleted +0 -13
@@ -1,13 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/gpio-ns9360.h -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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. -*/ -int __ns9360_gpio_configure (unsigned gpio,int dir,int inv,int func); -int ns9360_gpio_get_value (unsigned gpio); -void ns9360_gpio_set_value (unsigned gpio,int value);
arch/arm/mach-ns9xxx/gpio.c deleted +0 -147
147 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/board.h deleted +0 -40
@@ -1,40 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/board.h -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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_BOARD_H -#define __ASM_ARCH_BOARD_H - -#include <asm/mach-types.h> - -#define board_is_a9m9750dev () (0 \ - || machine_is_cc9p9750dev() \ - ) - -#define board_is_a9mvali () (0 \ - || machine_is_cc9p9750val() \ - ) - -#define board_is_jscc9p9210 () (0 \ - || machine_is_cc9p9210js() \ - ) - -#define board_is_jscc9p9215 () (0 \ - || machine_is_cc9p9215js() \ - ) - -#define board_is_jscc9p9360 () (0 \ - || machine_is_cc9p9360js() \ - ) - -#define board_is_uncbas () (0 \ - || machine_is_cc7ucamry() \ - ) - -#endif /* ifndef __ASM_ARCH_BOARD_H */
arch/arm/mach-ns9xxx/include/mach/debug-macro.S deleted +0 -21
@@ -1,21 +0,0 @@ -/* - * arch/arm/mach-ns9xxx/include/mach/debug-macro.S - * Copyright (C) 2006 by Digi International Inc. - * All rights reserved. - * - * 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 <mach/hardware.h> -#include <asm/memory.h> - -#include <mach/regs-board-a9m9750dev.h> - - .macro addruart, rp, rv - ldr \rp, =NS9XXX_CSxSTAT_PHYS(0) - ldr \rv, =io_p2v(NS9XXX_CSxSTAT_PHYS(0)) - .endm - -#define UART_SHIFT 2 -#include <asm/hardware/debug-8250.S>
arch/arm/mach-ns9xxx/include/mach/entry-macro.S deleted +0 -28
@@ -1,28 +0,0 @@ -/* - * arch/arm/mach-ns9xxx/include/mach/entry-macro.S - * - * Copyright (C) 2006,2007 by Digi International Inc. - * All rights reserved. - * - * 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 <mach/hardware.h> -#include <mach/regs-sys-common.h> - - .macro get_irqnr_preamble, base, tmp - ldr \base, =SYS_ISRADDR - .endm - - .macro arch_ret_to_user, tmp1, tmp2 - .endm - - .macro get_irqnr_and_base, irqnr, irqstat, base, tmp - ldr \irqstat, [\base, #(SYS_ISA - SYS_ISRADDR)] - cmp \irqstat, #0 - ldrne \irqnr, [\base] - .endm - - .macro disable_fiq - .endm
arch/arm/mach-ns9xxx/include/mach/gpio.h deleted +0 -47
47 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/hardware.h deleted +0 -77
77 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/io.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/io.h -* -* Copyright (C) 2006 by Digi International Inc. -* All rights reserved. -* -* 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_IO_H -#define __ASM_ARCH_IO_H - -#define IO_SPACE_LIMIT 0xffffffff/* XXX */ - -#define __io (a) __typesafe_io(a) -#define __mem_pci (a) (a) -#define __mem_isa (a) (IO_BASE + (a)) - -#endif /* ifndef __ASM_ARCH_IO_H */
arch/arm/mach-ns9xxx/include/mach/irqs.h deleted +0 -86
86 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/memory.h deleted +0 -24
@@ -1,24 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/memory.h -* -* Copyright (C) 2006 by Digi International Inc. -* All rights reserved. -* -* 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_MEMORY_H -#define __ASM_ARCH_MEMORY_H - -/* x in [0..3] */ -#define NS9XXX_CSxSTAT_PHYS (x) UL(((x) + 4) << 28) - -#define NS9XXX_CS0STAT_LENGTH UL(0x1000) -#define NS9XXX_CS1STAT_LENGTH UL(0x1000) -#define NS9XXX_CS2STAT_LENGTH UL(0x1000) -#define NS9XXX_CS3STAT_LENGTH UL(0x1000) - -#define PLAT_PHYS_OFFSET UL(0x00000000) - -#endif
arch/arm/mach-ns9xxx/include/mach/module.h deleted +0 -55
55 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/processor-ns9360.h deleted +0 -32
@@ -1,32 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/processor-ns9360.h -* -* Copyright (C) 2007 by Digi International Inc. -* All rights reserved. -* -* 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_PROCESSORNS9360_H -#define __ASM_ARCH_PROCESSORNS9360_H - -#include <linux/init.h> - -void ns9360_reset (char mode); - -unsigned long ns9360_systemclock (void ) __attribute__((const)); - -static inline unsigned long ns9360_cpuclock (void ) __attribute__((const)); -static inline unsigned long ns9360_cpuclock (void ) -{ -return ns9360_systemclock () /2 ; -} - -void __init ns9360_map_io (void ); - -extern struct sys_timer ns9360_timer; - -int ns9360_gpio_configure (unsigned gpio,int inv,int func); - -#endif /* ifndef __ASM_ARCH_PROCESSORNS9360_H */
arch/arm/mach-ns9xxx/include/mach/processor.h deleted +0 -42
42 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/regs-bbu.h deleted +0 -45
45 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/regs-board-a9m9750dev.h deleted +0 -24
@@ -1,24 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/regs-board-a9m9750dev.h -* -* Copyright (C) 2006 by Digi International Inc. -* All rights reserved. -* -* 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_REGSBOARDA9M9750_H -#define __ASM_ARCH_REGSBOARDA9M9750_H - -#include <mach/hardware.h> - -#define FPGA_UARTA_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0)) -#define FPGA_UARTB_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0) + 0x08) -#define FPGA_UARTC_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0) + 0x10) -#define FPGA_UARTD_BASE io_p2v(NS9XXX_CSxSTAT_PHYS(0) + 0x18) - -#define FPGA_IER __REG(NS9XXX_CSxSTAT_PHYS(0) + 0x50) -#define FPGA_ISR __REG(NS9XXX_CSxSTAT_PHYS(0) + 0x60) - -#endif /* ifndef __ASM_ARCH_REGSBOARDA9M9750_H */
arch/arm/mach-ns9xxx/include/mach/regs-mem.h deleted +0 -135
135 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/regs-sys-common.h deleted +0 -31
@@ -1,31 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/regs-sys-common.h -* -* Copyright (C) 2007 by Digi International Inc. -* All rights reserved. -* -* 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_REGSSYSCOMMON_H -#define __ASM_ARCH_REGSSYSCOMMON_H -#include <mach/hardware.h> - -/* Interrupt Vector Address Register Level x */ -#define SYS_IVA (x) __REG2(0xa09000c4, (x)) - -/* Interrupt Configuration registers */ -#define SYS_IC (x) __REG2(0xa0900144, (x)) - -/* ISRADDR */ -#define SYS_ISRADDR __REG(0xa0900164) - -/* Interrupt Status Active */ -#define SYS_ISA __REG(0xa0900168) - -/* Interrupt Status Raw */ -#define SYS_ISR __REG(0xa090016c) - -#endif /* ifndef __ASM_ARCH_REGSSYSCOMMON_H */
arch/arm/mach-ns9xxx/include/mach/regs-sys-ns9360.h deleted +0 -148
148 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/system.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/system.h -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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_SYSTEM_H -#define __ASM_ARCH_SYSTEM_H - -#include <asm/proc-fns.h> -#include <mach/processor.h> -#include <mach/processor-ns9360.h> - -static inline void arch_idle (void ) -{ -cpu_do_idle (); -} - -static inline void arch_reset (char mode,const char *cmd) -{ -#ifdef CONFIG_PROCESSOR_NS9360 -if (processor_is_ns9360 ()) -ns9360_reset (mode); - else -#endif -BUG (); - -BUG (); -} - -#endif /* ifndef __ASM_ARCH_SYSTEM_H */
arch/arm/mach-ns9xxx/include/mach/timex.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/timex.h -* -* Copyright (C) 2005-2006 by Digi International Inc. -* All rights reserved. -* -* 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_TIMEX_H -#define __ASM_ARCH_TIMEX_H - -/* -* value for CLOCK_TICK_RATE stolen from arch/arm/mach-s3c2410/include/mach/timex.h. -* See there for an explanation. -*/ -#define CLOCK_TICK_RATE 12000000 - -#endif /* ifndef __ASM_ARCH_TIMEX_H */
arch/arm/mach-ns9xxx/include/mach/uncompress.h deleted +0 -164
164 lines not on this page · raw message
arch/arm/mach-ns9xxx/include/mach/vmalloc.h deleted +0 -16
@@ -1,16 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/include/mach/vmalloc.h -* -* Copyright (C) 2006 by Digi International Inc. -* All rights reserved. -* -* 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_VMALLOC_H -#define __ASM_ARCH_VMALLOC_H - -#define VMALLOC_END (0xf0000000UL) - -#endif /* ifndef __ASM_ARCH_VMALLOC_H */
arch/arm/mach-ns9xxx/irq.c deleted +0 -74
74 lines not on this page · raw message
arch/arm/mach-ns9xxx/mach-cc9p9360dev.c deleted +0 -43
43 lines not on this page · raw message
arch/arm/mach-ns9xxx/mach-cc9p9360js.c deleted +0 -31
@@ -1,31 +0,0 @@ -/* -* arch/arm/mach-ns9xxx/mach-cc9p9360js.c -* -* Copyright (C) 2006,2007 by Digi International Inc. -* All rights reserved. -* -* 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 <asm/mach/arch.h> -#include <asm/mach-types.h> - -#include <mach/processor-ns9360.h> - -#include "board-jscc9p9360.h" -#include "generic.h" - -static void __init mach_cc9p9360js_init_machine (void ) -{ -ns9xxx_init_machine (); -board_jscc9p9360_init_machine (); -} - -MACHINE_START (CC9P9360JS ,"Digi ConnectCore 9P 9360 on an JSCC9P9360 Devboard" ) - .map_io = ns9360_map_io, - .init_irq = ns9xxx_init_irq, - .init_machine = mach_cc9p9360js_init_machine, - .timer = &ns9360_timer, - .boot_params =0x100 , -MACHINE_END
arch/arm/mach-ns9xxx/plat-serial8250.c deleted +0 -70
70 lines not on this page · raw message
arch/arm/mach-ns9xxx/processor-ns9360.c deleted +0 -53
53 lines not on this page · raw message
arch/arm/mach-ns9xxx/time-ns9360.c deleted +0 -181
181 lines not on this page · raw message
Signature · 1 line
1.7.2.3
PATCH 1/1 ARM: remove ns9xxx port
Quoted 7 lines · Uwe Kleine-K?nig
The port is actually unmaintained and only received global cleanups and a few build fixes since mid 2008.
Signed-off-by Uwe Kleine-K?nig <[email protected]>---
Hello,
Quoted 6 lines
Quoted 1 line · Russell King - ARM Linux
We must reduce the size of
arch/armby all means possible.What about this? You considered to do this some time ago[1] already and I asked to wait because Digi planned to continue the mainline efforts around spring 2010.
I was in contact with someone at Digi and he told me there are no mainline activies planned.
Patch system?
Best regards
Uwe
Quoted 1 line
[1] http://mid.gmane.org/20091121105009.GD7998 at n2100.arm.linux.org.uk
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 ARM: remove ns9xxx port
Quoted 11 lines · Uwe Kleine-K?nig
Quoted 10 lines · Uwe Kleine-K?nig
The port is actually unmaintained and only received global cleanups and a few build fixes since mid 2008.
Signed-off-by Uwe Kleine-K?nig <[email protected]>---
Hello,Quoted 1 line · Russell King - ARM Linux
We must reduce the size of
arch/armby all means possible.
Quoted 7 lines
Quoted 3 lines
What about this? You considered to do this some time ago[1] already and I asked to wait because Digi planned to continue the mainline efforts around spring 2010.
I was in contact with someone at Digi and he told me there are no mainline activies planned.
Patch system?
Ok.
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Russell King - ARM LinuxHi Russell,
Quoted 9 lines · Russell King - ARM Linux
Quoted 7 lines · Uwe Kleine-K?nig
Quoted 4 lines
#if !defined(CONFIG_ARM_PATCH_PHYS_VIRT)
#ifCONFIG_ARCH_MX1+CONFIG_MACH_MX21+ ... > 1
#error Invalid configuration - unable to handle different phys base addresses #endifSame problem (and I guess it yields some cpp warnings about
CONFIG_ARCH_MX1not being defined for an i.MX21-only build, but I didn't test).
Quoted 5 lines
Well then,
#if (
CONFIG_ARCH_MX1|CONFIG_MACH_MX21) + (...) + ... > 1where each group of | cover those which share the same phys base.
Well, the idea was to auto-catch a mismatch somehow. If I have to know the exact groups I can better put the needed logic into mxc's Kconfig file.
Quoted 2 lines
No idea what those are because each MX SoC hides its phys base behind some SoC private definition. This is definitely a case where more
Apart from defining PLAT_PHYS_OFFSET these symbols are used in the machine files to define .boot_params. This is better than repeating the bare numbers, isn't it?
Quoted 3 lines
preprocessor junk reduces the code readability and makes it harder to understand. Removal of preprocessor indirection sounds like a candidate for the consolidation effort to me.
I didn't intend to continue to try catching this error. The current arch/arm/plat-mxc/include/mach/memory.h looks ok for me. I assume you concur?
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 3 lines · Uwe Kleine-K?nig
Apart from defining
PLAT_PHYS_OFFSETthese symbols are used in the machine files to define .boot_params. This is better than repeating the bare numbers, isn't it?
Sure.
Quoted 2 lines
The current
arch/arm/plat-mxc/include/mach/memory.hlooks ok for me. I assume you concur?
Maybe you should replace CONFIG_RUNTIME_PHYS_OFFSET with CONFIG_ARM_PATCH_PHYS_VIRT in that file.
Nicolas
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Hi Nicolas,
Quoted 6 lines · Nicolas Pitre
Quoted 3 lines · Uwe Kleine-K?nig
Apart from defining
PLAT_PHYS_OFFSETthese symbols are used in the machine files to define .boot_params. This is better than repeating the bare numbers, isn't it?
Quoted 7 lines
Sure.
Quoted 2 lines
The current
arch/arm/plat-mxc/include/mach/memory.hlooks ok for me. I assume you concur?Maybe you should replace
CONFIG_RUNTIME_PHYS_OFFSETwithCONFIG_ARM_PATCH_PHYS_VIRTin that file.
This is already commited to my private repo.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Uwe Kleine-König2011/4/11 Uwe Kleine-K?nig <[email protected]>:
Quoted 10 lines · Nicolas Pitre
Quoted 9 lines · Uwe Kleine-K?nig
Quoted 3 lines
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. ?It's in mainline and fully functional.
Quoted 7 lines
I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch. Currently you can build a kernel for i.MX51 + i.MX53 but IIRC it works on no machine. When considering
ARM_PATCH_PHYS_VIRTthere are more SoCs that could be built into a single image and so needs a more complicated logic. And I don't want to depend onARM_PATCH_PHYS_VIRT(yet), e.g. because it's new and still depends on EXPERIMENTAL.
Uwe, did you enable CONFIG_AUTO_ZRELADDR=y? Besides this if use uboot to load uImage and run, it also need fix uboot since uImage will hard code the load address.
In other word, uImage will have mx53 PHY_OFFSET for both mx51 and mx53, which will
make mx51 failed with bootm command.
BR,
Jason
Quoted 14 lines
Best regards
Uwe--
Pengutronix e.K. ? ? ? ? ? ? ? ? ? ? ? ? ? | Uwe Kleine-K?nig ? ? ? ? ? ?| Industrial Linux Solutions ? ? ? ? ? ? ? ? | http://www.pengutronix.de/ ?|_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Hello Jason,
Quoted 19 lines · Jason Liu
2011/4/11 Uwe Kleine-K?nig <[email protected]>:
Quoted 10 lines · Nicolas Pitre
Quoted 9 lines · Uwe Kleine-K?nig
Quoted 3 lines
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. ?It's in mainline and fully functional.Quoted 7 lines
I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch. Currently you can build a kernel for i.MX51 + i.MX53 but IIRC it works on no machine. When considering
ARM_PATCH_PHYS_VIRTthere are more SoCs that could be built into a single image and so needs a more complicated logic. And I don't want to depend onARM_PATCH_PHYS_VIRT(yet), e.g. because it's new and still depends on EXPERIMENTAL.
Quoted 6 lines
Uwe, did you enable
CONFIG_AUTO_ZRELADDR=y? Besides this if use uboot to load uImage and run, it also need fix uboot since uImage will hard code the load address.
In other word, uImage will have mx53PHY_OFFSETfor both mx51 and mx53, which will
make mx51 failed with bootm command.
an uboot image (at least the ones created by the kernel build system's make uImage) is more system dependant than the kernel image itself. There is nothing that can be fixed considering that Russell doesn't want more sophisticated support for u-boot images for ARM.
So you have to create the uImage yourself.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 28 lines · Uwe Kleine-K?nig
Hello Jason,
Quoted 19 lines · Jason Liu
2011/4/11 Uwe Kleine-K?nig <[email protected]>:
Quoted 10 lines · Nicolas Pitre
Quoted 9 lines · Uwe Kleine-K?nig
Quoted 3 lines
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.Really?
Have a look at
CONFIG_ARM_PATCH_PHYS_VIRT. ?It's in mainline and fully functional.Quoted 7 lines
I'm aware of this config item. But still if it's off there must be a distinction that's provided by this patch. Currently you can build a kernel for i.MX51 + i.MX53 but IIRC it works on no machine. When considering
ARM_PATCH_PHYS_VIRTthere are more SoCs that could be built into a single image and so needs a more complicated logic. And I don't want to depend onARM_PATCH_PHYS_VIRT(yet), e.g. because it's new and still depends on EXPERIMENTAL.Quoted 6 lines
Uwe, did you enable
CONFIG_AUTO_ZRELADDR=y? Besides this if use uboot to load uImage and run, it also need fix uboot since uImage will hard code the load address.
In other word, uImage will have mx53PHY_OFFSETfor both mx51 and mx53, which will
make mx51 failed with bootm command.
Quoted 5 lines
an uboot image (at least the ones created by the kernel build system's make uImage) is more system dependant than the kernel image itself. There is nothing that can be fixed considering that Russell doesn't want more sophisticated support for u-boot images for ARM.
So you have to create the uImage yourself.
The U-Boot image format is broken for multi-SOC kernels. It insists on having an absolute address for the placement of that image in RAM when loaded which prevents you from using a single kernel image on multiple SOCs with different RAM offsets.
The solution is to stop using uImage and simply load a standard kernel zImage at the appropriate place in memory according to the hardware you have. And if your zImage is built with CONFIG_AUTO_ZRELADDR and CONFIG_ARM_PATCH_PHYS_VIRT then it'll be able to detect and use a different PHYS_OFFSET values with the same kernel binary.
Nicolas
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Uwe Kleine-KönigOn Sun, Apr 10, 2011 at 09:49:01PM +0200, Uwe Kleine-K?nig wrote:
[...]
Quoted 19 lines
arch/arm/plat-mxc/Kconfig +6
-0@@ -4,6 +4,12 @@ source "arch/arm/plat-mxc/devices/Kconfig" menu "Freescale MXC Implementations" +config ARCH_MX50_SUPPORTED + bool + +config ARCH_MX53_SUPPORTED + bool + choice prompt "Set of supported SoCs:" default ARCH_MX3@@ -36,8 +42,17 @@ config ARCH_MX3 This enables support for machines using Freescale's i.MX31 and i.MX35
arch/arm/plat-mxc/Kconfig config ARCH_MX3 · line 50
Quoted 10 lines
arch/arm/plat-mxc/Kconfig +6
-2processors. -config ARCH_MX5 - bool "MX5-based" +config ARCH_MX503 + bool "i.MX50 + i.MX53" + select ARCH_MX50_SUPPORTED + select ARCH_MX53_SUPPORTED + help + This enables support for machines using Freescale's i.MX50 and i.MX51
s/MX51/MX53/
Signature · 2 lines
Regards, Shawn
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Hi Shawn,
Quoted 4 lines · Shawn Guo
On Sun, Apr 10, 2011 at 09:49:01PM +0200, Uwe Kleine-K?nig wrote:
[...]arch/arm/plat-mxc/Kconfig config ARCH_MX3 · line 50
Quoted 1 line
arch/arm/plat-mxc/Kconfig +1
-0+ This enables support for machines using Freescale's i.MX50 and i.MX51s/MX51/MX53/
yeah, thanks, as you're not the first one to point this out I already sent a fixup to Sascha.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
2011/4/13 Uwe Kleine-K?nig <[email protected]>:
Quoted 9 lines
Hi Shawn,
Quoted 4 lines · Shawn Guo
On Sun, Apr 10, 2011 at 09:49:01PM +0200, Uwe Kleine-K?nig wrote:
[...]Quoted 1 line
+ ? ? This enables support for machines using Freescale's i.MX50 and i.MX51
s/MX51/MX53/
yeah, thanks, as you're not the first one to point this out I already sent a fixup to Sascha.
Can someone confirm the following for me (Uwe probably as it's his patch most recently)
CONFIG_RUNTIME_PHYS_OFFSETCONFIG_ARM_PATCH_PHYS_VIRT
These two config options, with absolutely no bootloader changes, will basically mask off some address (instruction pointer?) at the time of the check and therefore derive a perfectly good PHYS_OFFSET at runtime and make sure it is in use... within some limits (first 128MB, assumes that start of memory is at some particular alignment)?
I am confused about Nicolas' CONFIG_AUTO_ZRELADDR comment and how this applies. I am working out a way to have U-Boot ignore the hardcoded image entry point in a uImage to enable the above.
I consider that the problem with the above is not so much with supporting multiple SoCs in the same kernel of the same pedigree (MX5x) but with completely different vendor SoCs and anything where PHYS_OFFSET is somehow differently masked off of the abovementioned address. I noticed in a patch somewhere last night that if MACH_MX5 is enabled, it uses 'and' instead of 'andne' to perform the masking. This will basically mean the derived address is still entirely CPU specific... unless I am out of date on the patches I am reviewing..
Uwe you had a patch about a year ago that passed PHYS_OFFSET in r3, that isn't true anymore? Is there potential for an override, such that if if r3 is set and valid, it is used, if not a determination is made at runtime which may possibly fail? Is compiling an unbootable kernel for an old firmware an acceptable scenario for the edge case where MX50, MX51, MX53 are in the kernel along with.. say.. OMAP? Wouldn't we consider this a distro tool problem and not a kernel problem?
Signature · 2 lines
Matt Sealey <[email protected]> Product Development Analyst, Genesi USA, Inc.
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 4 lines
address. I noticed in a patch somewhere last night that if
MACH_MX5is enabled, it uses 'and' instead of 'andne' to perform the masking. This will basically mean the derived address is still entirely CPU specific... unless I am out of date on the patches I am reviewing..
Just backing myself up with the patch I'm referencing.
Curious question, where is the canonical tree-to-look-at for the patches we're talking about? I don't feel comfortable at all referencing a BSP kernel on a mainline mailing list :D
-- -
Matt Sealey <[email protected]>
Product Development Analyst, Genesi USA, Inc.
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Matt SealeyQuoted 7 lines · Matt Sealey
2011/4/13 Uwe Kleine-K?nig <[email protected]>:
Quoted 6 lines
Hi Shawn,
Quoted 3 lines · Shawn Guo
On Sun, Apr 10, 2011 at 09:49:01PM +0200, Uwe Kleine-K?nig wrote:
[...]Quoted 1 line
+ ? ? This enables support for machines using Freescale's i.MX50 and i.MX51
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
s/MX51/MX53/
yeah, thanks, as you're not the first one to point this out I already sent a fixup to Sascha.
Can someone confirm the following for me (Uwe probably as it's his patch most recently)
CONFIG_RUNTIME_PHYS_OFFSET
RUNTIME_PHYS_OFFSET didn't made it into mainline and is superseded by ARM_PATCH_PHYS_VIRT.
Quoted 11 lines
CONFIG_ARM_PATCH_PHYS_VIRTThese two config options, with absolutely no bootloader changes, will basically mask off some address (instruction pointer?) at the time of the check and therefore derive a perfectly good
PHYS_OFFSETat runtime and make sure it is in use... within some limits (first 128MB, assumes that start of memory is at some particular alignment)?I am confused about Nicolas'
CONFIG_AUTO_ZRELADDRcomment and how this applies. I am working out a way to have U-Boot ignore the hardcoded image entry point in a uImage to enable the above.
ARM_PATCH_PHYS_VIRT is a feature of the Image, AUTO_ZRELADDR is a feature of the zImage. It solves more or less the same thing (and IIRC RUNTIME_PHYS_OFFSET did both). So AUTO_ZRELADDR is only needed when booting a zImage.
And IIRC U-Boot can boot zImages directly nowerdays. So this is probably the better way to test that hacking it to ignore the image headers.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Matt SealeyQuoted 7 lines · Matt Sealey
CONFIG_ARM_PATCH_PHYS_VIRTThese two config options, with absolutely no bootloader changes, will basically mask off some address (instruction pointer?) at the time of the check and therefore derive a perfectly good
PHYS_OFFSETat runtime and make sure it is in use... within some limits (first 128MB, assumes that start of memory is at some particular alignment)?
The V:P fixup will only handle bits 31-24, or 31-16 if the ARM_PATCH_PHYS_VIRT_16BIT option is selected (for MSM). If the offset doesn't wholy fit into these, then the fixup function will complain and your kernel won't boot. So, it'll go down to 64K alignment.
It does rely on the kernel being placed correctly in memory. So if the start of the kernel text is built to be 32K above PAGE_OFFSET, then the kernel will assume that physical memory starts 32K below where the 'Image' ended up in physical memory. If you place the kernel in physical memory 16MB above the start, then it'll assume that physical memory starts 16MB above where it actually did.
There is one thing to watch out for though - if you did place it 16MB above, but still tell the kernel via ATAGs that the physical memory starts where it really does, then I'd expect things to explode as the kernel direct mapped memory would likely extend below PAGE_OFFSET.
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 14 lines · Russell King - ARM Linux
Quoted 7 lines · Matt Sealey
CONFIG_ARM_PATCH_PHYS_VIRTThese two config options, with absolutely no bootloader changes, will basically mask off some address (instruction pointer?) at the time of the check and therefore derive a perfectly good
PHYS_OFFSETat runtime and make sure it is in use... within some limits (first 128MB, assumes that start of memory is at some particular alignment)?The V:P fixup will only handle bits 31-24, or 31-16 if the
ARM_PATCH_PHYS_VIRT_16BIToption is selected (for MSM). If the offset doesn't wholy fit into these, then the fixup function will complain and your kernel won't boot. So, it'll go down to 64K alignment.
Quoted 6 lines
It does rely on the kernel being placed correctly in memory. So if the start of the kernel text is built to be 32K above
PAGE_OFFSET, then the kernel will assume that physical memory starts 32K below where the 'Image' ended up in physical memory. If you place the kernel in physical memory 16MB above the start, then it'll assume that physical memory starts 16MB above where it actually did.
If CONFIG_AUTO_ZRELADDR is set, then zImage will automatically place the kernel Image correctly in memory, assuming that zImage is itself loaded within the first 128MB of memory.
Quoted 4 lines
There is one thing to watch out for though - if you did place it 16MB above, but still tell the kernel via ATAGs that the physical memory starts where it really does, then I'd expect things to explode as the kernel direct mapped memory would likely extend below
PAGE_OFFSET.
Yeah... We should probably add a warning and truncate the beginning of the memory bank in that case. This would also prevent memory from being wrongly declared below PHYS_OFFSET even without the P2V feature enabled.
Nicolas
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 23 lines · Nicolas Pitre
Quoted 14 lines · Russell King - ARM Linux
Quoted 7 lines · Matt Sealey
CONFIG_ARM_PATCH_PHYS_VIRTThese two config options, with absolutely no bootloader changes, will basically mask off some address (instruction pointer?) at the time of the check and therefore derive a perfectly good
PHYS_OFFSETat runtime and make sure it is in use... within some limits (first 128MB, assumes that start of memory is at some particular alignment)?The V:P fixup will only handle bits 31-24, or 31-16 if the
ARM_PATCH_PHYS_VIRT_16BIToption is selected (for MSM). If the offset doesn't wholy fit into these, then the fixup function will complain and your kernel won't boot. So, it'll go down to 64K alignment.Quoted 6 lines
It does rely on the kernel being placed correctly in memory. So if the start of the kernel text is built to be 32K above
PAGE_OFFSET, then the kernel will assume that physical memory starts 32K below where the 'Image' ended up in physical memory. If you place the kernel in physical memory 16MB above the start, then it'll assume that physical memory starts 16MB above where it actually did.
Quoted 3 lines
If
CONFIG_AUTO_ZRELADDRis set, then zImage will automatically place the kernel Image correctly in memory, assuming that zImage is itself loaded within the first 128MB of memory.
I was only covering the requirements of the Image, rather than zImage which you covered in a subsequent message.
Quoted 8 lines
Quoted 4 lines
There is one thing to watch out for though - if you did place it 16MB above, but still tell the kernel via ATAGs that the physical memory starts where it really does, then I'd expect things to explode as the kernel direct mapped memory would likely extend below
PAGE_OFFSET.Yeah... We should probably add a warning and truncate the beginning of the memory bank in that case. This would also prevent memory from being wrongly declared below
PHYS_OFFSETeven without the P2V feature enabled.
We don't encouter the situation today, so lets leave it until we actually have a problem. There's no point bloating the kernel with such checks if they're never going to fire.
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
Quoted 7 lines · Russell King - ARM Linux
Quoted 3 lines · Nicolas Pitre
If
CONFIG_AUTO_ZRELADDRis set, then zImage will automatically place the kernel Image correctly in memory, assuming that zImage is itself loaded within the first 128MB of memory.I was only covering the requirements of the Image, rather than zImage which you covered in a subsequent message.
Sorry if I already covered that. I'm jet-lagged at the moment and my memory is fuzzy.
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
There is one thing to watch out for though - if you did place it 16MB above, but still tell the kernel via ATAGs that the physical memory starts where it really does, then I'd expect things to explode as the kernel direct mapped memory would likely extend below
PAGE_OFFSET.
Quoted 7 lines
Quoted 3 lines
Yeah... We should probably add a warning and truncate the beginning of the memory bank in that case. This would also prevent memory from being wrongly declared below
PHYS_OFFSETeven without the P2V feature enabled.We don't encouter the situation today, so lets leave it until we actually have a problem. There's no point bloating the kernel with such checks if they're never going to fire.
OK.
Nicolas
PATCH 4/6 ARM: mxc: don't allow to compile together i.MX51 and i.MX53
In reply to Uwe Kleine-König2011/4/11 Uwe Kleine-K?nig <[email protected]>:
Quoted 2 lines
The two SoCs have different
PHYS_OFFSETsso it's not (yet) possible to compile a single (working) kernel for these.
[...]
Review
Quoted 8 lines
(quoted diff) +6
-2-config ARCH_MX5 - ? ? ? bool "MX5-based" +config ARCH_MX503 + ? ? ? bool "i.MX50 + i.MX53" + ? ? ? select ARCH_MX50_SUPPORTED + ? ? ? select ARCH_MX53_SUPPORTED + ? ? ? help +
I don't think it's a good calling about such ARCH_MX503 here, it will be confused.
As FSL have mx508 and mx505 something like that SOC naming.
[...]
Quoted 9 lines
--
1.7.2.3_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 5/6 ARM: mx3: make ioremap quirk ready for multi-SoC kernels
In reply to Uwe Kleine-KönigTo be able to compile e.g. i.MX31 and i.MX51 in a single kernel image the ioremap quirk needs a runtime check.
While touching this code make the comment more understandable by adding a sentence from the commit log that introduced it
(eadefef ([ARM] MX3: Use ioremap wrapper to map SoC devices nonshared)).
As mach/io.h now uses cpu_is_ some header reshuffling in mach/hardware.h was necessary. (mach/mx27.h and mach/mx31.h #include <linux/io.h> which \#includes <mach/io.h>. So mach/mxc.h which provides the cpu_is_ macros needs to be included before mach/mx27.h and mach/mx31.h.)
--- arch/arm/plat-mxc/include/mach/hardware.h | 4 ++-- arch/arm/plat-mxc/include/mach/io.h | 23 +++++++++++++++-------- 2 files changed, 17 insertions(+), 10 deletions(-)
arch/arm/plat-mxc/include/mach/hardware.h +2 -2
@@ -95,6 +95,8 @@#define IMX_IO_ADDRESS (x) IOMEM(IMX_IO_P2V(x)) +#include <mach/mxc.h> +#ifdef CONFIG_ARCH_MX5 #include <mach/mx50.h> #include <mach/mx51.h>
@@ -125,8 +127,6 @@# include <mach/mx25.h> #endif -#include <mach/mxc.h> -#define imx_map_entry (soc, name, _type) { \ .virtual = soc ## _IO_P2V(soc ## _ ## name ## _BASE_ADDR), \ .pfn = __phys_to_pfn(soc ## _ ## name ## _BASE_ADDR), \
arch/arm/plat-mxc/include/mach/io.h +15 -8
@@ -14,19 +14,26 @@/* Allow IO space to be anywhere in the memory */ #define IO_SPACE_LIMIT 0xffffffff -#ifdef CONFIG_ARCH_MX3 -#define __arch_ioremap __mx3_ioremap +#if defined(CONFIG_SOC_IMX31 ) || defined(CONFIG_SOC_IMX35 ) +#include <mach/hardware.h> + +#define __arch_ioremap __imx_ioremap#define __arch_iounmap __iounmap +#define addr_in_module (addr, mod) \ + ((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE) +static inline void __iomem * -__mx3_ioremap (unsigned long phys_addr,size_t size,unsigned int mtype) +__imx_ioremap (unsigned long phys_addr,size_t size,unsigned int mtype) { -if (mtype ==MT_DEVICE ) { -/* Access all peripherals below 0x80000000 as nonshared device -* but leave l2cc alone. +if (mtype ==MT_DEVICE && (cpu_is_mx31 () ||cpu_is_mx35 ())) { +/* +* Access all peripherals below 0x80000000 as nonshared device +* on mx3, but leave l2cc alone. Otherwise cache corruptions +* can occur. */ -if ((phys_addr <0x80000000 ) && ((phys_addr <0x30000000 ) || - (phys_addr >=0x30000000 +SZ_1M ))) +if (phys_addr <0x80000000 && + !addr_in_module (phys_addr, MX3x_L2CC)) mtype =MT_DEVICE_NONSHARED ; }
Signature · 1 line
1.7.2.3
PATCH 6/6 ARM: imx: remove some deprecated and unused #defines
In reply to Uwe Kleine-König--- arch/arm/plat-mxc/include/mach/mxc.h | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)
arch/arm/plat-mxc/include/mach/mxc.h +0 -7
@@ -194,13 +194,6 @@ enum mxc_cpu_pwr_mode {extern struct cpu_op *(*get_cpu_op)(int *op);#endif -#if defined(CONFIG_ARCH_MX3 ) || defined(CONFIG_ARCH_MX2 ) -/* These are deprecated, use mx[23][157]_setup_weimcs instead. */ -#define CSCR_U (n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10)) -#define CSCR_L (n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10 + 0x4)) -#define CSCR_A (n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10 + 0x8)) -#endif -#define cpu_is_mx3 () (cpu_is_mx31() || cpu_is_mx35())#define cpu_is_mx2 () (cpu_is_mx21() || cpu_is_mx27())
Signature · 1 line
1.7.2.3
PATCH 1/6 ARM: mxc: update defconfigs
In reply to Uwe Kleine-KönigHi Uwe,
Quoted 1 line · Uwe Kleine-K?nig
[...]
Quoted 7 lines
Signed-off-by Uwe Kleine-K?nig <[email protected]>--- arch/arm/configs/mx1_defconfig | 11 +++----- arch/arm/configs/mx21_defconfig | 8 +++--- arch/arm/configs/mx27_defconfig | 45 ++++++++++++++++++++++++++++---- arch/arm/configs/mx3_defconfig | 40 +++++++++++++++++++++-------- arch/arm/configs/mx51_defconfig | 53 +++++++++++++++++++++++++++++++-------
Would you consider to enable mx5 ESDHC by default? I guess Linaro will appreciate it, as they are using ext3 rootfs on SD/MMC for their releases.
Signature · 2 lines
Regards, Shawn
PATCH 1/6 ARM: mxc: update defconfigs
Quoted 13 lines · Shawn Guo
Hi Uwe,
Quoted 1 line · Uwe Kleine-K?nig
[...]
Quoted 7 lines
Signed-off-by Uwe Kleine-K?nig <[email protected]>--- arch/arm/configs/mx1_defconfig | 11 +++----- arch/arm/configs/mx21_defconfig | 8 +++--- arch/arm/configs/mx27_defconfig | 45 ++++++++++++++++++++++++++++---- arch/arm/configs/mx3_defconfig | 40 +++++++++++++++++++++-------- arch/arm/configs/mx51_defconfig | 53 +++++++++++++++++++++++++++++++-------
Quoted 3 lines
Would you consider to enable mx5 ESDHC by default? I guess Linaro will appreciate it, as they are using ext3 rootfs on SD/MMC for their releases.
I assume this means
+CONFIG_MMC_SDHCI_PLTFM=m
+CONFIG_MMC_SDHCI_ESDHC_IMX=y
seems sensible for mx3, too. I will look after that.
Thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH v2 1/1 ARM: mxc: update defconfigs
- enable new machines:
- IMX27IPCAM (mx27)
- VPR200 (mx3)
- EUKREA_CPUIMX51SD (mx51)
- MX51_EFIKAMX (mx51)
- MX51_EFIKASB (mx51)
- disable SYSFS_DEPRECATED_V2 (mx1, mx21, mx3)
- enable CPU_IDLE (mx27)
- enable MXC_PWM (mx1, mx51)
- drop PM=y, defaults to y since
1eb208a (PM: Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME))
(mx1, mx27, mx3, mx51)
- enable CAN_MCP251X (mx27, mx51) and CAN_SJA1000 (mx27)
- enable MTD_NAND_MXC and UBI (mx51)
- add MISC_DEVICES=y, defaults to n since
5f2365d (misc devices: do not enable by default)
(EEPROM_AT24 depends on MISC_DEVICES) (mx27, mx3)
or drop MISC_DEVICES=n (mx1, mx51)
- enable EEPROM_AT25 (mx27)
- drop INOTIFY; is gone since
2dfc1ca (inotify: remove inotify in kernel interface)
(mx1)
- drop VGA_CONSOLE; isn't selectable on imx any more since fb78b51 (ARM: Disable VGA console for ARM in most cases) (mx21)
- drop FEC=y, defaults to y since
085e79e (net/fec: consolidate all i.MX options to CONFIG_ARM)
(mx27, mx3, mx51)
- drop CRYPTO_ANSI_CPRNG=n; depends on CRYPTO which is unset (mx1)
- drop VIDEO_ALLOW_V4L1=n; gone since
58c66df ([media] Remove VIDEO_V4L1 Kconfig option)
(mx3)
- enable mc13xxx including regulator, rtc, touch and led (mx27, mx3, mx51)
- enable KEYBOARD_GPIO (mx27, mx3) and KEYBOARD_IMX (mx27, mx3, mx51)
- drop SERIO=n as KEYBOARD_ATKBD (default y since INPUT=y) selects SERIO (mx27, mx3)
- enable I2C_IMX and SPI_IMX (mx51)
- enable SND_IMX_SOC including platfrom glue (mx27, mx3, mx51)
- enable SOC_CAMERA_MT9{T031,V022} (mx27)
- enable VIDEO_MX2 (mx27)
- enable LEDS_GPIO and LEDS_PWM (mx27, mx3, mx51)
- enable USB_EHCI_MXC (mx27)
- enable IMX_DMA (mx1, mx21, mx27)
- enable IMX_SDMA (mx3, mx51)
- RCU_CPU_STALL_DETECTOR isn't selectable any more since
687d7a9 (rcu: restrict TREE_RCU to SMP builds with !PREEMPT)
(mx51)
- MMC_MXC isn't selectable any more since
170cba8 (mmc: mmc_mxc: Allow selection only for the correct platforms)
(mx1)
- drop MTD_CONCAT; gone since
f53fdeb (mtd: drop MTD_CONCAT from Kconfig entirely)
(mx51)
- drop AUTOFS_FS=y; is in staging since
db7bee2 (autofs3: move to drivers/staging)
(mx51)
- change CRYPTO_DEFLATE and CRYPTO_LZO to =m as they depend on CRYPTO since
cce9e06 ([CRYPTO] api: Split out low-level API)
and CRYPTO is only =m. (mx51)
- enable MMC_SDHCI_ESDHC_IMX (mx3, mx51)
---
changes since v1:
enable MMC_SDHCI_ESDHC_IMX (mx3, mx51)
arch/arm/configs/mx1_defconfig | 11 +++----- arch/arm/configs/mx21_defconfig | 8 +++--- arch/arm/configs/mx27_defconfig | 45 +++++++++++++++++++++++++++---- arch/arm/configs/mx3_defconfig | 43 ++++++++++++++++++++++-------- arch/arm/configs/mx51_defconfig | 55 +++++++++++++++++++++++++++++++------- 5 files changed, 124 insertions(+), 38 deletions(-)
arch/arm/configs/mx1_defconfig +4 -7
@@ -3,7 +3,6 @@ CONFIG_SYSVIPC=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 -CONFIG_SYSFS_DEPRECATED_V2=y CONFIG_EXPERT=y CONFIG_SLAB=y CONFIG_MODULES=y
@@ -16,6 +15,7 @@ CONFIG_ARCH_MX1=y CONFIG_ARCH_MX1ADS=y CONFIG_MACH_SCB9328=y CONFIG_MXC_IRQ_PRIOR=y +CONFIG_MXC_PWM=y CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y CONFIG_PREEMPT=y
@@ -23,7 +23,6 @@ CONFIG_AEABI=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="noinitrd console=ttymxc0,115200 root=/dev/mtdblock2 rw ip=off" -CONFIG_PM=y CONFIG_PM_DEBUG=y CONFIG_NET=y CONFIG_PACKET=y
@@ -47,7 +46,6 @@ CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_PHYSMAP=y # CONFIG_BLK_DEV is not set -# CONFIG_MISC_DEVICES is not set CONFIG_NETDEVICES=y CONFIG_PHYLIB=y CONFIG_SMSC_PHY=y
@@ -58,9 +56,9 @@ CONFIG_DM9000=y # CONFIG_INPUT is not set # CONFIG_SERIO is not set # CONFIG_VT is not set +# CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_IMX=y CONFIG_SERIAL_IMX_CONSOLE=y -# CONFIG_LEGACY_PTYS is not set # CONFIG_HW_RANDOM is not set CONFIG_I2C=y CONFIG_I2C_CHARDEV=y
@@ -74,9 +72,9 @@ CONFIG_USB_GADGET=y CONFIG_USB_GADGET_IMX=y CONFIG_USB_ETH=m CONFIG_MMC=y -CONFIG_MMC_MXC=y +CONFIG_DMADEVICES=y +CONFIG_IMX_DMA=y # CONFIG_DNOTIFY is not set -CONFIG_INOTIFY=y CONFIG_TMPFS=y CONFIG_JFFS2_FS=y CONFIG_NFS_FS=y
@@ -87,4 +85,3 @@ CONFIG_ROOT_NFS=y # CONFIG_ENABLE_MUST_CHECK is not set # CONFIG_RCU_CPU_STALL_DETECTOR is not set CONFIG_SYSCTL_SYSCALL_CHECK=y -# CONFIG_CRYPTO_ANSI_CPRNG is not set
arch/arm/configs/mx21_defconfig +4 -4
@@ -2,7 +2,6 @@ CONFIG_EXPERIMENTAL=y # CONFIG_SWAP is not set CONFIG_SYSVIPC=y CONFIG_LOG_BUF_SHIFT=14 -CONFIG_SYSFS_DEPRECATED_V2=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_EXPERT=y CONFIG_KALLSYMS_EXTRA_PASS=y
@@ -51,8 +50,8 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_MXC=y CONFIG_NETDEVICES=y -CONFIG_NET_ETHERNET=y CONFIG_MII=y +CONFIG_NET_ETHERNET=y # CONFIG_NETDEV_1000 is not set # CONFIG_NETDEV_10000 is not set # CONFIG_INPUT_MOUSEDEV is not set
@@ -62,12 +61,12 @@ CONFIG_INPUT_EVDEV=y CONFIG_INPUT_TOUCHSCREEN=y # CONFIG_SERIO is not set # CONFIG_CONSOLE_TRANSLATIONS is not set +# CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_NR_UARTS=1 CONFIG_SERIAL_IMX=y CONFIG_SERIAL_IMX_CONSOLE=y -# CONFIG_LEGACY_PTYS is not set # CONFIG_HW_RANDOM is not set CONFIG_I2C=y CONFIG_I2C_CHARDEV=y
@@ -76,7 +75,6 @@ CONFIG_SPI=y # CONFIG_HWMON is not set CONFIG_FB=y CONFIG_FB_IMX=y -# CONFIG_VGA_CONSOLE is not set CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FONTS=y CONFIG_FONT_8x8=y
@@ -85,6 +83,8 @@ CONFIG_LOGO=y # CONFIG_USB_SUPPORT is not set CONFIG_MMC=y CONFIG_MMC_MXC=y +CONFIG_DMADEVICES=y +CONFIG_IMX_DMA=y # CONFIG_DNOTIFY is not set CONFIG_MSDOS_FS=y CONFIG_TMPFS=y
arch/arm/configs/mx27_defconfig +39 -6
102 lines not on this page · raw message
arch/arm/configs/mx3_defconfig +32 -11
109 lines not on this page · raw message
arch/arm/configs/mx51_defconfig +45 -10
140 lines not on this page · raw message
Signature · 1 line
1.7.2.3
PATCH 1/6 ARM: mxc: update defconfigs
In reply to Uwe Kleine-KönigQuoted 14 lines · Uwe Kleine-K?nig
Quoted 13 lines · Shawn Guo
Hi Uwe,
Quoted 1 line · Uwe Kleine-K?nig
[...]
Quoted 7 lines
Signed-off-by Uwe Kleine-K?nig <[email protected]>--- arch/arm/configs/mx1_defconfig | 11 +++----- arch/arm/configs/mx21_defconfig | 8 +++--- arch/arm/configs/mx27_defconfig | 45 ++++++++++++++++++++++++++++---- arch/arm/configs/mx3_defconfig | 40 +++++++++++++++++++++-------- arch/arm/configs/mx51_defconfig | 53 +++++++++++++++++++++++++++++++-------
Quoted 8 lines
Quoted 3 lines
Would you consider to enable mx5 ESDHC by default? I guess Linaro will appreciate it, as they are using ext3 rootfs on SD/MMC for their releases.
I assume this means
+CONFIG_MMC_SDHCI_PLTFM=m
+CONFIG_MMC_SDHCI_ESDHC_IMX=y
To get the system up with rootfs mounted on SD/MMC, I have to do the following.
CONFIG_MMC_BLOCK=yCONFIG_MMC_SDHCI=yCONFIG_MMC_SDHCI_PLTFM=yCONFIG_MMC_SDHCI_ESDHC_IMX=y
Signature · 2 lines
Regards, Shawn