summaryrefslogtreecommitdiff
path: root/arch/arm/lib/board.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:39 +0000
committerTom Rini <trini@ti.com>2013-02-01 15:21:58 -0500
commit34fd5d253dee74fa8e431fc2183aa9f2637afa04 (patch)
tree35ee1ba256a3c5b7f4ca512b9c58b3b922ef8a05 /arch/arm/lib/board.c
parent37434783bbc3a16658abdaec357ad9d9310947d2 (diff)
downloadu-boot-34fd5d253dee74fa8e431fc2183aa9f2637afa04.tar.gz
u-boot-34fd5d253dee74fa8e431fc2183aa9f2637afa04.tar.bz2
u-boot-34fd5d253dee74fa8e431fc2183aa9f2637afa04.zip
arm: Move tlb_addr and tlb_size to arch_global_data
Move these fields into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Address tlb_size in this patch as well] Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/lib/board.c')
-rw-r--r--arch/arm/lib/board.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 9f861ccaf6..162e2cc863 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -355,14 +355,14 @@ void board_init_f(ulong bootflag)
#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
/* reserve TLB table */
- gd->tlb_size = 4096 * 4;
- addr -= gd->tlb_size;
+ gd->arch.tlb_size = 4096 * 4;
+ addr -= gd->arch.tlb_size;
/* round down to next 64 kB limit */
addr &= ~(0x10000 - 1);
- gd->tlb_addr = addr;
- debug("TLB table from %08lx to %08lx\n", addr, addr + gd->tlb_size);
+ gd->arch.tlb_addr = addr;
+ debug("TLB table from %08lx to %08lx\n", addr, addr + gd->arch.tlb_size);
#endif
/* round down to next 4 kB limit */