Fix build errors and warnings / code cleanup.
Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
5dc210dec5
commit
cdd917a43d
5
MAKEALL
5
MAKEALL
@ -133,8 +133,9 @@ LIST_8260=" \
|
||||
#########################################################################
|
||||
|
||||
LIST_83xx=" \
|
||||
MPC8313ERDB MPC832XEMDS MPC8349EMDS MPC8349ITX \
|
||||
MPC8349ITXGP MPC8360EMDS sbc8349 TQM834x \
|
||||
MPC8313ERDB_33 MPC8313ERDB_66 MPC832XEMDS MPC8349EMDS \
|
||||
MPC8349ITX MPC8349ITXGP MPC8360EMDS sbc8349 \
|
||||
TQM834x \
|
||||
"
|
||||
|
||||
|
||||
|
74
Makefile
74
Makefile
@ -1646,14 +1646,15 @@ r5200_config : unconfig
|
||||
|
||||
MPC8313ERDB_33_config \
|
||||
MPC8313ERDB_66_config: unconfig
|
||||
@echo "" >include/config.h ; \
|
||||
@mkdir -p $(obj)include
|
||||
@echo "" >$(obj)include/config.h ; \
|
||||
if [ "$(findstring _33_,$@)" ] ; then \
|
||||
echo -n "...33M ..." ; \
|
||||
echo "#define CFG_33MHZ" >>include/config.h ; \
|
||||
echo "...33M ..." ; \
|
||||
echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _66_,$@)" ] ; then \
|
||||
echo -n "...66M..." ; \
|
||||
echo "#define CFG_66MHZ" >>include/config.h ; \
|
||||
echo "...66M..." ; \
|
||||
echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
|
||||
fi ;
|
||||
@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
|
||||
|
||||
@ -1661,23 +1662,24 @@ MPC832XEMDS_config \
|
||||
MPC832XEMDS_HOST_33_config \
|
||||
MPC832XEMDS_HOST_66_config \
|
||||
MPC832XEMDS_SLAVE_config: unconfig
|
||||
@echo "" >include/config.h ; \
|
||||
@mkdir -p $(obj)include
|
||||
@echo "" >$(obj)include/config.h ; \
|
||||
if [ "$(findstring _HOST_,$@)" ] ; then \
|
||||
echo -n "... PCI HOST " ; \
|
||||
echo "#define CONFIG_PCI" >>include/config.h ; \
|
||||
echo "... PCI HOST " ; \
|
||||
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _SLAVE_,$@)" ] ; then \
|
||||
echo "...PCI SLAVE 66M" ; \
|
||||
echo "#define CONFIG_PCI" >>include/config.h ; \
|
||||
echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
|
||||
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
||||
echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _33_,$@)" ] ; then \
|
||||
echo -n "...33M ..." ; \
|
||||
echo "#define PCI_33M" >>include/config.h ; \
|
||||
echo "...33M ..." ; \
|
||||
echo "#define PCI_33M" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _66_,$@)" ] ; then \
|
||||
echo -n "...66M..." ; \
|
||||
echo "#define PCI_66M" >>include/config.h ; \
|
||||
echo "...66M..." ; \
|
||||
echo "#define PCI_66M" >>$(obj)include/config.h ; \
|
||||
fi ;
|
||||
@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
|
||||
|
||||
@ -1702,23 +1704,24 @@ MPC8360EMDS_config \
|
||||
MPC8360EMDS_HOST_33_config \
|
||||
MPC8360EMDS_HOST_66_config \
|
||||
MPC8360EMDS_SLAVE_config: unconfig
|
||||
@echo "" >include/config.h ; \
|
||||
@mkdir -p $(obj)include
|
||||
@echo "" >$(obj)include/config.h ; \
|
||||
if [ "$(findstring _HOST_,$@)" ] ; then \
|
||||
echo -n "... PCI HOST " ; \
|
||||
echo "#define CONFIG_PCI" >>include/config.h ; \
|
||||
echo "... PCI HOST " ; \
|
||||
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _SLAVE_,$@)" ] ; then \
|
||||
echo "...PCI SLAVE 66M" ; \
|
||||
echo "#define CONFIG_PCI" >>include/config.h ; \
|
||||
echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
|
||||
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
||||
echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _33_,$@)" ] ; then \
|
||||
echo -n "...33M ..." ; \
|
||||
echo "#define PCI_33M" >>include/config.h ; \
|
||||
echo "...33M ..." ; \
|
||||
echo "#define PCI_33M" >>$(obj)include/config.h ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _66_,$@)" ] ; then \
|
||||
echo -n "...66M..." ; \
|
||||
echo "#define PCI_66M" >>include/config.h ; \
|
||||
echo "...66M..." ; \
|
||||
echo "#define PCI_66M" >>$(obj)include/config.h ; \
|
||||
fi ;
|
||||
@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
|
||||
|
||||
@ -1744,10 +1747,10 @@ MPC8540EVAL_66_slave_config: unconfig
|
||||
@mkdir -p $(obj)include
|
||||
@echo "" >$(obj)include/config.h ; \
|
||||
if [ "$(findstring _33_,$@)" ] ; then \
|
||||
echo -n "... 33 MHz PCI" ; \
|
||||
echo "... 33 MHz PCI" ; \
|
||||
else \
|
||||
echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
|
||||
echo -n "... 66 MHz PCI" ; \
|
||||
echo "... 66 MHz PCI" ; \
|
||||
fi ; \
|
||||
if [ "$(findstring _slave_,$@)" ] ; then \
|
||||
echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
|
||||
@ -2008,13 +2011,13 @@ omap1610h2_cs3boot_config \
|
||||
omap1610h2_cs_autoboot_config: unconfig
|
||||
@mkdir -p $(obj)include
|
||||
@if [ "$(findstring _cs0boot_, $@)" ] ; then \
|
||||
echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
|
||||
echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
|
||||
echo "... configured for CS0 boot"; \
|
||||
elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
|
||||
echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
|
||||
echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
|
||||
echo "... configured for CS_AUTO boot"; \
|
||||
else \
|
||||
echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
|
||||
echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
|
||||
echo "... configured for CS3 boot"; \
|
||||
fi;
|
||||
@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
|
||||
@ -2183,11 +2186,12 @@ logodl_config : unconfig
|
||||
|
||||
pdnb3_config \
|
||||
scpu_config: unconfig
|
||||
@mkdir -p $(obj)include
|
||||
@if [ "$(findstring scpu_,$@)" ] ; then \
|
||||
echo "#define CONFIG_SCPU" >>include/config.h ; \
|
||||
echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
|
||||
echo "... on SCPU board variant" ; \
|
||||
else \
|
||||
>include/config.h ; \
|
||||
>$(obj)include/config.h ; \
|
||||
fi
|
||||
@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
|
||||
|
||||
@ -2409,13 +2413,15 @@ suzaku_config: unconfig
|
||||
@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
|
||||
|
||||
ml401_config: unconfig
|
||||
@ >include/config.h
|
||||
@echo "#define CONFIG_ML401 1" >> include/config.h
|
||||
@mkdir -p $(obj)include
|
||||
@ >$(obj)include/config.h
|
||||
@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
|
||||
@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
|
||||
|
||||
xupv2p_config: unconfig
|
||||
@ >include/config.h
|
||||
@echo "#define CONFIG_XUPV2P 1" >> include/config.h
|
||||
@mkdir -p $(obj)include
|
||||
@ >$(obj)include/config.h
|
||||
@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
|
||||
@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
|
||||
|
||||
#########################################################################
|
||||
|
@ -1252,7 +1252,7 @@ static int check_dimm (uchar slot, AUX_MEM_DIMM_INFO * dimmInfo)
|
||||
/* sets up the GT properly with information passed in */
|
||||
int setup_sdram (AUX_MEM_DIMM_INFO * info)
|
||||
{
|
||||
ulong tmp, check;
|
||||
ulong tmp;
|
||||
ulong tmp_sdram_mode = 0; /* 0x141c */
|
||||
ulong tmp_dunit_control_low = 0; /* 0x1404 */
|
||||
int i;
|
||||
|
@ -321,10 +321,10 @@ static ulong strfractoint(uchar *strptr)
|
||||
mulconst = 1;
|
||||
for (i = 0; i < decarr_len; i++)
|
||||
mulconst *= 10;
|
||||
decval = simple_strtoul(decarr, NULL, 10);
|
||||
decval = simple_strtoul((char *)decarr, NULL, 10);
|
||||
}
|
||||
|
||||
intval = simple_strtoul(intarr, NULL, 10);
|
||||
intval = simple_strtoul((char *)intarr, NULL, 10);
|
||||
intval = intval * mulconst;
|
||||
|
||||
retval = intval + decval;
|
||||
@ -362,7 +362,7 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||
|
||||
val = set_px_sysclk(simple_strtoul(argv[2], NULL, 10));
|
||||
|
||||
corepll = strfractoint(argv[3]);
|
||||
corepll = strfractoint((uchar *)argv[3]);
|
||||
val = val + set_px_corepll(corepll);
|
||||
val = val + set_px_mpxpll(simple_strtoul(argv[4], NULL, 10));
|
||||
if (val == 3) {
|
||||
@ -410,7 +410,7 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||
read_from_px_regs(0);
|
||||
read_from_px_regs_altbank(0);
|
||||
val = set_px_sysclk(simple_strtoul(argv[3], NULL, 10));
|
||||
corepll = strfractoint(argv[4]);
|
||||
corepll = strfractoint((uchar *)argv[4]);
|
||||
val = val + set_px_corepll(corepll);
|
||||
val = val + set_px_mpxpll(simple_strtoul(argv[5],
|
||||
NULL, 10));
|
||||
|
@ -63,9 +63,10 @@ int checkboard(void)
|
||||
|
||||
uint devdisr = gur->devdisr;
|
||||
uint io_sel = (gur->pordevsr & MPC86xx_PORDEVSR_IO_SEL) >> 16;
|
||||
#ifdef DEBUG
|
||||
uint host1_agent = (gur->porbmsr & MPC86xx_PORBMSR_HA) >> 17;
|
||||
uint pex1_agent = (host1_agent == 0) || (host1_agent == 1);
|
||||
|
||||
#endif
|
||||
if ((io_sel == 2 || io_sel == 3 || io_sel == 5
|
||||
|| io_sel == 6 || io_sel == 7 || io_sel == 0xF)
|
||||
&& !(devdisr & MPC86xx_DEVDISR_PCIEX1)) {
|
||||
|
@ -68,7 +68,7 @@ int mac_show(void)
|
||||
mac_data.date[5],
|
||||
mac_data.date[6]);
|
||||
for (i = 0; i < 8; i++) {
|
||||
sprintf(ethaddr[i],
|
||||
sprintf((char *)ethaddr[i],
|
||||
"%02x:%02x:%02x:%02x:%02x:%02x",
|
||||
mac_data.mac[i][0],
|
||||
mac_data.mac[i][1],
|
||||
@ -79,10 +79,10 @@ int mac_show(void)
|
||||
printf("MAC %d %s\n", i, ethaddr[i]);
|
||||
}
|
||||
|
||||
setenv("ethaddr", ethaddr[0]);
|
||||
setenv("eth1addr", ethaddr[1]);
|
||||
setenv("eth2addr", ethaddr[2]);
|
||||
setenv("eth3addr", ethaddr[3]);
|
||||
setenv("ethaddr", (char *)ethaddr[0]);
|
||||
setenv("eth1addr", (char *)ethaddr[1]);
|
||||
setenv("eth2addr", (char *)ethaddr[2]);
|
||||
setenv("eth3addr", (char *)ethaddr[3]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -236,7 +236,7 @@ int mac_read_from_eeprom(void)
|
||||
} else {
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (memcmp(&mac_data.mac[i], "\0\0\0\0\0\0", 6)) {
|
||||
sprintf(ethaddr[i],
|
||||
sprintf((char *)ethaddr[i],
|
||||
"%02x:%02x:%02x:%02x:%02x:%02x",
|
||||
mac_data.mac[i][0],
|
||||
mac_data.mac[i][1],
|
||||
@ -244,10 +244,10 @@ int mac_read_from_eeprom(void)
|
||||
mac_data.mac[i][3],
|
||||
mac_data.mac[i][4],
|
||||
mac_data.mac[i][5]);
|
||||
sprintf(enetvar,
|
||||
sprintf((char *)enetvar,
|
||||
i ? "eth%daddr" : "ethaddr",
|
||||
i);
|
||||
setenv(enetvar, ethaddr[i]);
|
||||
setenv((char *)enetvar, (char *)ethaddr[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,9 @@ const uint dsp_table_fast[] =
|
||||
#define TINY_AUTOINC_BASE_ADDR 0x0
|
||||
|
||||
static int hpi_activate(void);
|
||||
#if 0
|
||||
static void hpi_inactivate(void);
|
||||
#endif
|
||||
static void dsp_reset(void);
|
||||
|
||||
static int hpi_write_inc(u32 addr, u32 *data, u32 count);
|
||||
@ -133,7 +135,9 @@ static u32 hpi_read_noinc(u32 addr);
|
||||
int hpi_test(void);
|
||||
static int hpi_write_addr_test(u32 addr);
|
||||
static int hpi_read_write_test(u32 addr, u32 data);
|
||||
#ifdef DO_TINY_TEST
|
||||
static int hpi_tiny_autoinc_test(void);
|
||||
#endif /* DO_TINY_TEST */
|
||||
#endif /* CONFIG_SPC1920_HPI_TEST */
|
||||
|
||||
|
||||
@ -185,6 +189,7 @@ static int hpi_activate(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* turn off the host port interface */
|
||||
static void hpi_inactivate(void)
|
||||
{
|
||||
@ -200,6 +205,7 @@ static void hpi_inactivate(void)
|
||||
/* currently always on TBD */
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/* reset the DSP */
|
||||
static void dsp_reset(void)
|
||||
@ -570,6 +576,7 @@ static int hpi_read_write_test(u32 addr, u32 data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DO_TINY_TEST
|
||||
static int hpi_tiny_autoinc_test(void)
|
||||
{
|
||||
int i;
|
||||
@ -599,5 +606,6 @@ static int hpi_tiny_autoinc_test(void)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* DO_TINY_TEST */
|
||||
|
||||
#endif /* CONFIG_SPC1920_HPI_TEST */
|
||||
|
@ -71,7 +71,7 @@ static __inline__ void set_dec(unsigned long val)
|
||||
}
|
||||
|
||||
/* interrupt is not supported yet */
|
||||
int interrupt_init_cpu(unsigned *decrementer_count)
|
||||
int interrupt_init_cpu(unsigned long *decrementer_count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@ -107,7 +107,7 @@ int interrupt_init(void)
|
||||
return ret;
|
||||
|
||||
decrementer_count = get_tbclk() / CFG_HZ;
|
||||
debug("interrupt init: tbclk() = %d MHz, decrementer_count = %d\n",
|
||||
debug("interrupt init: tbclk() = %d MHz, decrementer_count = %ld\n",
|
||||
(get_tbclk() / 1000000),
|
||||
decrementer_count);
|
||||
|
||||
@ -158,7 +158,7 @@ void timer_interrupt(struct pt_regs *regs)
|
||||
|
||||
timestamp++;
|
||||
|
||||
ppcDcbf(×tamp);
|
||||
ppcDcbf((unsigned long)×tamp);
|
||||
|
||||
/* Restore Decrementer Count */
|
||||
set_dec(decrementer_count);
|
||||
|
@ -248,7 +248,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_POST
|
||||
u #define CONFIG_CMD_DIAG
|
||||
#define CONFIG_CMD_DIAG
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -106,6 +106,7 @@
|
||||
#undef CONFIG_CMD_IRQ
|
||||
#undef CONFIG_CMD_JFFS2
|
||||
#undef CONFIG_CMD_KGDB
|
||||
#undef CONFIG_CMD_MFSL
|
||||
#undef CONFIG_CMD_MII
|
||||
#undef CONFIG_CMD_MMC
|
||||
#undef CONFIG_CMD_NAND
|
||||
|
@ -227,6 +227,7 @@
|
||||
#undef CONFIG_CMD_HWFLOW
|
||||
#undef CONFIG_CMD_IDE
|
||||
#undef CONFIG_CMD_KGDB
|
||||
#undef CONFIG_CMD_MFSL
|
||||
#undef CONFIG_CMD_MMC
|
||||
#undef CONFIG_CMD_NAND
|
||||
#undef CONFIG_CMD_PCMCIA
|
||||
@ -405,9 +406,9 @@
|
||||
#define CFG_BCR 0x100C0000
|
||||
#define CFG_SIUMCR 0x0A200000
|
||||
#define CFG_SCCR SCCR_DFBRG01
|
||||
#define CFG_BR0_PRELIM CFG_FLASH_BASE | 0x00001801
|
||||
#define CFG_BR0_PRELIM (CFG_FLASH_BASE | 0x00001801)
|
||||
#define CFG_OR0_PRELIM 0xFF800876
|
||||
#define CFG_BR1_PRELIM CFG_BCSR | 0x00001801
|
||||
#define CFG_BR1_PRELIM (CFG_BCSR | 0x00001801)
|
||||
#define CFG_OR1_PRELIM 0xFFFF8010
|
||||
|
||||
/*We need to configure chip select to use CPLD PCI IC on MPC8272ADS*/
|
||||
|
@ -165,6 +165,7 @@
|
||||
#undef CONFIG_CMD_IDE
|
||||
#undef CONFIG_CMD_JFFS2
|
||||
#undef CONFIG_CMD_KGDB
|
||||
#undef CONFIG_CMD_MFSL
|
||||
#undef CONFIG_CMD_MMC
|
||||
#undef CONFIG_CMD_NAND
|
||||
#undef CONFIG_CMD_PCMCIA
|
||||
|
@ -265,7 +265,7 @@
|
||||
#define CONFIG_I2C_CMD_TREE
|
||||
#define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
|
||||
#define CFG_I2C_SLAVE 0x7F
|
||||
#define CFG_I2C_NOPROBES {0x69} /* Don't probe these addrs */
|
||||
#define CFG_I2C_NOPROBES {{0,0x69}} /* Don't probe these addrs */
|
||||
#define CFG_I2C_OFFSET 0x3000
|
||||
#define CFG_I2C2_OFFSET 0x3100
|
||||
|
||||
|
@ -119,6 +119,7 @@
|
||||
#undef CONFIG_CMD_IRQ
|
||||
#undef CONFIG_CMD_JFFS2
|
||||
#undef CONFIG_CMD_MII
|
||||
#undef CONFIG_CMD_MFSL
|
||||
#undef CONFIG_CMD_MMC
|
||||
#undef CONFIG_CMD_NAND
|
||||
#undef CONFIG_CMD_PCI
|
||||
|
@ -321,6 +321,7 @@
|
||||
#undef CONFIG_CMD_JFFS2
|
||||
#undef CONFIG_CMD_KGDB
|
||||
#undef CONFIG_CMD_MII
|
||||
#undef CONFIG_CMD_MFSL
|
||||
#undef CONFIG_CMD_MMC
|
||||
#undef CONFIG_CMD_NAND
|
||||
#undef CONFIG_CMD_PCI
|
||||
|
@ -294,7 +294,7 @@
|
||||
#define CONFIG_BOOTP_BOOTPATH
|
||||
|
||||
#define CONFIG_BOOTP_BOOTFILESIZE
|
||||
#definef CONFIG_BOOTP_DNS
|
||||
#define CONFIG_BOOTP_DNS
|
||||
|
||||
/* undef this to save memory */
|
||||
#define CFG_LONGHELP
|
||||
|
@ -199,6 +199,7 @@
|
||||
#undef CONFIG_CMD_IDE
|
||||
#undef CONFIG_CMD_JFFS2
|
||||
#undef CONFIG_CMD_NAND
|
||||
#undef CONFIG_CMD_MFSL
|
||||
#undef CONFIG_CMD_MMC
|
||||
#undef CONFIG_CMD_PCMCIA
|
||||
#undef CONFIG_CMD_PCI
|
||||
|
@ -375,9 +375,9 @@
|
||||
/*-----------------------------------------------------------------------
|
||||
* FLASH organization
|
||||
*/
|
||||
#define CFG_MAX_FLASH_BANKS 1/* Flash can be at one of two addresses */
|
||||
#define CFG_MAX_FLASH_BANKS 1 /* Flash can be at one of two addresses */
|
||||
#define FLASH_BANK_SIZE 0x01000000 /* 16 MB Total */
|
||||
#define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE, CFG_FLASH_BASE2}
|
||||
#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, /* CFG_FLASH_BASE2 */ }
|
||||
|
||||
#define CFG_FLASH_CFI_DRIVER
|
||||
#define CFG_FLASH_CFI
|
||||
|
@ -31,9 +31,10 @@
|
||||
*/
|
||||
|
||||
#undef DEBUG
|
||||
#ifdef DEBUG
|
||||
#define GTREGREAD(x) 0xFFFFFFFF
|
||||
#define do_bdinfo(a,b,c,d)
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* CPU type
|
||||
|
@ -328,7 +328,7 @@
|
||||
#define CONFIG_I2C_CMD_TREE
|
||||
#define CFG_I2C_SPEED 400000 /* I2C speed and slave address */
|
||||
#define CFG_I2C_SLAVE 0x7F
|
||||
#define CFG_I2C_NOPROBES {{0,0x69}} /* Don't probe these addrs */
|
||||
#define CFG_I2C_NOPROBES {0x69} /* Don't probe these addrs */
|
||||
#define CFG_I2C1_OFFSET 0x3000
|
||||
#define CFG_I2C2_OFFSET 0x3100
|
||||
#define CFG_I2C_OFFSET CFG_I2C2_OFFSET
|
||||
|
Loading…
Reference in New Issue
Block a user