2 * Copyright (c) 2010, Applied Micro Circuits Corporation
3 * Author: Tirumala R Marri <tmarri@apm.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm-offsets.h>
9 #include <ppc_asm.tmpl>
12 #include <asm/ppc4xx.h>
14 /**************************************************************************
17 * This table is used by the cpu boot code to setup the initial tlb
18 * entries. Rather than make broad assumptions in the cpu source tree,
19 * this table lets each board set things up however they like.
21 * Pointer to the table is returned in r1
23 *************************************************************************/
31 tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_16M, CONFIG_SYS_BOOT_BASE_ADDR,
34 /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
35 tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR,
38 /* TLB-entry for OCM */
39 tlbentry(CONFIG_SYS_OCM_BASE, SZ_64K, 0x00040000, 4,
42 /* TLB-entry for Local Configuration registers => peripherals */
43 tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_16K,
44 CONFIG_SYS_PERIPHERAL_BASE, 4, AC_RWX | SA_IG)