mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-31 11:31:27 +02:00
Move machine specific code to board at s3c64xx (v2)
Move machine specific code to smdk6400. Some board use OneNAND instead of NAND. Some register MP0_CS_CFG[5:0] are controled by both h/w and s/w. So it's better to use macro instead of hard-coded value. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
767f3acd9f
commit
ab0689c316
@ -104,6 +104,13 @@ lowlevel_init:
|
|||||||
bl nand_asm_init
|
bl nand_asm_init
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Memory subsystem address 0x7e00f120 */
|
||||||
|
ldr r0, =ELFIN_MEM_SYS_CFG
|
||||||
|
|
||||||
|
/* Xm0CSn2 = NFCON CS0, Xm0CSn3 = NFCON CS1 */
|
||||||
|
mov r1, #S3C64XX_MEM_SYS_CFG_NAND
|
||||||
|
str r1, [r0]
|
||||||
|
|
||||||
bl mem_ctrl_asm_init
|
bl mem_ctrl_asm_init
|
||||||
|
|
||||||
/* Wakeup support. Don't know if it's going to be used, untested. */
|
/* Wakeup support. Don't know if it's going to be used, untested. */
|
||||||
|
@ -28,13 +28,6 @@
|
|||||||
|
|
||||||
.globl mem_ctrl_asm_init
|
.globl mem_ctrl_asm_init
|
||||||
mem_ctrl_asm_init:
|
mem_ctrl_asm_init:
|
||||||
/* Memory subsystem address 0x7e00f120 */
|
|
||||||
ldr r0, =ELFIN_MEM_SYS_CFG
|
|
||||||
|
|
||||||
/* Xm0CSn2 = NFCON CS0, Xm0CSn3 = NFCON CS1 */
|
|
||||||
mov r1, #0xd
|
|
||||||
str r1, [r0]
|
|
||||||
|
|
||||||
/* DMC1 base address 0x7e001000 */
|
/* DMC1 base address 0x7e001000 */
|
||||||
ldr r0, =ELFIN_DMC1_BASE
|
ldr r0, =ELFIN_DMC1_BASE
|
||||||
|
|
||||||
|
@ -380,6 +380,11 @@
|
|||||||
*/
|
*/
|
||||||
#define ELFIN_MEM_SYS_CFG 0x7e00f120
|
#define ELFIN_MEM_SYS_CFG 0x7e00f120
|
||||||
|
|
||||||
|
#define S3C64XX_MEM_SYS_CFG_16BIT (1 << 12)
|
||||||
|
|
||||||
|
#define S3C64XX_MEM_SYS_CFG_NAND 0x0008
|
||||||
|
#define S3C64XX_MEM_SYS_CFG_ONENAND S3C64XX_MEM_SYS_CFG_16BIT
|
||||||
|
|
||||||
#define GPACON (ELFIN_GPIO_BASE + GPACON_OFFSET)
|
#define GPACON (ELFIN_GPIO_BASE + GPACON_OFFSET)
|
||||||
#define GPADAT (ELFIN_GPIO_BASE + GPADAT_OFFSET)
|
#define GPADAT (ELFIN_GPIO_BASE + GPADAT_OFFSET)
|
||||||
#define GPAPUD (ELFIN_GPIO_BASE + GPAPUD_OFFSET)
|
#define GPAPUD (ELFIN_GPIO_BASE + GPAPUD_OFFSET)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user