From: Alexander Graf Date: Mon, 22 Feb 2016 02:57:10 +0100 Subject: [U-Boot] [PATCH 7/9] hikey: Add MMU tables In-Reply-To: <1456106232-233210-1-git-send-email-agraf@suse.de> References: <1456106232-233210-1-git-send-email-agraf@suse.de> Message-ID: <1456106232-233210-8-git-send-email-agraf@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The hikey runs with dcache disabled today. There really should be no reason not to use caches on AArch64, so let's add MMU definitions and enable the dcache. Signed-off-by: Alexander Graf --- include/configs/hikey.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/include/configs/hikey.h b/include/configs/hikey.h index 796861e..ed0336c 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -21,8 +21,23 @@ #define CONFIG_SUPPORT_RAW_INITRD -/* Cache Definitions */ -#define CONFIG_SYS_DCACHE_OFF +/* MMU Definitions */ +#define CONFIG_SYS_CACHELINE_SIZE 64 +#define CONFIG_SYS_FULL_VA +#define CONFIG_SYS_MEM_MAP { \ + { \ + .base = 0x0UL, \ + .size = 0x80000000UL, \ + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | \ + PTE_BLOCK_INNER_SHARE \ + }, { \ + .base = 0x80000000UL, \ + .size = 0x80000000UL, \ + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | \ + PTE_BLOCK_NON_SHARE | \ + PTE_BLOCK_PXN | PTE_BLOCK_UXN \ + }, \ + } #define CONFIG_IDENT_STRING "hikey" -- 1.8.5.6