]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-uniphier/init_page_table.S
4ed2656ee97c51e53c6efce7e4a4f8e83c16d7dd
[people/ms/u-boot.git] / arch / arm / mach-uniphier / init_page_table.S
1 /*
2 * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #include <config.h>
8 #include <linux/linkage.h>
9
10 /* page table */
11 #define NR_SECTIONS 4096
12 #define SECTION_SHIFT 20
13 #define DEVICE 0x00002002 /* Non-shareable Device */
14 #define NORMAL 0x0000000e /* Normal Memory Write-Back, No Write-Allocate */
15
16 .section ".rodata"
17 .align 14
18 ENTRY(init_page_table)
19 section = 0
20 .rept NR_SECTIONS
21 .if section == 0 || section == 1
22 attr = NORMAL
23 .else
24 attr = DEVICE
25 .endif
26 .word (section << SECTION_SHIFT) | attr
27 section = section + 1
28 .endr
29 END(init_page_table)