Commit 09baa61e authored by Angus Ainslie's avatar Angus Ainslie
Browse files

imx8m_som/spl.c : get rid of compiler warnings

parent 9b4f5aac
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
extern int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device);
void spl_dram_init(void) void spl_dram_init(void)
{ {
/* ddr init */ /* ddr init */
...@@ -45,15 +47,15 @@ void spl_dram_init(void) ...@@ -45,15 +47,15 @@ void spl_dram_init(void)
udelay(100000); udelay(100000);
if(0) if(0)
{ {
volatile uint32_t *addrA = 0x40000000; volatile u32 *addrA = (u32 *)0x40000000;
volatile uint32_t *addrB = 0x50000000; volatile u32 *addrB = (u32 *)0x50000000;
volatile uint32_t *addr; volatile u32 *addr;
for(addr = addrA; addr < addrB; addr++){ for(addr = addrA; addr < addrB; addr++){
//*addr = addr; //*addr = addr;
writel((uint32_t)addr, (uint32_t)addr); writel((u64)addr, addr);
} }
...@@ -62,9 +64,10 @@ void spl_dram_init(void) ...@@ -62,9 +64,10 @@ void spl_dram_init(void)
for(addr = addrA; addr < addrB; addr++){ for(addr = addrA; addr < addrB; addr++){
//readl((uint32_t)addr): //readl((uint32_t)addr):
//if(*addr != (uint32_t)addr) //if(*addr != (uint32_t)addr)
if(readl((uint32_t)addr) != (uint32_t)addr) if(readl((u64)addr) != (u64)addr)
{ {
printf(".................. addr check fail at 0x%x \n", addr); printf(".................. addr check fail at 0x%llx \n",
(u64)addr);
while(1); while(1);
} }
} }
...@@ -390,8 +393,7 @@ static int sdp_mmc_init(void) ...@@ -390,8 +393,7 @@ static int sdp_mmc_init(void)
void board_init_f(ulong dummy) void board_init_f(ulong dummy)
{ {
int ret, err; int ret;
struct mmc *mmc;
/* Clear global data */ /* Clear global data */
memset((void *)gd, 0, sizeof(gd_t)); memset((void *)gd, 0, sizeof(gd_t));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment