]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-uniphier/init_page_table.S
imx: mx7: implement functions to boot auxiliary core
[u-boot] / arch / arm / mach-uniphier / init_page_table.S
index 2638bcd7793d283357640e538a1fdc2b11734ec5..2d3ad15c6e2a20601c2a69b86e0b7209c6f3ff2c 100644 (file)
@@ -1,3 +1,9 @@
+/*
+ * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
 #include <config.h>
 #include <linux/linkage.h>
 
 #define NORMAL 0x0000000e /* Normal Memory Write-Back, No Write-Allocate */
 
 #define TEXT_SECTION   ((CONFIG_SPL_TEXT_BASE) >> (SECTION_SHIFT))
-#define STACK_SECTION  ((CONFIG_SYS_INIT_SP_ADDR) >> (SECTION_SHIFT))
+#define STACK_SECTION  ((CONFIG_SPL_STACK) >> (SECTION_SHIFT))
 
        .section ".rodata"
        .align 14
 ENTRY(init_page_table)
        section = 0
        .rept NR_SECTIONS
-       .if section == TEXT_SECTION || section == STACK_SECTION
+       .if section == 0 || section == 1 || section == STACK_SECTION
        attr = NORMAL
        .else
        attr = DEVICE