1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 13:41:32 +02:00

[xbboot] rename the 4740 function suffix with _4740

This commit is contained in:
Xiangfu Liu 2010-06-09 15:20:02 +08:00
parent 3aff93bcf8
commit 41ee624696

View File

@ -16,7 +16,13 @@ extern void serial_init_4740(int uart);
extern void sdram_init_4740(); extern void sdram_init_4740();
extern void nand_init_4740(); extern void nand_init_4740();
void load_args() extern void gpio_init_4760();
extern void pll_init_4760();
extern void cpm_start_all();
extern void serial_init_4760(int uart);
extern void sdram_init_4760();
void load_args_4740()
{ {
ARG_CPU_ID = 0x4740; ARG_CPU_ID = 0x4740;
ARG_EXTAL = 12 * 1000000; ARG_EXTAL = 12 * 1000000;
@ -29,9 +35,23 @@ void load_args()
ARG_COL_ADDR = 9; ARG_COL_ADDR = 9;
} }
void load_args_4760()
{
ARG_CPU_ID = 0x4760;
ARG_EXTAL = 12 * 1000000;
ARG_CPU_SPEED = 2 * ARG_EXTAL;
ARG_PHM_DIV = 3;
ARG_UART_BAUD = 57600;
ARG_BUS_WIDTH_16 = * (int *)0x80002014;
ARG_BANK_ADDR_2BIT = 1;
ARG_ROW_ADDR = 12;
ARG_COL_ADDR = 9;
}
void c_main(void) void c_main(void)
{ {
load_args(); load_args_4740();
switch (ARG_CPU_ID) { switch (ARG_CPU_ID) {
case 0x4740: case 0x4740: