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

imx8m_som/spl.c : get rid of compiler warnings

parent 9b4f5aac
......@@ -34,6 +34,8 @@
DECLARE_GLOBAL_DATA_PTR;
extern int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device);
void spl_dram_init(void)
{
/* ddr init */
......@@ -45,15 +47,15 @@ void spl_dram_init(void)
udelay(100000);
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++){
//*addr = addr;
writel((uint32_t)addr, (uint32_t)addr);
writel((u64)addr, addr);
}
......@@ -62,9 +64,10 @@ void spl_dram_init(void)
for(addr = addrA; addr < addrB; addr++){
//readl((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);
}
}
......@@ -390,8 +393,7 @@ static int sdp_mmc_init(void)
void board_init_f(ulong dummy)
{
int ret, err;
struct mmc *mmc;
int ret;
/* Clear global data */
memset((void *)gd, 0, sizeof(gd_t));
......
Markdown is supported
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