summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-17 08:32:29 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-17 08:32:29 +0000
commitef4dee93859641e2f695ef44891e8a61df86a8ba (patch)
treeceb3ea948ad07f67e8a636740f5e12686166d8b3 /target
parentf7562fb4b170b65ffa50271a51d726ae6b063a86 (diff)
Fix warnings
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8012 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c12
-rw-r--r--target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h1
2 files changed, 7 insertions, 6 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c
index b60257245..31bfdb9b6 100644
--- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c
+++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/memory.c
@@ -66,14 +66,14 @@ static int __init mem_check_pattern(u8 *addr, unsigned long offs)
if (u == v)
v = 0xAAAAAAAA;
- mem_dbg("write 0x%08lX to 0x%08lX\n", v, (unsigned long)p1);
+ mem_dbg("write 0x%08x to 0x%08lX\n", v, (unsigned long)p1);
*p1 = v;
mem_dbg("delay %d ns\n", MEM_WR_DELAY);
adm5120_ndelay(MEM_WR_DELAY);
u = *p2;
- mem_dbg("pattern at 0x%08lX is 0x%08lX\n", (unsigned long)p2, u);
+ mem_dbg("pattern at 0x%08lX is 0x%08x\n", (unsigned long)p2, u);
/* restore original value */
*p1 = t;
@@ -108,19 +108,19 @@ static void __init adm5120_detect_memsize(void)
MPMC_WRITE(MPMC_REG_DC0, MPMC_READ(MPMC_REG_DC0) & ~DC_BE);
MPMC_WRITE(MPMC_REG_DC1, MPMC_READ(MPMC_REG_DC1) & ~DC_BE);
- mem_dbg("checking for %ldMB chip in 1st bank\n", maxsize >> 20);
+ mem_dbg("checking for %08xMB chip in 1st bank\n", maxsize >> 20);
/* detect size of the 1st SDRAM bank */
p = (u8 *)KSEG1ADDR(0);
for (size = 2<<20; size <= (maxsize >> 1); size <<= 1) {
if (mem_check_pattern(p, size)) {
/* mirrored address */
- mem_dbg("mirrored data found at offset 0x%lX\n", size);
+ mem_dbg("mirrored data found at offset 0x%08x\n", size);
break;
}
}
- mem_dbg("chip size in 1st bank is %ldMB\n", size >> 20);
+ mem_dbg("chip size in 1st bank is %08xMB\n", size >> 20);
adm5120_memsize = size;
if (size != maxsize)
@@ -168,7 +168,7 @@ out:
MPMC_WRITE(MPMC_REG_DC0, MPMC_READ(MPMC_REG_DC0) | DC_BE);
MPMC_WRITE(MPMC_REG_DC1, MPMC_READ(MPMC_REG_DC1) | DC_BE);
- mem_dbg("%dx%ldMB memory found\n", (adm5120_memsize == size) ? 1 : 2 ,
+ mem_dbg("%dx%08xMB memory found\n", (adm5120_memsize == size) ? 1 : 2 ,
size >>20);
}
diff --git a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
index 009bf4a71..bf00e8bd2 100644
--- a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
+++ b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
@@ -57,6 +57,7 @@ extern unsigned long adm5120_memsize;
extern unsigned int adm5120_eth_num_ports;
extern unsigned char adm5120_eth_macs[6][6];
+extern void adm5120_soc_init(void) __init;
extern void adm5120_mem_init(void) __init;
extern void adm5120_time_init(void) __init;
extern void adm5120_ndelay(u32 ns);