Add S3C2410 NAND support
PATCH 1/1 Add S3C2410 NAND support
This patch adds NAND (including boot-from-NAND via steppingstone) support to the S3C2410 SoC code in u-boot
Signed-off-by Harald Welte <[email protected]>
cpu/arm920t/s3c24x0/Makefile +1 -1
@@ -26,7 +26,7 @@ LIB = $(obj)lib$(SOC).a COBJS = i2c.o interrupts.o serial.o speed.o \ - usb_ohci.o + usb_ohci.o nand_read.o nand.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
cpu/arm920t/s3c24x0/nand.c new file +185 -0
185 lines not on this page · raw message
cpu/arm920t/s3c24x0/nand_read.c new file +97 -0
97 lines not on this page · raw message
cpu/arm920t/start.S +93 -0
117 lines not on this page · raw message
include/s3c2410.h +15 -6
@@ -38,12 +38,6 @@#define S3C2410_ECCSIZE 512#define S3C2410_ECCBYTES 3 -typedef enum { -S3C24X0_UART0 , -S3C24X0_UART1 , -S3C24X0_UART2 -}S3C24X0_UARTS_NR ; -/* S3C2410 device base addresses */ #define S3C24X0_MEMCTL_BASE 0x48000000#define S3C24X0_USB_HOST_BASE 0x49000000
@@ -65,9 +59,23 @@#define S3C2410_SDI_BASE 0x5A000000 +#define oNFCONF 0x00 +#define oNFCMD 0x04 +#define oNFADDR 0x08 +#define oNFDATA 0x0C +#define oNFSTAT 0x10 +#define oNFECC 0x14 + +#ifndef __ASSEMBLER__ +/* include common stuff */ #include <s3c24x0.h> +typedef enum { +S3C24X0_UART0 , +S3C24X0_UART1 , +S3C24X0_UART2 +}S3C24X0_UARTS_NR ;static inline S3C24X0_MEMCTL *S3C24X0_GetBase_MEMCTL (void ) {
@@ -142,6 +150,7 @@ return (S3C2410_SDI * const)S3C2410_SDI_BASE; } +#endif /* ISR */ #define pISR_RESET (*(unsigned *)(_ISR_STARTADDRESS+0x0))
Signature · 3 lines
- Harald Welte <[email protected]> http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone
PATCH 1/1 Add S3C2410 NAND support
Hi,
Quoted 4 lines · Harald Welte <laforge <at> openmoko.org> writes:
This patch adds NAND (including boot-from-NAND via steppingstone) support to the S3C2410 SoC code in u-boot
Why didn't try to shared the code with nand_spl stuff for the 1st stage boot loader ?
s3c2410_cmdfunc seems unusued ?
Matthieu