mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
mpc85xx, socrates: add DM support
enable CONFIG_DM for the socrates board. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
81a7abe593
commit
39642abf56
3 changed files with 27 additions and 7 deletions
|
@ -432,3 +432,18 @@ void video_get_info_str (int line_number, char *info)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_OF_SEPARATE)
|
||||
void *board_fdt_blob_setup(void)
|
||||
{
|
||||
void *fw_dtb;
|
||||
|
||||
fw_dtb = (void *)(CONFIG_SYS_TEXT_BASE - CONFIG_ENV_SECT_SIZE);
|
||||
if (fdt_magic(fw_dtb) != FDT_MAGIC) {
|
||||
printf("DTB is not passed via %x\n", (u32)fw_dtb);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return fw_dtb;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -3,6 +3,7 @@ CONFIG_SYS_TEXT_BASE=0xfff80000
|
|||
CONFIG_MPC85xx=y
|
||||
# CONFIG_CMD_ERRATA is not set
|
||||
CONFIG_TARGET_SOCRATES=y
|
||||
# CONFIG_SYS_MALLOC_F is not set
|
||||
CONFIG_FIT=y
|
||||
CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
|
@ -15,6 +16,7 @@ CONFIG_BOARD_EARLY_INIT_R=y
|
|||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_REGINFO=y
|
||||
CONFIG_CMD_IMLS=y
|
||||
CONFIG_CMD_DM=y
|
||||
CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_NAND=y
|
||||
CONFIG_CMD_PCI=y
|
||||
|
@ -31,7 +33,10 @@ CONFIG_CMD_DATE=y
|
|||
# CONFIG_CMD_HASH is not set
|
||||
CONFIG_CMD_EXT2=y
|
||||
# CONFIG_CMD_IRQ is not set
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="socrates"
|
||||
CONFIG_ENV_IS_IN_FLASH=y
|
||||
CONFIG_DM=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
CONFIG_FLASH_CFI_DRIVER=y
|
||||
|
@ -46,4 +51,3 @@ CONFIG_USB=y
|
|||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_VIDEO=y
|
||||
CONFIG_CONSOLE_EXTRA_INFO=y
|
||||
CONFIG_OF_LIBFDT=y
|
||||
|
|
|
@ -238,9 +238,10 @@
|
|||
* Environment
|
||||
*/
|
||||
#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */
|
||||
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
|
||||
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - \
|
||||
CONFIG_ENV_SECT_SIZE - CONFIG_ENV_SECT_SIZE)
|
||||
#define CONFIG_ENV_SIZE 0x4000
|
||||
#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE)
|
||||
#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR - CONFIG_ENV_SECT_SIZE)
|
||||
#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
|
||||
|
||||
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
||||
|
@ -280,7 +281,7 @@
|
|||
"bootfile=/home/tftp/syscon3/uImage\0" \
|
||||
"fdt_file=/home/tftp/syscon3/socrates.dtb\0" \
|
||||
"initrd_file=/home/tftp/syscon3/uinitrd.gz\0" \
|
||||
"uboot_addr=FFFA0000\0" \
|
||||
"uboot_addr=FFF60000\0" \
|
||||
"kernel_addr=FE000000\0" \
|
||||
"fdt_addr=FE1E0000\0" \
|
||||
"ramdisk_addr=FE200000\0" \
|
||||
|
@ -303,9 +304,9 @@
|
|||
"run nfsargs addip addcons;" \
|
||||
"bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
|
||||
"update_uboot=tftp 100000 ${uboot_file};" \
|
||||
"protect off fffa0000 ffffffff;" \
|
||||
"era fffa0000 ffffffff;" \
|
||||
"cp.b 100000 fffa0000 ${filesize};" \
|
||||
"protect off fff60000 ffffffff;" \
|
||||
"era fff60000 ffffffff;" \
|
||||
"cp.b 100000 fff60000 ${filesize};" \
|
||||
"setenv filesize;saveenv\0" \
|
||||
"update_kernel=tftp 100000 ${bootfile};" \
|
||||
"era fe000000 fe1dffff;" \
|
||||
|
|
Loading…
Reference in a new issue