xref: /rk3399_rockchip-uboot/include/configs/tegra210-common.h (revision 211aaf309cde193918f9a19b0b010acebfd80a82)
1873e3ef9STom Warren /*
2873e3ef9STom Warren  * (C) Copyright 2013-2015
3873e3ef9STom Warren  * NVIDIA Corporation <www.nvidia.com>
4873e3ef9STom Warren  *
5873e3ef9STom Warren  * SPDX-License-Identifier:     GPL-2.0+
6873e3ef9STom Warren  */
7873e3ef9STom Warren 
8873e3ef9STom Warren #ifndef _TEGRA210_COMMON_H_
9873e3ef9STom Warren #define _TEGRA210_COMMON_H_
10873e3ef9STom Warren 
11873e3ef9STom Warren #include "tegra-common.h"
12873e3ef9STom Warren 
13873e3ef9STom Warren /*
14873e3ef9STom Warren  * NS16550 Configuration
15873e3ef9STom Warren  */
16873e3ef9STom Warren #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */
17873e3ef9STom Warren 
18873e3ef9STom Warren /*
19873e3ef9STom Warren  * Miscellaneous configurable options
20873e3ef9STom Warren  */
21873e3ef9STom Warren #define CONFIG_STACKBASE	0x82800000	/* 40MB */
22873e3ef9STom Warren 
23873e3ef9STom Warren /*-----------------------------------------------------------------------
24873e3ef9STom Warren  * Physical Memory Map
25873e3ef9STom Warren  */
26*930c514dSStephen Warren #define CONFIG_SYS_TEXT_BASE	0x80110000
27873e3ef9STom Warren 
28873e3ef9STom Warren /* Generic Interrupt Controller */
29873e3ef9STom Warren #define CONFIG_GICV2
30873e3ef9STom Warren 
31873e3ef9STom Warren /*
32873e3ef9STom Warren  * Memory layout for where various images get loaded by boot scripts:
33873e3ef9STom Warren  *
34873e3ef9STom Warren  * scriptaddr can be pretty much anywhere that doesn't conflict with something
35873e3ef9STom Warren  *   else. Put it above BOOTMAPSZ to eliminate conflicts.
36873e3ef9STom Warren  *
37873e3ef9STom Warren  * pxefile_addr_r can be pretty much anywhere that doesn't conflict with
38873e3ef9STom Warren  *   something else. Put it above BOOTMAPSZ to eliminate conflicts.
39873e3ef9STom Warren  *
40873e3ef9STom Warren  * kernel_addr_r must be within the first 128M of RAM in order for the
41873e3ef9STom Warren  *   kernel's CONFIG_AUTO_ZRELADDR option to work. Since the kernel will
42873e3ef9STom Warren  *   decompress itself to 0x8000 after the start of RAM, kernel_addr_r
43873e3ef9STom Warren  *   should not overlap that area, or the kernel will have to copy itself
44873e3ef9STom Warren  *   somewhere else before decompression. Similarly, the address of any other
45873e3ef9STom Warren  *   data passed to the kernel shouldn't overlap the start of RAM. Pushing
46873e3ef9STom Warren  *   this up to 16M allows for a sizable kernel to be decompressed below the
47873e3ef9STom Warren  *   compressed load address.
48873e3ef9STom Warren  *
49873e3ef9STom Warren  * fdt_addr_r simply shouldn't overlap anything else. Choosing 32M allows for
50873e3ef9STom Warren  *   the compressed kernel to be up to 16M too.
51873e3ef9STom Warren  *
52873e3ef9STom Warren  * ramdisk_addr_r simply shouldn't overlap anything else. Choosing 33M allows
53873e3ef9STom Warren  *   for the FDT/DTB to be up to 1M, which is hopefully plenty.
54873e3ef9STom Warren  */
55a8903167SStephen Warren #define CONFIG_LOADADDR 0x80080000
56873e3ef9STom Warren #define MEM_LAYOUT_ENV_SETTINGS \
57873e3ef9STom Warren 	"scriptaddr=0x90000000\0" \
58873e3ef9STom Warren 	"pxefile_addr_r=0x90100000\0" \
59873e3ef9STom Warren 	"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
60873e3ef9STom Warren 	"fdt_addr_r=0x82000000\0" \
61873e3ef9STom Warren 	"ramdisk_addr_r=0x82100000\0"
62873e3ef9STom Warren 
63873e3ef9STom Warren /* Defines for SPL */
64873e3ef9STom Warren #define CONFIG_SPL_TEXT_BASE		0x80108000
65873e3ef9STom Warren #define CONFIG_SYS_SPL_MALLOC_START	0x80090000
66873e3ef9STom Warren #define CONFIG_SPL_STACK		0x800ffffc
67873e3ef9STom Warren 
68873e3ef9STom Warren /* For USB EHCI controller */
69873e3ef9STom Warren #define CONFIG_EHCI_IS_TDI
70873e3ef9STom Warren #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10
71873e3ef9STom Warren 
72871d78edSAlexandre Courbot /* GPU needs setup */
73871d78edSAlexandre Courbot #define CONFIG_TEGRA_GPU
74871d78edSAlexandre Courbot 
75873e3ef9STom Warren #endif /* _TEGRA210_COMMON_H_ */
76