Skip to contentSkip to conversation

S5PV310: Enable the OneNAND at Universal board

PATCH New Kyungmin Park 2 participants 2 messages Jul 28, 2010 – Jul 29, 2010

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

PATCH 6/6 S5PV310: Enable the OneNAND at Universal board

From: Kyungmin Park <[email protected]>

Use the OneNAND at universal board

---
 arch/arm/mach-s5pv310/Kconfig          |    1 +
 arch/arm/mach-s5pv310/mach-universal.c |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv310/Kconfig +1 -0
index 2fe8149..1bf780e 100644
@@ -28,6 +28,7 @@ config MACH_UNIVERSAL
 	bool "Mobile Universal Board"
 	select CPU_S5PV310
 	select ARCH_SPARSEMEM_ENABLE
+	select S5PC110_DEV_ONENAND
 	help
 	  Machine support for Samsung Mobile Universal Reference Board.
 	  S5PC210(MCP) is one of package option of S5PV310
arch/arm/mach-s5pv310/mach-universal.c +8 -0
index d22727f..371a95d 100644
@@ -16,6 +16,7 @@
 #include <plat/regs-serial.h>
 #include <plat/s5pv310.h>
 #include <plat/cpu.h>
+#include <plat/devs.h>
 
 #include <mach/map.h>
 
@@ -60,6 +61,10 @@ static struct s3c2410_uartcfg universal_uartcfgs[] __initdata = {
 	},
 };
 
+static struct platform_device *universal_devices[] __initdata = {
+	&s5pc110_device_onenand,
+};
+
 static void __init universal_map_io(void)
 {
 	s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -72,6 +77,9 @@ static void __init universal_machine_init(void)
 #ifdef CONFIG_CACHE_L2X0
 	l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff);
 #endif
+
+	/* Last */
+	platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices));
 }
 
 MACHINE_START(UNIVERSAL, "UNIVERSAL")
Signature · 1 line
1.5.3.3
#1 lore raw

PATCH 6/6 S5PV310: Enable the OneNAND at Universal board

Quoted 4 lines · Kyungmin Park

From: Kyungmin Park <[email protected]>

Use the OneNAND at universal board

This patch needs previous adding board patch.
It doesn't mean that #5 patch should be in this patch set.

Just 'adding NOTE' about that is enough in here.

And in future please remember following items...

- If you want to submit patchset, please send #0 patch which includes description of patches together.
- If you want to re-submit, please add changes...it can inform what should review.
- Please include Ben Dooks in Cc.

arch/arm/mach-s5pv310/mach-universal.c static struct s3c2410_uartcfg universal_uartcfgs[]

Quoted 33 lines
---
 arch/arm/mach-s5pv310/Kconfig          |    1 +
 arch/arm/mach-s5pv310/mach-universal.c |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv310/Kconfig +1 -0
index 2fe8149..1bf780e 100644
@@ -28,6 +28,7 @@ config MACH_UNIVERSAL
 	bool "Mobile Universal Board"
 	select CPU_S5PV310
 	select ARCH_SPARSEMEM_ENABLE
+	select S5PC110_DEV_ONENAND
 	help
 	  Machine support for Samsung Mobile Universal Reference Board.
 	  S5PC210(MCP) is one of package option of S5PV310
arch/arm/mach- renamed from arch/arm/mach-s5pv310/mach-universal.c +0 -0

s5pv310/mach-universal.c
index d22727f..371a95d 100644

arch/arm/mach-s5pv310/mach-universal.c +1 -0
@@ -16,6 +16,7 @@
 #include <plat/regs-serial.h>
 #include <plat/s5pv310.h>
 #include <plat/cpu.h>
+#include <plat/devs.h>
 
 #include <mach/map.h>
 
@@ -60,6 +61,10 @@ static struct s3c2410_uartcfg universal_uartcfgs[]

__initdata

Quoted 12 lines
arch/arm/mach-s5pv310/mach-universal.c +4 -0
 = {
 	},
 };
 
+static struct platform_device *universal_devices[] __initdata = {
+	&s5pc110_device_onenand,
+};
+
 static void __init universal_map_io(void)
 {
arch/arm/mach-s5pv310/mach-universal.c +0 -0
 	s5p_init_io(NULL, 0, S5P_VA_CHIPID);

arch/arm/mach-s5pv310/mach-universal.c static void __init universal_machine_init(void) · line 81

Quoted 5 lines
arch/arm/mach-s5pv310/mach-universal.c +2 -0
@@ -72,6 +77,9 @@ static void __init universal_machine_init(void)
 #ifdef CONFIG_CACHE_L2X0
 	l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff);
 #endif
+
+	/* Last */

No need above comment.

Quoted 6 lines
arch/arm/mach-s5pv310/mach-universal.c +1 -0
+	platform_add_devices(universal_devices,
 ARRAY_SIZE(universal_devices));
 }
 

MACHINE_START(UNIVERSAL, "UNIVERSAL")
--

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.