Skip to contentSkip to conversation

arm: mxs: Various mxs_defconfig adjustments

PATCH New Marek Vasut 2 participants 13 messages Dec 19, 2012 – Dec 21, 2012

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

cover arm: mxs: Various mxs_defconfig adjustments

This patchset enables various config options, mostly needed to get MX28EVK and M28EVK decently working.

Marek Vasut (8):
arm: mxs: Regenerate mxs_defconfig to match recent kernel
arm: mxs: Enable MTD block access
arm: mxs: Enable UBI and UBIFS
arm: mxs: Enable JFFS2
arm: mxs: Enable EXT2 and EXT4
arm: mxs: Enable AT24 EEPROM support
arm: mxs: Enable support for most SPI flashes
arm: mxs: Enable most commonly used PHYs

 arch/arm/configs/mxs_defconfig |   63 +++++++++++++++++++---------------------
 1 file changed, 30 insertions(+), 33 deletions(-)
Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/8 arm: mxs: Regenerate mxs_defconfig to match recent kernel

This patch is a result of:
make mxs_defconfig
make savedefconfig
cp defconfig arch/arm/configs/mxs_defconfig

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |   42 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 31 deletions(-)
arch/arm/configs/mxs_defconfig +11 -31
index 048aaca..fdb92e1 100644
@@ -1,5 +1,7 @@
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
+CONFIG_NO_HZ=y
+CONFIG_HIGH_RES_TIMERS=y
 CONFIG_TASKSTATS=y
 CONFIG_TASK_DELAY_ACCT=y
 CONFIG_TASK_XACCT=y
@@ -8,7 +10,6 @@ CONFIG_IKCONFIG=y
 CONFIG_IKCONFIG_PROC=y
 # CONFIG_UTS_NS is not set
 # CONFIG_IPC_NS is not set
-# CONFIG_USER_NS is not set
 # CONFIG_PID_NS is not set
 # CONFIG_NET_NS is not set
 CONFIG_PERF_EVENTS=y
@@ -24,8 +25,6 @@ CONFIG_BLK_DEV_INTEGRITY=y
 CONFIG_ARCH_MXS=y
 CONFIG_MACH_MXS_DT=y
 # CONFIG_ARM_THUMB is not set
-CONFIG_NO_HZ=y
-CONFIG_HIGH_RES_TIMERS=y
 CONFIG_PREEMPT_VOLUNTARY=y
 CONFIG_AEABI=y
 CONFIG_AUTO_ZRELADDR=y
@@ -46,23 +45,21 @@ CONFIG_SYN_COOKIES=y
 CONFIG_CAN=m
 CONFIG_CAN_RAW=m
 CONFIG_CAN_BCM=m
-CONFIG_CAN_DEV=m
 CONFIG_CAN_FLEXCAN=m
 # CONFIG_WIRELESS is not set
 CONFIG_DEVTMPFS=y
 # CONFIG_FIRMWARE_IN_KERNEL is not set
-# CONFIG_BLK_DEV is not set
 CONFIG_MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_CHAR=y
 CONFIG_MTD_DATAFLASH=y
-CONFIG_MTD_M25P80
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_GPMI_NAND=y
+# CONFIG_BLK_DEV is not set
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
-CONFIG_NET_ETHERNET=y
 CONFIG_ENC28J60=y
-# CONFIG_NETDEV_1000 is not set
-# CONFIG_NETDEV_10000 is not set
 # CONFIG_WLAN is not set
 # CONFIG_INPUT_MOUSEDEV_PSAUX is not set
 CONFIG_INPUT_EVDEV=m
@@ -89,21 +86,6 @@ CONFIG_SPI_MXS=y
 CONFIG_DEBUG_GPIO=y
 CONFIG_GPIO_SYSFS=y
 # CONFIG_HWMON is not set
