Patchwork [U-Boot,2/4] s5p6442: Support onenand driver

login
register
mail settings
Submitter Joonyoung Shim
Date March 29, 2010, 2:56 a.m.
Message ID <4BB016E3.4080403@samsung.com>
Download mbox | patch
Permalink /patch/71734/
State Deferred
Delegated to: Scott Wood
Headers show

Comments

Joonyoung Shim - March 29, 2010, 2:56 a.m.
This patch is for onenand support of s5p6442 SoC.

Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/mtd/onenand/samsung.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Scott Wood - Dec. 10, 2010, 11:22 p.m.
On Sun, Mar 28, 2010 at 04:56:35PM -0000, Joonyoung Shim wrote:
> This patch is for onenand support of s5p6442 SoC.
> 
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Kyungmin Park <kyungmin.park@samsung.com>
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> 
> ---
> drivers/mtd/onenand/samsung.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
> index f2be687..cbcf83b 100644
> --- a/drivers/mtd/onenand/samsung.c
> +++ b/drivers/mtd/onenand/samsung.c
> @@ -67,7 +67,7 @@ do {									\
>  #define MAP_01				(0x1 << 24)
>  #define MAP_10				(0x2 << 24)
>  #define MAP_11				(0x3 << 24)
> -#elif defined(CONFIG_S5PC1XX)
> +#elif defined(CONFIG_S5PC1XX) || defined(CONFIG_S5P64XX)

I looks like nothing which defines CONFIG_S5P64XX made it in, so I'm going
to mark this as Deferred in patchwork.

-Scott

Patch

diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index f2be687..cbcf83b 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -67,7 +67,7 @@  do {									\
 #define MAP_01				(0x1 << 24)
 #define MAP_10				(0x2 << 24)
 #define MAP_11				(0x3 << 24)
-#elif defined(CONFIG_S5PC1XX)
+#elif defined(CONFIG_S5PC1XX) || defined(CONFIG_S5P64XX)
 #define MAP_00				(0x0 << 26)
 #define MAP_01				(0x1 << 26)
 #define MAP_10				(0x2 << 26)
@@ -121,7 +121,7 @@  static unsigned int s3c_mem_addr(int fba, int fpa, int fsa)
 {
 	return (fba << 12) | (fpa << 6) | (fsa << 4);
 }
-#elif defined(CONFIG_S5PC1XX)
+#elif defined(CONFIG_S5PC1XX) || defined(CONFIG_S5P64XX)
 static unsigned int s3c_mem_addr(int fba, int fpa, int fsa)
 {
 	return (fba << 13) | (fpa << 7) | (fsa << 5);
@@ -614,7 +614,7 @@  void s3c_onenand_init(struct mtd_info *mtd)
 #if defined(CONFIG_S3C64XX)
 	onenand->base = (void *)0x70100000;
 	onenand->ahb_addr = (void *)0x20000000;
-#elif defined(CONFIG_S5PC1XX)
+#elif defined(CONFIG_S5PC1XX) || defined(CONFIG_S5P64XX)
 	onenand->base = (void *)0xE7100000;
 	onenand->ahb_addr = (void *)0xB0000000;
 #endif