2 * Copyright (c) 2016 Rockchip Electronics Co., Ltd
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm/armv8/mmu.h>
10 #include <asm/arch/hardware.h>
12 #define GRF_EMMCCORE_CON11 0xff77f02c
14 static struct mm_region rk3399_mem_map[] = {
19 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
25 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
27 PTE_BLOCK_PXN | PTE_BLOCK_UXN
34 struct mm_region *mem_map = rk3399_mem_map;
36 int arch_cpu_init(void)
38 /* We do some SoC one time setting here. */
40 /* Emmc clock generator: disable the clock multipilier */
41 rk_clrreg(GRF_EMMCCORE_CON11, 0x0ff);