2006-11-02 10:59:15 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2005 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
* Roy Zang <tie-fei.zang@freescale.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2006-11-02 10:59:15 +00:00
|
|
|
*
|
|
|
|
* modifications for the Tsi108 Emul Board by avb@Tundra
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2006-12-01 03:47:36 +00:00
|
|
|
* board support/init functions for the
|
2006-11-02 10:59:15 +00:00
|
|
|
* Freescale MPC7448 HPC2 (High-Performance Computing 2 Platform).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <74xx_7xx.h>
|
2008-06-04 00:34:45 +00:00
|
|
|
#include <fdt_support.h>
|
2008-08-31 16:59:33 +00:00
|
|
|
#include <netdev.h>
|
2006-11-02 10:59:15 +00:00
|
|
|
|
|
|
|
#undef DEBUG
|
|
|
|
|
2007-09-15 18:48:41 +00:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
2006-12-01 03:47:36 +00:00
|
|
|
extern void tsi108_init_f (void);
|
2006-11-02 10:59:15 +00:00
|
|
|
|
2006-12-01 03:47:36 +00:00
|
|
|
int display_mem_map (void);
|
2006-11-02 10:59:15 +00:00
|
|
|
|
2006-12-01 03:47:36 +00:00
|
|
|
void after_reloc (ulong dest_addr)
|
2006-11-02 10:59:15 +00:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Jump to the main U-Boot board init code
|
|
|
|
*/
|
2006-12-01 03:47:36 +00:00
|
|
|
board_init_r ((gd_t *) gd, dest_addr);
|
2006-11-02 10:59:15 +00:00
|
|
|
/* NOTREACHED */
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Check Board Identity:
|
|
|
|
* report board type
|
|
|
|
*/
|
|
|
|
|
2006-12-01 03:47:36 +00:00
|
|
|
int checkboard (void)
|
2006-11-02 10:59:15 +00:00
|
|
|
{
|
|
|
|
int l_type = 0;
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
|
2006-11-02 10:59:15 +00:00
|
|
|
return (l_type);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Read Processor ID:
|
|
|
|
*
|
|
|
|
* report calling processor number
|
|
|
|
*/
|
|
|
|
|
2006-12-01 03:47:36 +00:00
|
|
|
int read_pid (void)
|
2006-11-02 10:59:15 +00:00
|
|
|
{
|
|
|
|
return 0; /* we are on single CPU platform for a while */
|
|
|
|
}
|
|
|
|
|
2006-12-01 03:47:36 +00:00
|
|
|
long int dram_size (int board_type)
|
2006-11-02 10:59:15 +00:00
|
|
|
{
|
|
|
|
return 0x20000000; /* 256M bytes */
|
|
|
|
}
|
|
|
|
|
2008-06-09 21:03:40 +00:00
|
|
|
phys_size_t initdram (int board_type)
|
2006-11-02 10:59:15 +00:00
|
|
|
{
|
2006-12-01 03:47:36 +00:00
|
|
|
return dram_size (board_type);
|
2006-11-02 10:59:15 +00:00
|
|
|
}
|
|
|
|
|
2008-06-04 00:24:58 +00:00
|
|
|
#if defined(CONFIG_OF_BOARD_SETUP)
|
|
|
|
void
|
|
|
|
ft_board_setup(void *blob, bd_t *bd)
|
|
|
|
{
|
|
|
|
ft_cpu_setup(blob, bd);
|
|
|
|
fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
|
|
|
|
}
|
|
|
|
#endif
|
2008-08-31 16:59:33 +00:00
|
|
|
|
|
|
|
int board_eth_init(bd_t *bis)
|
|
|
|
{
|
|
|
|
int rc = 0;
|
|
|
|
#if defined(CONFIG_TSI108_ETH)
|
|
|
|
rc = tsi108_eth_initialize(bis);
|
|
|
|
#endif
|
|
|
|
return rc;
|
|
|
|
}
|