mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
CPCI440 board update
This commit is contained in:
parent
c491b442cc
commit
7acd6c2168
@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
|
|||||||
|
|
||||||
LIB = lib$(BOARD).a
|
LIB = lib$(BOARD).a
|
||||||
|
|
||||||
OBJS = $(BOARD).o strataflash.o
|
OBJS = $(BOARD).o strataflash.o ../common/misc.o
|
||||||
SOBJS = init.o
|
SOBJS = init.o
|
||||||
|
|
||||||
$(LIB): $(OBJS) $(SOBJS)
|
$(LIB): $(OBJS) $(SOBJS)
|
||||||
|
@ -31,6 +31,7 @@ ifeq ($(ramsym),1)
|
|||||||
TEXT_BASE = 0x07FD0000
|
TEXT_BASE = 0x07FD0000
|
||||||
else
|
else
|
||||||
TEXT_BASE = 0xFFFC0000
|
TEXT_BASE = 0xFFFC0000
|
||||||
|
#TEXT_BASE = 0x01fc0000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_440=1
|
PLATFORM_CPPFLAGS += -DCONFIG_440=1
|
||||||
|
@ -26,6 +26,9 @@
|
|||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
|
|
||||||
|
extern void lxt971_no_sleep(void);
|
||||||
|
|
||||||
|
|
||||||
long int fixed_sdram( void );
|
long int fixed_sdram( void );
|
||||||
|
|
||||||
int board_early_init_f (void)
|
int board_early_init_f (void)
|
||||||
@ -77,6 +80,12 @@ int checkboard (void)
|
|||||||
printf("\tPLB: %lu MHz\n", sysinfo.freqPLB/1000000);
|
printf("\tPLB: %lu MHz\n", sysinfo.freqPLB/1000000);
|
||||||
printf("\tOPB: %lu MHz\n", sysinfo.freqOPB/1000000);
|
printf("\tOPB: %lu MHz\n", sysinfo.freqOPB/1000000);
|
||||||
printf("\tEPB: %lu MHz\n", sysinfo.freqEPB/1000000);
|
printf("\tEPB: %lu MHz\n", sysinfo.freqEPB/1000000);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disable sleep mode in LXT971
|
||||||
|
*/
|
||||||
|
lxt971_no_sleep();
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,6 +110,7 @@ long int fixed_sdram( void )
|
|||||||
{
|
{
|
||||||
uint reg;
|
uint reg;
|
||||||
|
|
||||||
|
#if 1 /* test-only */
|
||||||
/*--------------------------------------------------------------------
|
/*--------------------------------------------------------------------
|
||||||
* Setup some default
|
* Setup some default
|
||||||
*------------------------------------------------------------------*/
|
*------------------------------------------------------------------*/
|
||||||
@ -136,4 +146,7 @@ long int fixed_sdram( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
return( 64 * 1024 * 1024 ); /* 64 MB */
|
return( 64 * 1024 * 1024 ); /* 64 MB */
|
||||||
|
#else
|
||||||
|
return( 32 * 1024 * 1024 ); /* 64 MB */
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -28,11 +28,13 @@ SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.resetvec 0xFFFFFFFC :
|
.resetvec 0xFFFFFFFC :
|
||||||
|
/* .resetvec 0x01FFFFFC :*/
|
||||||
{
|
{
|
||||||
*(.resetvec)
|
*(.resetvec)
|
||||||
} = 0xffff
|
} = 0xffff
|
||||||
|
|
||||||
.bootpg 0xFFFFF000 :
|
.bootpg 0xFFFFF000 :
|
||||||
|
/* .bootpg 0x01FFF000 :*/
|
||||||
{
|
{
|
||||||
cpu/ppc4xx/start.o (.bootpg)
|
cpu/ppc4xx/start.o (.bootpg)
|
||||||
} = 0xffff
|
} = 0xffff
|
||||||
|
Loading…
Reference in New Issue
Block a user