]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/gdsys/gdppc440etx/init.S
karo: fdt: fix panel-dpi support
[karo-tx-uboot.git] / board / gdsys / gdppc440etx / init.S
1 /*
2 * (C) Copyright 2008
3 * Dirk Eibach,  Guntermann & Drunck GmbH, eibach@gdsys.de
4 *
5 * based on board/amcc/yosemite/init.S
6 * original Copyright not specified there
7  * SPDX-License-Identifier:     GPL-2.0+
8 */
9
10 #include <asm-offsets.h>
11 #include <ppc_asm.tmpl>
12 #include <config.h>
13
14 #include <asm/mmu.h>
15
16 /**************************************************************************
17  * TLB TABLE
18  *
19  * This table is used by the cpu boot code to setup the initial tlb
20  * entries. Rather than make broad assumptions in the cpu source tree,
21  * this table lets each board set things up however they like.
22  *
23  *  Pointer to the table is returned in r1
24  *
25  *************************************************************************/
26
27     .section .bootpg,"ax"
28     .globl tlbtab
29
30 tlbtab:
31     tlbtab_start
32
33     /*
34      * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use
35      * the speed up boot process. It is patched after relocation to enable SA_I
36      */
37     tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR,
38         0, AC_RWX | SA_G/*|SA_I*/)
39
40     /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
41     tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR,
42         0, AC_RWX | SA_G )
43
44     tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE,
45         0, AC_RWX | SA_IG )
46     tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE,
47         0, AC_RW | SA_IG )
48
49     /* PCI */
50     tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE,
51         0, AC_RW | SA_IG )
52     tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1,
53         0, AC_RW | SA_IG )
54     tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2,
55         0, AC_RW | SA_IG )
56     tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3,
57         0, AC_RW | SA_IG )
58
59     tlbtab_end