-# CONFIG_MFD_SUPPORT is not set
-CONFIG_DISPLAY_SUPPORT=m
-# CONFIG_HID_SUPPORT is not set
-CONFIG_SOUND=y
-CONFIG_SND=y
-CONFIG_SND_TIMER=y
-CONFIG_SND_PCM=y
-CONFIG_SND_JACK=y
-CONFIG_SND_DRIVERS=y
-CONFIG_SND_ARM=y
-CONFIG_SND_SOC=y
-CONFIG_SND_MXS_SOC=y
-CONFIG_SND_SOC_MXS_SGTL5000=y
-CONFIG_SND_SOC_I2C_AND_SPI=y
-CONFIG_SND_SOC_SGTL5000=y
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_FB=y
@@ -115,13 +97,16 @@ CONFIG_BACKLIGHT_PWM=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
 CONFIG_FONTS=y
 CONFIG_LOGO=y
+CONFIG_SOUND=y
+CONFIG_SND=y
+CONFIG_SND_SOC=y
+CONFIG_SND_MXS_SOC=y
+CONFIG_SND_SOC_MXS_SGTL5000=y
 CONFIG_USB=y
 CONFIG_USB_CHIPIDEA=y
 CONFIG_USB_CHIPIDEA_HOST=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_MXS_PHY=y
-CONFIG_SCSI=y
-CONFIG_BLK_DEV_SD=y
 CONFIG_MMC=y
 CONFIG_MMC_MXS=y
 CONFIG_NEW_LEDS=y
@@ -154,7 +139,6 @@ CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
 # CONFIG_MISC_FILESYSTEMS is not set
 CONFIG_NFS_FS=y
-CONFIG_NFS_V3=y
 CONFIG_NFS_V3_ACL=y
 CONFIG_NFS_V4=y
 CONFIG_ROOT_NFS=y
@@ -164,16 +148,12 @@ CONFIG_MAGIC_SYSRQ=y
 CONFIG_UNUSED_SYMBOLS=y
 CONFIG_DEBUG_KERNEL=y
 CONFIG_LOCKUP_DETECTOR=y
-CONFIG_DETECT_HUNG_TASK=y
 CONFIG_TIMER_STATS=y
 CONFIG_PROVE_LOCKING=y
-CONFIG_DEBUG_SPINLOCK_SLEEP=y
 CONFIG_DEBUG_INFO=y
-CONFIG_SYSCTL_SYSCALL_CHECK=y
 CONFIG_BLK_DEV_IO_TRACE=y
 CONFIG_STRICT_DEVMEM=y
 CONFIG_DEBUG_USER=y
-CONFIG_CRYPTO=y
 CONFIG_CRYPTO_CRC32C=m
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 # CONFIG_CRYPTO_HW is not set
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/8 arm: mxs: Enable MTD block access

In reply to Marek Vasut

When using the SPI flashes, it can be convenient to use MTD block emulation layer to access the flash. Enable the MTD block access.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/mxs_defconfig +1 -0
index fdb92e1..8b4b6c9 100644
@@ -52,6 +52,7 @@ CONFIG_DEVTMPFS=y
 CONFIG_MTD=y
 CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_CHAR=y
+CONFIG_MTD_BLOCK=y
 CONFIG_MTD_DATAFLASH=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_GPMI_NAND=y
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 3/8 arm: mxs: Enable UBI and UBIFS

In reply to Marek Vasut

The UBIFS is commonly used filesystem, enable it.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/configs/mxs_defconfig +3 -1
index 8b4b6c9..69efd38 100644
@@ -56,6 +56,7 @@ CONFIG_MTD_BLOCK=y
 CONFIG_MTD_DATAFLASH=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_GPMI_NAND=y
+CONFIG_MTD_UBI=y
 # CONFIG_BLK_DEV is not set
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
@@ -138,7 +139,8 @@ CONFIG_FSCACHE_STATS=y
 CONFIG_CACHEFILES=m
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
-# CONFIG_MISC_FILESYSTEMS is not set
+CONFIG_UBIFS_FS=y
+CONFIG_UBIFS_FS_ADVANCED_COMPR=y
 CONFIG_NFS_FS=y
 CONFIG_NFS_V3_ACL=y
 CONFIG_NFS_V4=y
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 4/8 arm: mxs: Enable JFFS2

In reply to Marek Vasut

