mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-25 15:51:27 +02:00
powerpc: Move CONFIG_BPTR_VIRT_ADDR out of CONFIG namespace
This is only used in one file, and is never overridden. Move this out of CONFIG namespace. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
01d1b99c9b
commit
0b5870c3f5
@ -456,18 +456,18 @@ void setup_mp(void)
|
|||||||
flush_cache(bootpg, 4096);
|
flush_cache(bootpg, 4096);
|
||||||
|
|
||||||
/* look for the tlb covering the reset page, there better be one */
|
/* look for the tlb covering the reset page, there better be one */
|
||||||
i = find_tlb_idx((void *)CONFIG_BPTR_VIRT_ADDR, 1);
|
i = find_tlb_idx((void *)BPTR_VIRT_ADDR, 1);
|
||||||
|
|
||||||
/* we found a match */
|
/* we found a match */
|
||||||
if (i != -1) {
|
if (i != -1) {
|
||||||
/* map reset page to bootpg so we can copy code there */
|
/* map reset page to bootpg so we can copy code there */
|
||||||
disable_tlb(i);
|
disable_tlb(i);
|
||||||
|
|
||||||
set_tlb(1, CONFIG_BPTR_VIRT_ADDR, bootpg, /* tlb, epn, rpn */
|
set_tlb(1, BPTR_VIRT_ADDR, bootpg, /* tlb, epn, rpn */
|
||||||
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */
|
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, /* perms, wimge */
|
||||||
0, i, BOOKE_PAGESZ_4K, 1); /* ts, esel, tsize, iprot */
|
0, i, BOOKE_PAGESZ_4K, 1); /* ts, esel, tsize, iprot */
|
||||||
|
|
||||||
memcpy((void *)CONFIG_BPTR_VIRT_ADDR, (void *)fixup, 4096);
|
memcpy((void *)BPTR_VIRT_ADDR, (void *)fixup, 4096);
|
||||||
|
|
||||||
plat_mp_up(bootpg_map, pagesize);
|
plat_mp_up(bootpg_map, pagesize);
|
||||||
} else {
|
} else {
|
||||||
|
@ -31,9 +31,7 @@
|
|||||||
* Freescale's default e500 reset page.
|
* Freescale's default e500 reset page.
|
||||||
*/
|
*/
|
||||||
#if (defined(CONFIG_E500) && defined(CONFIG_MP))
|
#if (defined(CONFIG_E500) && defined(CONFIG_MP))
|
||||||
#ifndef CONFIG_BPTR_VIRT_ADDR
|
#define BPTR_VIRT_ADDR 0xfffff000
|
||||||
#define CONFIG_BPTR_VIRT_ADDR 0xfffff000
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Since so many PPC SOCs have a semi-common LBC, define this here */
|
/* Since so many PPC SOCs have a semi-common LBC, define this here */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user