mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-29 10:01:43 +00:00
TQM5200: Add Flat Device Tree support, update default env. accordingly.
Signed-off-by: Jan Wrobel <wrr@semihalf.com> Acked-by: Bartlomiej Sieka <tur@semihalf.com>
This commit is contained in:
parent
9045f33c02
commit
8f8416fada
2 changed files with 38 additions and 3 deletions
|
@ -32,6 +32,10 @@
|
||||||
#include <pci.h>
|
#include <pci.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_OF_FLAT_TREE)
|
||||||
|
#include <ft_build.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_VIDEO_SM501
|
#ifdef CONFIG_VIDEO_SM501
|
||||||
#include <sm501.h>
|
#include <sm501.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -775,3 +779,10 @@ int board_get_height (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_VIDEO_SM501 */
|
#endif /* CONFIG_VIDEO_SM501 */
|
||||||
|
|
||||||
|
#if defined(CONFIG_OF_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP)
|
||||||
|
void ft_board_setup(void *blob, bd_t *bd)
|
||||||
|
{
|
||||||
|
ft_cpu_setup(blob, bd);
|
||||||
|
}
|
||||||
|
#endif /* defined(CONFIG_OF_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP) */
|
||||||
|
|
|
@ -234,6 +234,8 @@
|
||||||
#ifndef CONFIG_CAM5200
|
#ifndef CONFIG_CAM5200
|
||||||
#define CUSTOM_ENV_SETTINGS \
|
#define CUSTOM_ENV_SETTINGS \
|
||||||
"bootfile=/tftpboot/tqm5200/uImage\0" \
|
"bootfile=/tftpboot/tqm5200/uImage\0" \
|
||||||
|
"bootfile_fdt=/tftpboot/tqm5200/uImage_fdt\0" \
|
||||||
|
"fdt_file=/tftpboot/tqm5200/tqm5200.dtb\0" \
|
||||||
"u-boot=/tftpboot/tqm5200/u-boot.bin\0"
|
"u-boot=/tftpboot/tqm5200/u-boot.bin\0"
|
||||||
#else
|
#else
|
||||||
#define CUSTOM_ENV_SETTINGS \
|
#define CUSTOM_ENV_SETTINGS \
|
||||||
|
@ -243,6 +245,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
|
"console=ttyS0\0" \
|
||||||
|
"kernel_addr=200000\0" \
|
||||||
|
"fdt_addr=400000\0" \
|
||||||
|
"hostname=tqm5200\0" \
|
||||||
"netdev=eth0\0" \
|
"netdev=eth0\0" \
|
||||||
"rootpath=/opt/eldk/ppc_6xx\0" \
|
"rootpath=/opt/eldk/ppc_6xx\0" \
|
||||||
"ramargs=setenv bootargs root=/dev/ram rw\0" \
|
"ramargs=setenv bootargs root=/dev/ram rw\0" \
|
||||||
|
@ -252,13 +258,17 @@
|
||||||
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
|
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
|
||||||
":${hostname}:${netdev}:off panic=1\0" \
|
":${hostname}:${netdev}:off panic=1\0" \
|
||||||
"addcons=setenv bootargs ${bootargs} " \
|
"addcons=setenv bootargs ${bootargs} " \
|
||||||
"console=ttyS0,${baudrate}\0" \
|
"console=${console},${baudrate}\0" \
|
||||||
"flash_self=run ramargs addip addcons;" \
|
"flash_self=run ramargs addip addcons;" \
|
||||||
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
|
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
|
||||||
"flash_nfs=run nfsargs addip addcons;" \
|
"flash_nfs=run nfsargs addip addcons;" \
|
||||||
"bootm ${kernel_addr}\0" \
|
"bootm ${kernel_addr}\0" \
|
||||||
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip addcons;" \
|
"net_nfs=tftp ${kernel_addr} ${bootfile};" \
|
||||||
"bootm\0" \
|
"run nfsargs addip addcons;bootm\0" \
|
||||||
|
"net_nfs_fdt=tftp ${kernel_addr} ${bootfile_fdt};" \
|
||||||
|
"tftp ${fdt_addr} ${fdt_file};setenv console ttyPSC0;" \
|
||||||
|
"run nfsargs addip addcons;" \
|
||||||
|
"bootm ${kernel_addr} - ${fdt_addr}\0" \
|
||||||
CUSTOM_ENV_SETTINGS \
|
CUSTOM_ENV_SETTINGS \
|
||||||
"load=tftp 200000 ${u-boot}\0" \
|
"load=tftp 200000 ${u-boot}\0" \
|
||||||
ENV_UPDT \
|
ENV_UPDT \
|
||||||
|
@ -676,4 +686,18 @@
|
||||||
/* Interval between registers */
|
/* Interval between registers */
|
||||||
#define CFG_ATA_STRIDE 4
|
#define CFG_ATA_STRIDE 4
|
||||||
|
|
||||||
|
/*-----------------------------------------------------------------------
|
||||||
|
* Open firmware flat tree support
|
||||||
|
*-----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
#define CONFIG_OF_FLAT_TREE 1
|
||||||
|
#define CONFIG_OF_BOARD_SETUP 1
|
||||||
|
|
||||||
|
/* maximum size of the flat tree (8K) */
|
||||||
|
#define OF_FLAT_TREE_MAX_SIZE 8192
|
||||||
|
#define OF_CPU "PowerPC,5200@0"
|
||||||
|
#define OF_SOC "soc5200@f0000000"
|
||||||
|
#define OF_TBCLK (bd->bi_busfreq / 4)
|
||||||
|
#define OF_STDOUT_PATH "/soc5200@f0000000/serial@2000"
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue