OCRTC board update
This commit is contained in:
parent
31193c2cca
commit
25215ee2b0
|
@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = lib$(BOARD).a
|
LIB = lib$(BOARD).a
|
||||||
|
|
||||||
OBJS = $(BOARD).o flash.o cmd_ocrtc.o
|
OBJS = $(BOARD).o flash.o ../common/misc.o cmd_ocrtc.o
|
||||||
|
|
||||||
$(LIB): $(OBJS) $(SOBJS)
|
$(LIB): $(OBJS) $(SOBJS)
|
||||||
$(AR) crv $@ $(OBJS)
|
$(AR) crv $@ $(OBJS)
|
||||||
|
|
|
@ -27,7 +27,9 @@
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
|
||||||
|
extern void lxt971_no_sleep(void);
|
||||||
|
|
||||||
|
|
||||||
int board_early_init_f (void)
|
int board_early_init_f (void)
|
||||||
{
|
{
|
||||||
|
@ -61,8 +63,6 @@ int board_early_init_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
int misc_init_f (void)
|
int misc_init_f (void)
|
||||||
{
|
{
|
||||||
return 0; /* dummy implementation */
|
return 0; /* dummy implementation */
|
||||||
|
@ -72,7 +72,6 @@ int misc_init_f (void)
|
||||||
/*
|
/*
|
||||||
* Check Board Identity:
|
* Check Board Identity:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int checkboard (void)
|
int checkboard (void)
|
||||||
{
|
{
|
||||||
unsigned char str[64];
|
unsigned char str[64];
|
||||||
|
@ -93,10 +92,14 @@ int checkboard (void)
|
||||||
|
|
||||||
putc ('\n');
|
putc ('\n');
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disable sleep mode in LXT971
|
||||||
|
*/
|
||||||
|
lxt971_no_sleep();
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
long int initdram (int board_type)
|
long int initdram (int board_type)
|
||||||
{
|
{
|
||||||
|
@ -113,7 +116,6 @@ long int initdram (int board_type)
|
||||||
return (4 * 1024 * 1024 << ((val & 0x000e0000) >> 17));
|
return (4 * 1024 * 1024 << ((val & 0x000e0000) >> 17));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
int testdram (void)
|
int testdram (void)
|
||||||
{
|
{
|
||||||
|
@ -122,5 +124,3 @@ int testdram (void)
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
|
||||||
|
|
Loading…
Reference in New Issue