upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.3 KiB
108 lines
2.3 KiB
18 years ago
|
/*
|
||
|
* (C) Copyright 2005 Freescale Semiconductor, Inc.
|
||
|
*
|
||
|
* Roy Zang <tie-fei.zang@freescale.com>
|
||
|
*
|
||
|
* See file CREDITS for list of people who contributed to this
|
||
|
* project.
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License as
|
||
|
* published by the Free Software Foundation; either version 2 of
|
||
|
* the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||
|
* MA 02111-1307 USA
|
||
|
*
|
||
|
* modifications for the Tsi108 Emul Board by avb@Tundra
|
||
|
*/
|
||
|
|
||
|
/*
|
||
18 years ago
|
* board support/init functions for the
|
||
18 years ago
|
* Freescale MPC7448 HPC2 (High-Performance Computing 2 Platform).
|
||
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
|
#include <74xx_7xx.h>
|
||
|
#if defined(CONFIG_OF_FLAT_TREE)
|
||
|
#include <ft_build.h>
|
||
18 years ago
|
extern void ft_cpu_setup (void *blob, bd_t *bd);
|
||
18 years ago
|
#endif
|
||
|
|
||
|
#undef DEBUG
|
||
|
|
||
18 years ago
|
DECLARE_GLOBAL_DATA_PTR;
|
||
|
|
||
18 years ago
|
extern void flush_data_cache (void);
|
||
|
extern void invalidate_l1_instruction_cache (void);
|
||
|
extern void tsi108_init_f (void);
|
||
18 years ago
|
|
||
18 years ago
|
int display_mem_map (void);
|
||
18 years ago
|
|
||
18 years ago
|
void after_reloc (ulong dest_addr)
|
||
18 years ago
|
{
|
||
|
/*
|
||
|
* Jump to the main U-Boot board init code
|
||
|
*/
|
||
18 years ago
|
board_init_r ((gd_t *) gd, dest_addr);
|
||
18 years ago
|
/* NOTREACHED */
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Check Board Identity:
|
||
|
* report board type
|
||
|
*/
|
||
|
|
||
18 years ago
|
int checkboard (void)
|
||
18 years ago
|
{
|
||
|
int l_type = 0;
|
||
|
|
||
18 years ago
|
printf ("BOARD: %s\n", CFG_BOARD_NAME);
|
||
18 years ago
|
return (l_type);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Read Processor ID:
|
||
|
*
|
||
|
* report calling processor number
|
||
|
*/
|
||
|
|
||
18 years ago
|
int read_pid (void)
|
||
18 years ago
|
{
|
||
|
return 0; /* we are on single CPU platform for a while */
|
||
|
}
|
||
|
|
||
18 years ago
|
long int dram_size (int board_type)
|
||
18 years ago
|
{
|
||
|
return 0x20000000; /* 256M bytes */
|
||
|
}
|
||
|
|
||
18 years ago
|
long int initdram (int board_type)
|
||
18 years ago
|
{
|
||
18 years ago
|
return dram_size (board_type);
|
||
18 years ago
|
}
|
||
|
|
||
|
#if defined(CONFIG_OF_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP)
|
||
|
void
|
||
18 years ago
|
ft_board_setup (void *blob, bd_t *bd)
|
||
18 years ago
|
{
|
||
|
u32 *p;
|
||
|
int len;
|
||
|
|
||
18 years ago
|
ft_cpu_setup (blob, bd);
|
||
18 years ago
|
|
||
18 years ago
|
p = ft_get_prop (blob, "/memory/reg", &len);
|
||
18 years ago
|
if (p != NULL) {
|
||
18 years ago
|
*p++ = cpu_to_be32 (bd->bi_memstart);
|
||
|
*p = cpu_to_be32 (bd->bi_memsize);
|
||
18 years ago
|
}
|
||
|
}
|
||
|
#endif
|