diff options
author | Tom Rini <trini@konsulko.com> | 2016-07-21 20:20:00 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-21 20:20:00 -0400 |
commit | 89ca873e2ddea859526f25f678fa53dda055e90f (patch) | |
tree | 3de5d39c9e3a257d50727b50057336ca41aac2db /arch/powerpc/cpu/mpc8xxx/pamu_table.c | |
parent | 9f84da8de1873593d9b708aa4a8a24f46e67c744 (diff) | |
parent | b24a4f6247d867f1301edc1c6390aca79ecbe16b (diff) | |
download | u-boot-imx-89ca873e2ddea859526f25f678fa53dda055e90f.zip u-boot-imx-89ca873e2ddea859526f25f678fa53dda055e90f.tar.gz u-boot-imx-89ca873e2ddea859526f25f678fa53dda055e90f.tar.bz2 |
Merge git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/pamu_table.c')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/pamu_table.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/pamu_table.c b/arch/powerpc/cpu/mpc8xxx/pamu_table.c index 26c5ea4..a8e6f51 100644 --- a/arch/powerpc/cpu/mpc8xxx/pamu_table.c +++ b/arch/powerpc/cpu/mpc8xxx/pamu_table.c @@ -28,6 +28,14 @@ void construct_pamu_addr_table(struct pamu_addr_tbl *tbl, int *num_entries) i++; #endif +#if (defined(CONFIG_SPL_BUILD) && (CONFIG_SYS_INIT_L3_VADDR)) + tbl->start_addr[i] = + (uint64_t)virt_to_phys((void *)CONFIG_SYS_INIT_L3_VADDR); + tbl->size[i] = 256 * 1024; /* 256K CPC flash */ + tbl->end_addr[i] = tbl->start_addr[i] + tbl->size[i] - 1; + + i++; +#endif debug("PAMU address\t\t\tsize\n"); for (j = 0; j < i ; j++) debug("%llx \t\t\t%llx\n", tbl->start_addr[j], tbl->size[j]); |