The JFFS2 is very commonly used on NOR flashes. Enable it.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/configs/mxs_defconfig +4 -0
index 69efd38..41b5a74 100644
@@ -139,6 +139,10 @@ CONFIG_FSCACHE_STATS=y
 CONFIG_CACHEFILES=m
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
+CONFIG_JFFS2_FS=y
+CONFIG_JFFS2_COMPRESSION_OPTIONS=y
+CONFIG_JFFS2_LZO=y
+CONFIG_JFFS2_RUBIN=y
 CONFIG_UBIFS_FS=y
 CONFIG_UBIFS_FS_ADVANCED_COMPR=y
 CONFIG_NFS_FS=y
Signature · 1 line
1.7.10.4
#5 lore raw

PATCH 5/8 arm: mxs: Enable EXT2 and EXT4

In reply to Marek Vasut

These filesystems are really basic. Enable them by default.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/configs/mxs_defconfig +3 -1
index 41b5a74..9c2d11d 100644
@@ -132,7 +132,10 @@ CONFIG_COMMON_CLK_DEBUG=y
 CONFIG_IIO=y
 CONFIG_PWM=y
 CONFIG_PWM_MXS=y
+CONFIG_EXT2_FS=y
+CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT3_FS=y
+CONFIG_EXT4_FS=y
 # CONFIG_DNOTIFY is not set
 CONFIG_FSCACHE=m
 CONFIG_FSCACHE_STATS=y
@@ -161,7 +164,6 @@ CONFIG_DEBUG_INFO=y
 CONFIG_BLK_DEV_IO_TRACE=y
 CONFIG_STRICT_DEVMEM=y
 CONFIG_DEBUG_USER=y
-CONFIG_CRYPTO_CRC32C=m
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 # CONFIG_CRYPTO_HW is not set
 CONFIG_CRC_ITU_T=m
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH 6/8 arm: mxs: Enable AT24 EEPROM support

In reply to Marek Vasut

The AT24xxx EEPROMs are very common on MX28 designs, enable support for these.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/mxs_defconfig +1 -0
index 9c2d11d..0b7e466 100644
@@ -58,6 +58,7 @@ CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_GPMI_NAND=y
 CONFIG_MTD_UBI=y
 # CONFIG_BLK_DEV is not set
+CONFIG_EEPROM_AT24=y
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
Signature · 1 line
1.7.10.4
#7 lore raw

PATCH 7/8 arm: mxs: Enable support for most SPI flashes

In reply to Marek Vasut

Enable support for most SPI flashes, usually M25P80. They're used on MX28 designs a lot.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/mxs_defconfig +3 -0
index 0b7e466..2948fec 100644
@@ -54,6 +54,9 @@ CONFIG_MTD_CMDLINE_PARTS=y
 CONFIG_MTD_CHAR=y
 CONFIG_MTD_BLOCK=y
 CONFIG_MTD_DATAFLASH=y
+CONFIG_MTD_M25P80=y
+# CONFIG_M25PXX_USE_FAST_READ is not set
+CONFIG_MTD_SST25L=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_GPMI_NAND=y
 CONFIG_MTD_UBI=y
Signature · 1 line
1.7.10.4
#8 lore raw

PATCH 8/8 arm: mxs: Enable most commonly used PHYs

In reply to Marek Vasut

Enable PHY drivers for mostly commonly used ethernet PHYs on MX28 designs.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/configs/mxs_defconfig +4 -0
index 2948fec..9d30a6b 100644
@@ -66,6 +66,10 @@ CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
 CONFIG_ENC28J60=y
+CONFIG_SMSC_PHY=y
+CONFIG_ICPLUS_PHY=y
+CONFIG_REALTEK_PHY=y
+CONFIG_MICREL_PHY=y
 # CONFIG_WLAN is not set
 # CONFIG_INPUT_MOUSEDEV_PSAUX is not set
 CONFIG_INPUT_EVDEV=m
Signature · 1 line
1.7.10.4
#9 lore raw

cover arm: mxs: Various mxs_defconfig adjustments

In reply to Marek Vasut
Quoted 12 lines · Marek Vasut

This patchset enables various config options, mostly needed to get MX28EVK and M28EVK decently working.

