From 3484550d6260a0ffe23976c63c0cfe4142fd1142 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Mon, 15 Jun 2015 15:00:19 +0200 Subject: [PATCH 1/7] ARM: ep93xx: activate NO_HZ and high-res timers Let's set the EP93xx to NO_HZ mode and activate the high-res timers now that we have GENERIC_CLOCKEVENTS. Tested-by: H Hartley Sweeten Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index 72233b9c9d07..f3adf59fa315 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -1,4 +1,6 @@ CONFIG_SYSVIPC=y +CONFIG_NO_HZ_IDLE=y +CONFIG_HIGH_RES_TIMERS=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 From 8430f7f9d7d62e0fcc97a033234cab54993641ff Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Tue, 16 Jun 2015 09:25:27 +0200 Subject: [PATCH 2/7] ARM: ep93xx: enable all boards in the EP93xx defconfig With PATCH_PHYS_TO_VIRT we can support all EP93xx variants in a single image, so enable all board variants in the defconfig for simplicity and build coverage. Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index f3adf59fa315..7838cb8919e6 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -17,19 +17,25 @@ CONFIG_CRUNCH=y CONFIG_MACH_ADSSPHERE=y CONFIG_MACH_EDB9301=y CONFIG_MACH_EDB9302=y +CONFIG_MACH_EDB9302A=y CONFIG_MACH_EDB9307=y +CONFIG_MACH_EDB9307A=y CONFIG_MACH_EDB9312=y CONFIG_MACH_EDB9315=y +CONFIG_MACH_EDB9315A=y CONFIG_MACH_GESBC9312=y CONFIG_MACH_MICRO9H=y +CONFIG_MACH_MICRO9M=y CONFIG_MACH_MICRO9L=y +CONFIG_MACH_MICRO9S=y +CONFIG_MACH_SIM_ONE=y +CONFIG_MACH_SNAPPER_CL15=y CONFIG_MACH_TS72XX=y +CONFIG_MACH_VISION_EP9307=y CONFIG_AEABI=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="console=ttyAM0,115200 root=/dev/nfs ip=bootp" -CONFIG_FPE_NWFPE=y -CONFIG_FPE_NWFPE_XP=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y From 7dc2753b70830054a9c079492e30c1a6c2feb62b Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Tue, 16 Jun 2015 09:26:45 +0200 Subject: [PATCH 3/7] ARM: ep93xx: enable SIM.ONE MMC/SD hardware The SIM.ONE has a MMC card connected to the SPI host. This card usually hosts an EXT4 root file system. Enable these options in the defconfig so the default ompiled kernel will work out-of-the-box. Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index 7838cb8919e6..b3c32d0d4573 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -85,6 +85,8 @@ CONFIG_I2C_CHARDEV=y CONFIG_I2C_DEBUG_CORE=y CONFIG_I2C_DEBUG_ALGO=y CONFIG_I2C_DEBUG_BUS=y +CONFIG_SPI=y +CONFIG_SPI_EP93XX=y CONFIG_WATCHDOG=y CONFIG_EP93XX_WATCHDOG=y CONFIG_USB=y @@ -95,6 +97,8 @@ CONFIG_USB_STORAGE=y CONFIG_USB_SERIAL=y CONFIG_USB_SERIAL_CONSOLE=y CONFIG_USB_SERIAL_PL2303=y +CONFIG_MMC=y +CONFIG_MMC_SPI=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_DRV_M48T86=y @@ -102,6 +106,7 @@ CONFIG_RTC_DRV_EP93XX=y CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y # CONFIG_EXT3_FS_XATTR is not set +CONFIG_EXT4_FS=y CONFIG_VFAT_FS=y CONFIG_TMPFS=y CONFIG_JFFS2_FS=y From 4abdd63925f2e21448fca0fbbb1077a1407937c2 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Tue, 16 Jun 2015 10:34:46 +0200 Subject: [PATCH 4/7] ARM: ep93xx: add LEDs and triggers to defconfig The EP93xx has two designated LEDs (not always connected): a green and a red one. These are registered in the core, so let's enable the driver and some triggers. Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index b3c32d0d4573..9a5205abc7c3 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -99,6 +99,11 @@ CONFIG_USB_SERIAL_CONSOLE=y CONFIG_USB_SERIAL_PL2303=y CONFIG_MMC=y CONFIG_MMC_SPI=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y +CONFIG_LEDS_TRIGGERS=y +CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_DRV_M48T86=y From d74485eb90cd4a2f81bba48d3ac04113faef3cab Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Thu, 9 Jul 2015 17:10:44 +0200 Subject: [PATCH 5/7] ARM: ep93xx: add GPIO I2C to defconfig Some of the EP93xx boards have I2C devices on bit-banged GPIO I2C, so add this to the defconfig. Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index 9a5205abc7c3..2ca11ce504c7 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -82,6 +82,7 @@ CONFIG_SERIAL_AMBA_PL010_CONSOLE=y # CONFIG_HW_RANDOM is not set CONFIG_I2C=y CONFIG_I2C_CHARDEV=y +CONFIG_I2C_GPIO=y CONFIG_I2C_DEBUG_CORE=y CONFIG_I2C_DEBUG_ALGO=y CONFIG_I2C_DEBUG_BUS=y From 0466b0cc6e238d280fa189417c8fc33271dfc776 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Thu, 9 Jul 2015 17:12:00 +0200 Subject: [PATCH 6/7] ARM: ep93xx: add DMA engine to the defconfig Several boards can make use of the DMA engine on the EP93xx so let's enable this by default in the defconfig. Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index 2ca11ce504c7..e684386e97ba 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -109,6 +109,8 @@ CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_DRV_M48T86=y CONFIG_RTC_DRV_EP93XX=y +CONFIG_DMADEVICES=y +CONFIG_EP93XX_DMA=y CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y # CONFIG_EXT3_FS_XATTR is not set From b471e7f2ec5a8673e1b5385307357f3dba62f451 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Thu, 9 Jul 2015 17:13:07 +0200 Subject: [PATCH 7/7] ARM: ep93xx: add framebuffer to the defconfig The EP93xx SoC has a framebuffer driver, let's add this to the defconfig so we can have graphics working out of the box. Reviewed-by: H Hartley Sweeten Signed-off-by: Linus Walleij --- arch/arm/configs/ep93xx_defconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/ep93xx_defconfig b/arch/arm/configs/ep93xx_defconfig index e684386e97ba..a7846d64b396 100644 --- a/arch/arm/configs/ep93xx_defconfig +++ b/arch/arm/configs/ep93xx_defconfig @@ -90,6 +90,10 @@ CONFIG_SPI=y CONFIG_SPI_EP93XX=y CONFIG_WATCHDOG=y CONFIG_EP93XX_WATCHDOG=y +CONFIG_FB=y +CONFIG_FB_MODE_HELPERS=y +CONFIG_FB_EP93XX=y +CONFIG_LOGO=y CONFIG_USB=y CONFIG_USB_DYNAMIC_MINORS=y CONFIG_USB_OHCI_HCD=y