xref: /rk3399_rockchip-uboot/include/configs/tegra210-common.h (revision 930c514d47a29e1f94a5b61fe965400a4f5635c3)
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 /* Cortex-A57 uses a cache line size of 64 bytes */
14873e3ef9STom Warren #define CONFIG_SYS_CACHELINE_SIZE	64
15873e3ef9STom Warren 
16873e3ef9STom Warren /*
17873e3ef9STom Warren  * NS16550 Configuration
18873e3ef9STom Warren  */
19873e3ef9STom Warren #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */
20873e3ef9STom Warren 
21873e3ef9STom Warren /*
22873e3ef9STom Warren  * Miscellaneous configurable options
23873e3ef9STom Warren  */
24873e3ef9STom Warren #define CONFIG_STACKBASE	0x82800000	/* 40MB */
25873e3ef9STom Warren 
26873e3ef9STom Warren /*-----------------------------------------------------------------------
27873e3ef9STom Warren  * Physical Memory Map
28873e3ef9STom Warren  */
29*930c514dSStephen Warren #define CONFIG_SYS_TEXT_BASE	0x80110000
30873e3ef9STom Warren 
31873e3ef9STom Warren /* Generic Interrupt Controller */
32873e3ef9STom Warren #define CONFIG_GICV2
33873e3ef9STom Warren 
34873e3ef9STom Warren /*
35873e3ef9STom Warren  * Memory layout for where various images get loaded by boot scripts:
36873e3ef9STom Warren  *
37873e3ef9STom Warren  * scriptaddr can be pretty much anywhere that doesn't conflict with something
38873e3ef9STom Warren  *   else. Put it above BOOTMAPSZ to eliminate conflicts.
39873e3ef9STom Warren  *
40873e3ef9STom Warren  * pxefile_addr_r can be pretty much anywhere that doesn't conflict with
41873e3ef9STom Warren  *   something else. Put it above BOOTMAPSZ to eliminate conflicts.
42873e3ef9STom Warren  *
43873e3ef9STom Warren  * kernel_addr_r must be within the first 128M of RAM in order for the
44873e3ef9STom Warren  *   kernel's CONFIG_AUTO_ZRELADDR option to work. Since the kernel will
45873e3ef9STom Warren  *   decompress itself to 0x8000 after the start of RAM, kernel_addr_r
46873e3ef9STom Warren  *   should not overlap that area, or the kernel will have to copy itself
47873e3ef9STom Warren  *   somewhere else before decompression. Similarly, the address of any other
48873e3ef9STom Warren  *   data passed to the kernel shouldn't overlap the start of RAM. Pushing
49873e3ef9STom Warren  *   this up to 16M allows for a sizable kernel to be decompressed below the
50873e3ef9STom Warren  *   compressed load address.
51873e3ef9STom Warren  *
52873e3ef9STom Warren  * fdt_addr_r simply shouldn't overlap anything else. Choosing 32M allows for
53873e3ef9STom Warren  *   the compressed kernel to be up to 16M too.
54873e3ef9STom Warren  *
55873e3ef9STom Warren  * ramdisk_addr_r simply shouldn't overlap anything else. Choosing 33M allows
56873e3ef9STom Warren  *   for the FDT/DTB to be up to 1M, which is hopefully plenty.
57873e3ef9STom Warren  */
58a8903167SStephen Warren #define CONFIG_LOADADDR 0x80080000
59873e3ef9STom Warren #define MEM_LAYOUT_ENV_SETTINGS \
60873e3ef9STom Warren 	"scriptaddr=0x90000000\0" \
61873e3ef9STom Warren 	"pxefile_addr_r=0x90100000\0" \
62873e3ef9STom Warren 	"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
63873e3ef9STom Warren 	"fdt_addr_r=0x82000000\0" \
64873e3ef9STom Warren 	"ramdisk_addr_r=0x82100000\0"
65873e3ef9STom Warren 
66873e3ef9STom Warren /* Defines for SPL */
67873e3ef9STom Warren #define CONFIG_SPL_TEXT_BASE		0x80108000
68873e3ef9STom Warren #define CONFIG_SYS_SPL_MALLOC_START	0x80090000
69873e3ef9STom Warren #define CONFIG_SPL_STACK		0x800ffffc
70873e3ef9STom Warren 
71873e3ef9STom Warren /* For USB EHCI controller */
72873e3ef9STom Warren #define CONFIG_EHCI_IS_TDI
73873e3ef9STom Warren #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10
74873e3ef9STom Warren #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 1
75873e3ef9STom Warren 
76871d78edSAlexandre Courbot /* GPU needs setup */
77871d78edSAlexandre Courbot #define CONFIG_TEGRA_GPU
78871d78edSAlexandre Courbot 
79873e3ef9STom Warren #endif /* _TEGRA210_COMMON_H_ */
80