Marek Vasut (8):
arm: mxs: Regenerate mxs_defconfig to match recent kernel
arm: mxs: Enable MTD block access
arm: mxs: Enable UBI and UBIFS
arm: mxs: Enable JFFS2
arm: mxs: Enable EXT2 and EXT4
arm: mxs: Enable AT24 EEPROM support
arm: mxs: Enable support for most SPI flashes
arm: mxs: Enable most commonly used PHYs

It does not need to be so verbose. It can just be one patch.

Shawn

Quoted 10 lines
 arch/arm/configs/mxs_defconfig |   63 +++++++++++++++++++---------------------
 1 file changed, 30 insertions(+), 33 deletions(-)
Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
Signature · 1 line
1.7.10.4
#10 lore raw

cover arm: mxs: Various mxs_defconfig adjustments

Dear Shawn Guo,

Quoted 14 lines · Marek Vasut
Quoted 12 lines

This patchset enables various config options, mostly needed to get MX28EVK and M28EVK decently working.

Marek Vasut (8):
arm: mxs: Regenerate mxs_defconfig to match recent kernel
arm: mxs: Enable MTD block access
arm: mxs: Enable UBI and UBIFS
arm: mxs: Enable JFFS2
arm: mxs: Enable EXT2 and EXT4
arm: mxs: Enable AT24 EEPROM support
arm: mxs: Enable support for most SPI flashes
arm: mxs: Enable most commonly used PHYs

Quoted 1 line

It does not need to be so verbose. It can just be one patch.

Do you prefer one gigantic patch then?

Quoted 8 lines

Shawn

Quoted 6 lines
 arch/arm/configs/mxs_defconfig |   63

+++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 33 deletions(-)

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>

Best regards,
Marek Vasut

#11 lore raw

cover arm: mxs: Various mxs_defconfig adjustments

Quoted 16 lines · Marek Vasut

Dear Shawn Guo,

Quoted 14 lines · Marek Vasut
Quoted 12 lines

This patchset enables various config options, mostly needed to get MX28EVK and M28EVK decently working.

Marek Vasut (8):
arm: mxs: Regenerate mxs_defconfig to match recent kernel
arm: mxs: Enable MTD block access
arm: mxs: Enable UBI and UBIFS
arm: mxs: Enable JFFS2
arm: mxs: Enable EXT2 and EXT4
arm: mxs: Enable AT24 EEPROM support
arm: mxs: Enable support for most SPI flashes
arm: mxs: Enable most commonly used PHYs

Quoted 4 lines
Quoted 1 line

It does not need to be so verbose. It can just be one patch.

Do you prefer one gigantic patch then?

I do not take "1 file changed, 30 insertions(+), 33 deletions(-)" as a gigantic change set, especially when it's on defconfig. Just remember to run savedefconfig before you submit the changes.

Shawn

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
 arch/arm/configs/mxs_defconfig |   63

+++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 33 deletions(-)

#12 lore raw

cover arm: mxs: Various mxs_defconfig adjustments

Dear Shawn Guo,

Quoted 17 lines · Marek Vasut
Quoted 16 lines

Dear Shawn Guo,

Quoted 14 lines · Marek Vasut
Quoted 12 lines

This patchset enables various config options, mostly needed to get MX28EVK and M28EVK decently working.

Marek Vasut (8):
arm: mxs: Regenerate mxs_defconfig to match recent kernel
arm: mxs: Enable MTD block access
arm: mxs: Enable UBI and UBIFS
arm: mxs: Enable JFFS2
arm: mxs: Enable EXT2 and EXT4
arm: mxs: Enable AT24 EEPROM support
arm: mxs: Enable support for most SPI flashes
arm: mxs: Enable most commonly used PHYs

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

It does not need to be so verbose. It can just be one patch.

Do you prefer one gigantic patch then?

I do not take "1 file changed, 30 insertions(+), 33 deletions(-)" as a gigantic change set, especially when it's on defconfig. Just remember to run savedefconfig before you submit the changes.

Sure, one big nasty patch on it's way to your mailbox then.

I wanted to keep the changes separate to make them obvious and clear, that was my whole motivation, nothing else.

[...]

Best regards,
Marek Vasut