diff options
Diffstat (limited to 'board/esd')
| -rw-r--r-- | board/esd/adciop/adciop.c | 2 | ||||
| -rw-r--r-- | board/esd/ar405/ar405.c | 2 | ||||
| -rw-r--r-- | board/esd/ash405/ash405.c | 2 | ||||
| -rw-r--r-- | board/esd/canbt/canbt.c | 2 | ||||
| -rw-r--r-- | board/esd/common/auto_update.c | 14 | ||||
| -rw-r--r-- | board/esd/cpci2dp/cpci2dp.c | 2 | ||||
| -rw-r--r-- | board/esd/cpci405/cpci405.c | 16 | ||||
| -rw-r--r-- | board/esd/cpci5200/cpci5200.c | 4 | ||||
| -rw-r--r-- | board/esd/cpci750/cpci750.c | 4 | ||||
| -rw-r--r-- | board/esd/cpci750/mv_eth.c | 6 | ||||
| -rw-r--r-- | board/esd/cpciiser4/cpciiser4.c | 2 | ||||
| -rw-r--r-- | board/esd/dasa_sim/cmd_dasa_sim.c | 2 | ||||
| -rw-r--r-- | board/esd/dasa_sim/dasa_sim.c | 2 | ||||
| -rw-r--r-- | board/esd/dp405/dp405.c | 2 | ||||
| -rw-r--r-- | board/esd/du405/du405.c | 2 | ||||
| -rw-r--r-- | board/esd/hub405/hub405.c | 2 | ||||
| -rw-r--r-- | board/esd/ocrtc/ocrtc.c | 2 | ||||
| -rw-r--r-- | board/esd/pci405/cmd_pci405.c | 6 | ||||
| -rw-r--r-- | board/esd/pci405/pci405.c | 4 | ||||
| -rw-r--r-- | board/esd/pf5200/flash.c | 2 | ||||
| -rw-r--r-- | board/esd/pf5200/pf5200.c | 4 | ||||
| -rw-r--r-- | board/esd/plu405/plu405.c | 2 | ||||
| -rw-r--r-- | board/esd/pmc405/pmc405.c | 2 | ||||
| -rw-r--r-- | board/esd/voh405/voh405.c | 2 | ||||
| -rw-r--r-- | board/esd/wuh405/wuh405.c | 2 | 
25 files changed, 47 insertions, 45 deletions
| diff --git a/board/esd/adciop/adciop.c b/board/esd/adciop/adciop.c index 93bc8431b..7a11a12ce 100644 --- a/board/esd/adciop/adciop.c +++ b/board/esd/adciop/adciop.c @@ -60,7 +60,7 @@ int board_early_init_f (void)  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	puts ("Board: "); diff --git a/board/esd/ar405/ar405.c b/board/esd/ar405/ar405.c index 14b0e4289..3aac3c673 100644 --- a/board/esd/ar405/ar405.c +++ b/board/esd/ar405/ar405.c @@ -155,7 +155,7 @@ int checkboard (void)  	int index;  	int len; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	const unsigned char *fpga; diff --git a/board/esd/ash405/ash405.c b/board/esd/ash405/ash405.c index 012505e4e..03ae7fda4 100644 --- a/board/esd/ash405/ash405.c +++ b/board/esd/ash405/ash405.c @@ -193,7 +193,7 @@ int misc_init_r (void)  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/canbt/canbt.c b/board/esd/canbt/canbt.c index ab4924970..2ced6cb17 100644 --- a/board/esd/canbt/canbt.c +++ b/board/esd/canbt/canbt.c @@ -156,7 +156,7 @@ int checkboard (void)  {  	int index;  	int len; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	puts ("Board: "); diff --git a/board/esd/common/auto_update.c b/board/esd/common/auto_update.c index 0604a4e6f..1dceb3aff 100644 --- a/board/esd/common/auto_update.c +++ b/board/esd/common/auto_update.c @@ -103,7 +103,7 @@ int au_check_cksum_valid(int i, long nbytes)  	/* check the data CRC */  	checksum = ntohl(hdr->ih_dcrc); -	if (crc32 (0, (char *)(LOAD_ADDR + sizeof(*hdr)), ntohl(hdr->ih_size)) +	if (crc32 (0, (uchar *)(LOAD_ADDR + sizeof(*hdr)), ntohl(hdr->ih_size))  		!= checksum) {  		printf ("Image %s bad data checksum\n", au_image[i].name);  		return -1; @@ -140,7 +140,7 @@ int au_check_header_valid(int i, long nbytes)  	checksum = ntohl(hdr->ih_hcrc);  	hdr->ih_hcrc = 0; -	if (crc32 (0, (char *)hdr, sizeof(*hdr)) != checksum) { +	if (crc32 (0, (uchar *)hdr, sizeof(*hdr)) != checksum) {  		printf ("Image %s bad header checksum\n", au_image[i].name);  		return -1;  	} @@ -283,12 +283,12 @@ int au_do_update(int i, long sz)  		 */  		if (au_image[i].type != AU_NAND) {  			debug ("flash_write(%p, %lx %x)\n", addr, start, nbytes); -			rc = flash_write(addr, start, nbytes); +			rc = flash_write((uchar *)addr, start, nbytes);  		} else {  #if (CONFIG_COMMANDS & CFG_CMD_NAND)  			debug ("nand_rw(%p, %lx %x)\n", addr, start, nbytes);  			rc = nand_rw(nand_dev_desc, NANDRW_WRITE | NANDRW_JFFS2, -				     start, nbytes, &total, addr); +				     start, nbytes, (size_t *)&total, (uchar *)addr);  			debug ("nand_rw: ret=%x total=%d nbytes=%d\n", rc, total, nbytes);  #endif  		} @@ -301,12 +301,12 @@ int au_do_update(int i, long sz)  		 * check the dcrc of the copy  		 */  		if (au_image[i].type != AU_NAND) { -			rc = crc32 (0, (char *)(start + off), ntohl(hdr->ih_size)); +			rc = crc32 (0, (uchar *)(start + off), ntohl(hdr->ih_size));  		} else {  #if (CONFIG_COMMANDS & CFG_CMD_NAND)  			rc = nand_rw(nand_dev_desc, NANDRW_READ | NANDRW_JFFS2 | NANDRW_JFFS2_SKIP, -				     start, nbytes, &total, addr); -			rc = crc32 (0, (char *)(addr + off), ntohl(hdr->ih_size)); +				     start, nbytes, (size_t *)&total, (uchar *)addr); +			rc = crc32 (0, (uchar *)(addr + off), ntohl(hdr->ih_size));  #endif  		}  		if (rc != ntohl(hdr->ih_dcrc)) { diff --git a/board/esd/cpci2dp/cpci2dp.c b/board/esd/cpci2dp/cpci2dp.c index 0949a7d63..727640e9b 100644 --- a/board/esd/cpci2dp/cpci2dp.c +++ b/board/esd/cpci2dp/cpci2dp.c @@ -95,7 +95,7 @@ int misc_init_r (void)   */  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/cpci405/cpci405.c b/board/esd/cpci405/cpci405.c index f27668d14..2ab96731e 100644 --- a/board/esd/cpci405/cpci405.c +++ b/board/esd/cpci405/cpci405.c @@ -440,7 +440,7 @@ int checkboard (void)  	int index;  	int len;  #endif -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	unsigned short ver; @@ -468,7 +468,7 @@ int checkboard (void)  #endif  	if (ctermm2()) { -		unsigned char str[4]; +		char str[4];  		/*  		 * Read board-id and save in env-variable @@ -664,7 +664,7 @@ int do_onewire(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	int result;  	int i;  	unsigned char ow_id[6]; -	unsigned char str[32]; +	char str[32];  	unsigned char ow_crc;  	/* @@ -717,10 +717,10 @@ int do_get_bpip(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	IPaddr_t ipaddr;  	buf = malloc(CFG_ENV_SIZE_2); -	if (eeprom_read(CFG_I2C_EEPROM_ADDR_2, 0, buf, CFG_ENV_SIZE_2)) { +	if (eeprom_read(CFG_I2C_EEPROM_ADDR_2, 0, (uchar *)buf, CFG_ENV_SIZE_2)) {  		puts("\nError reading backplane EEPROM!\n");  	} else { -		crc = crc32(0, buf+4, CFG_ENV_SIZE_2-4); +		crc = crc32(0, (uchar *)(buf+4), CFG_ENV_SIZE_2-4);  		if (crc != *(ulong *)buf) {  			printf("ERROR: crc mismatch %08lx %08lx\n", crc, *(ulong *)buf);  			return -1; @@ -766,7 +766,7 @@ U_BOOT_CMD(  int do_set_bpip(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  {  	char *buf; -	unsigned char str[32]; +	char str[32];  	ulong crc;  	if (argc < 2) { @@ -779,10 +779,10 @@ int do_set_bpip(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	memset(buf, 0, CFG_ENV_SIZE_2);  	sprintf(str, "bp_ip=%s", argv[1]);  	strcpy(buf+4, str); -	crc = crc32(0, buf+4, CFG_ENV_SIZE_2-4); +	crc = crc32(0, (uchar *)(buf+4), CFG_ENV_SIZE_2-4);  	*(ulong *)buf = crc; -	if (eeprom_write(CFG_I2C_EEPROM_ADDR_2, 0, buf, CFG_ENV_SIZE_2)) { +	if (eeprom_write(CFG_I2C_EEPROM_ADDR_2, 0, (uchar *)buf, CFG_ENV_SIZE_2)) {  		puts("\nError writing backplane EEPROM!\n");  	} diff --git a/board/esd/cpci5200/cpci5200.c b/board/esd/cpci5200/cpci5200.c index 01c4171ca..6c98f13fb 100644 --- a/board/esd/cpci5200/cpci5200.c +++ b/board/esd/cpci5200/cpci5200.c @@ -105,9 +105,9 @@ long int initdram(int board_type)  	/* find RAM size using SDRAM CS0 only */  	sdram_start(0); -	test1 = get_ram_size((ulong *) CFG_SDRAM_BASE, 0x80000000); +	test1 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);  	sdram_start(1); -	test2 = get_ram_size((ulong *) CFG_SDRAM_BASE, 0x80000000); +	test2 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);  	if (test1 > test2) {  		sdram_start(0); diff --git a/board/esd/cpci750/cpci750.c b/board/esd/cpci750/cpci750.c index 68f121d6b..e4b062bdd 100644 --- a/board/esd/cpci750/cpci750.c +++ b/board/esd/cpci750/cpci750.c @@ -555,7 +555,7 @@ unsigned long long pattern[] = {  int mem_test_data (void)  {  	unsigned long long *pmem = (unsigned long long *) CFG_MEMTEST_START; -	unsigned long long temp64; +	unsigned long long temp64 = 0;  	int num_patterns = sizeof (pattern) / sizeof (pattern[0]);  	int i;  	unsigned int hi, lo; @@ -662,7 +662,7 @@ int mem_march (volatile unsigned long long *base,  	       unsigned long long wmask, short read, short write)  {  	unsigned int i; -	unsigned long long temp; +	unsigned long long temp = 0;  	unsigned int hitemp, lotemp, himask, lomask;  	for (i = 0; i < size; i++) { diff --git a/board/esd/cpci750/mv_eth.c b/board/esd/cpci750/mv_eth.c index e2719b99d..880528f84 100644 --- a/board/esd/cpci750/mv_eth.c +++ b/board/esd/cpci750/mv_eth.c @@ -267,8 +267,9 @@ void mv6436x_eth_initialize (bd_t * bis)  		dev->send = (void *) db64360_eth_transmit;  		dev->recv = (void *) db64360_eth_poll; -		dev->priv = (void *) ethernet_private = +		ethernet_private =  			calloc (sizeof (*ethernet_private), 1); +		dev->priv = (void *) ethernet_private;  		if (!ethernet_private) {  			printf ("%s: %s allocation failure, %s\n",  				__FUNCTION__, dev->name, @@ -281,8 +282,9 @@ void mv6436x_eth_initialize (bd_t * bis)  		memcpy (ethernet_private->port_mac_addr, dev->enetaddr, 6);  		/* set pointer to memory for stats data structure etc... */ -		ethernet_private->port_private = (void *) port_private = +		port_private =  			calloc (sizeof (*ethernet_private), 1); +		ethernet_private->port_private = (void *)port_private;   		if (!port_private) {  			printf ("%s: %s allocation failure, %s\n",  				__FUNCTION__, dev->name, diff --git a/board/esd/cpciiser4/cpciiser4.c b/board/esd/cpciiser4/cpciiser4.c index 3d1f1fa09..7bf7bb5a5 100644 --- a/board/esd/cpciiser4/cpciiser4.c +++ b/board/esd/cpciiser4/cpciiser4.c @@ -153,7 +153,7 @@ int checkboard (void)  {  	int index;  	int len; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	puts ("Board: "); diff --git a/board/esd/dasa_sim/cmd_dasa_sim.c b/board/esd/dasa_sim/cmd_dasa_sim.c index 9edb3afaa..89a4aaf80 100644 --- a/board/esd/dasa_sim/cmd_dasa_sim.c +++ b/board/esd/dasa_sim/cmd_dasa_sim.c @@ -111,7 +111,7 @@ static void showPci9054 (void)  		for (i = 0; i < 4; i++) {  			pci_read_config_dword (CFG_PCI9054_DEV_FN,  						l * 16 + i * 4, -						&val); +						(unsigned int *)&val);  			printf ("%08x ", val);  		}  		printf ("\n"); diff --git a/board/esd/dasa_sim/dasa_sim.c b/board/esd/dasa_sim/dasa_sim.c index 57a971f43..2f8ab1a47 100644 --- a/board/esd/dasa_sim/dasa_sim.c +++ b/board/esd/dasa_sim/dasa_sim.c @@ -162,7 +162,7 @@ int checkboard (void)  {  	int index;  	int len; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	int fpga;  	unsigned short val; diff --git a/board/esd/dp405/dp405.c b/board/esd/dp405/dp405.c index 056063e6d..fd51f7f34 100644 --- a/board/esd/dp405/dp405.c +++ b/board/esd/dp405/dp405.c @@ -100,7 +100,7 @@ int misc_init_r (void)  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	unsigned char trans[16] = {0x0,0x8,0x4,0xc,0x2,0xa,0x6,0xe,  				   0x1,0x9,0x5,0xd,0x3,0xb,0x7,0xf}; diff --git a/board/esd/du405/du405.c b/board/esd/du405/du405.c index 7db2a6097..26e834196 100644 --- a/board/esd/du405/du405.c +++ b/board/esd/du405/du405.c @@ -162,7 +162,7 @@ int checkboard (void)  {  	int index;  	int len; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	puts ("Board: "); diff --git a/board/esd/hub405/hub405.c b/board/esd/hub405/hub405.c index bbd8555ea..e77dba8a8 100644 --- a/board/esd/hub405/hub405.c +++ b/board/esd/hub405/hub405.c @@ -210,7 +210,7 @@ int checkboard (void)  {  	DECLARE_GLOBAL_DATA_PTR; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/ocrtc/ocrtc.c b/board/esd/ocrtc/ocrtc.c index ac032ef0a..261b8a54d 100644 --- a/board/esd/ocrtc/ocrtc.c +++ b/board/esd/ocrtc/ocrtc.c @@ -74,7 +74,7 @@ int misc_init_f (void)   */  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof (str));  	puts ("Board: "); diff --git a/board/esd/pci405/cmd_pci405.c b/board/esd/pci405/cmd_pci405.c index e1ca58396..0315c3d97 100644 --- a/board/esd/pci405/cmd_pci405.c +++ b/board/esd/pci405/cmd_pci405.c @@ -91,7 +91,7 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  			pci_read_config_dword(PCIDEVID_405GP, i, ptr++);  		}  		ptr = (unsigned int *)PCI_REGS_ADDR; -		*ptr = crc32(0, (char *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4); +		*ptr = crc32(0, (uchar *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4);  		printf("\nStoring PCI Configuration Regs...\n");  	} else { @@ -874,7 +874,7 @@ int do_savepci(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  		pci_read_config_dword(PCIDEVID_405GP, i, ptr++);  	}  	ptr = (unsigned int *)PCI_REGS_ADDR; -	*ptr = crc32(0, (char *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4); +	*ptr = crc32(0, (uchar *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4);  	printf("\nStoring PCI Configuration Regs...\n"); @@ -896,7 +896,7 @@ int do_restorepci(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  	 * Rewrite pci config regs (only after soft-reset with magic set)  	 */  	ptr = (unsigned int *)PCI_REGS_ADDR; -	if (crc32(0, (char *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4) == *ptr) { +	if (crc32(0, (uchar *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4) == *ptr) {  		puts("Restoring PCI Configurations Regs!\n");  		ptr = (unsigned int *)PCI_REGS_ADDR + 1;  		for (i=0; i<0x40; i+=4) { diff --git a/board/esd/pci405/pci405.c b/board/esd/pci405/pci405.c index d1b680768..4be4d7e7d 100644 --- a/board/esd/pci405/pci405.c +++ b/board/esd/pci405/pci405.c @@ -275,7 +275,7 @@ int misc_init_r (void)  		 * Rewrite pci config regs (only after soft-reset with magic set)  		 */  		ptr = (unsigned int *)PCI_REGS_ADDR; -		if (crc32(0, (char *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4) == *ptr) { +		if (crc32(0, (uchar *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4) == *ptr) {  			puts("Restoring PCI Configurations Regs!\n");  			ptr = (unsigned int *)PCI_REGS_ADDR + 1;  			for (i=0; i<0x40; i+=4) { @@ -322,7 +322,7 @@ int checkboard (void)  {  	DECLARE_GLOBAL_DATA_PTR; -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/pf5200/flash.c b/board/esd/pf5200/flash.c index bfbd0907c..53afbc0b9 100644 --- a/board/esd/pf5200/flash.c +++ b/board/esd/pf5200/flash.c @@ -122,7 +122,7 @@ static flash_info_t *flash_get_info(ulong base) {  void flash_print_info(flash_info_t * info) {  	int i; -	uchar *fmt; +	char *fmt;  	if (info->flash_id == FLASH_UNKNOWN) {  		printf("missing or unknown FLASH type\n"); diff --git a/board/esd/pf5200/pf5200.c b/board/esd/pf5200/pf5200.c index fa71c7942..2b47012cf 100644 --- a/board/esd/pf5200/pf5200.c +++ b/board/esd/pf5200/pf5200.c @@ -105,9 +105,9 @@ long int initdram(int board_type)  	/* find RAM size using SDRAM CS0 only */  	sdram_start(0); -	test1 = get_ram_size((ulong *) CFG_SDRAM_BASE, 0x80000000); +	test1 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);  	sdram_start(1); -	test2 = get_ram_size((ulong *) CFG_SDRAM_BASE, 0x80000000); +	test2 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);  	if (test1 > test2) {  		sdram_start(0); diff --git a/board/esd/plu405/plu405.c b/board/esd/plu405/plu405.c index e3eff31fb..16f2360dc 100644 --- a/board/esd/plu405/plu405.c +++ b/board/esd/plu405/plu405.c @@ -203,7 +203,7 @@ int misc_init_r (void)   */  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/pmc405/pmc405.c b/board/esd/pmc405/pmc405.c index a72547d5c..33b5f774d 100644 --- a/board/esd/pmc405/pmc405.c +++ b/board/esd/pmc405/pmc405.c @@ -107,7 +107,7 @@ int misc_init_r (void)  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/voh405/voh405.c b/board/esd/voh405/voh405.c index 9cea69f18..eda3fd9d9 100644 --- a/board/esd/voh405/voh405.c +++ b/board/esd/voh405/voh405.c @@ -268,7 +268,7 @@ int misc_init_r (void)  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); diff --git a/board/esd/wuh405/wuh405.c b/board/esd/wuh405/wuh405.c index 09c4d36a9..db24122c5 100644 --- a/board/esd/wuh405/wuh405.c +++ b/board/esd/wuh405/wuh405.c @@ -193,7 +193,7 @@ int misc_init_r (void)  int checkboard (void)  { -	unsigned char str[64]; +	char str[64];  	int i = getenv_r ("serial#", str, sizeof(str));  	puts ("Board: "); |