#include <xparameters.h>
#define PARPORT_CRTL_BASEADDR XPSS_CRTL_PARPORT_BASEADDR
-#define NOR_FLASH_BASEADDR XPSS_PARPORT1_BASEADDR
+#define NOR_FLASH_BASEADDR XPSS_PARPORT0_BASEADDR
#define PARPORT_MC_DIRECT_CMD 0x010
#define PARPORT_MC_SET_CYCLES 0x014
/* write operation mode to set_opmode registers */
u32 set_opmode_reg = (0x1 << 13) | /* set_burst_align, see to 32 beats */
- (0x0 << 12) | /* set_bls, set to default I am not sure */
+ (0x1 << 12) | /* set_bls, set to default */
(0x0 << 11) | /* set_adv bit, set to default */
(0x0 << 10) | /* set_baa, I guess we don't use baa_n */
(0x0 << 7) | /* set_wr_bl, write brust length, set to 0 */
/*
* Issue a direct_cmd by writing to direct_cmd register
- * This is needed becuase the UpdatesReg flag in direct_cmd updates the state of SMC
- * I think....
+ * This is needed becuase the UpdatesReg flag in direct_cmd updates the
+ * state of SMC
*/
- u32 direct_cmd_reg = (0x1 << 23) | /* chip 1 from interface 0 */
+ u32 direct_cmd_reg = (0x0 << 23) | /* chip 1 from interface 0 */
(0x2 << 21) | /* UpdateRegs operation, to update the two reg we wrote earlier*/
- (0x0 << 20) | /* Not sure about this one cre, what does it do? */
+ (0x0 << 20) | /* cre */
(0x0); /* addr, not use in UpdateRegs */
Out32(PARPORT_CRTL_BASEADDR + PARPORT_MC_DIRECT_CMD, direct_cmd_reg);
"nand_kernel_size=0x400000\0" \
"nand_ramdisk_size=0x400000\0" \
"norboot=echo Copying Linux from NOR flash to RAM...; \
- cp 0xE4100000 0x8000 ${kernel_size}; \
+ cp 0xE2100000 0x8000 ${kernel_size}; \
echo Copying ramdisk from NOR flash to RAM...; \
- cp 0xE5000000 0x800000 ${ramdisk_size}; \
+ cp 0xE3000000 0x800000 ${ramdisk_size}; \
go 0x8000\0" \
"qspiboot=echo Copying Linux from QSPI flash to RAM...; \
cp 0xFC100000 0x8000 ${kernel_size}; \
#ifndef CONFIG_SYS_NO_FLASH
/* FLASH organization */
-#define CONFIG_SYS_FLASH_BASE 0xE4000000
+#define CONFIG_SYS_FLASH_BASE 0xE2000000
#define CONFIG_SYS_FLASH_SIZE (16*1024*1024) /* i.e. 16MB */
#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
#define CONFIG_SYS_MAX_FLASH_SECT 512 /* max number of sectors/blocks on one chip */