xref: /rk3399_rockchip-uboot/include/configs/tegra114-common.h (revision f940c72e16f7bdebaaed79b290c1bcb6dc015053)
107067145STom Warren /*
207067145STom Warren  * Copyright (c) 2010-2013, NVIDIA CORPORATION.  All rights reserved.
307067145STom Warren  *
407067145STom Warren  * This program is free software; you can redistribute it and/or modify it
507067145STom Warren  * under the terms and conditions of the GNU General Public License,
607067145STom Warren  * version 2, as published by the Free Software Foundation.
707067145STom Warren  *
807067145STom Warren  * This program is distributed in the hope it will be useful, but WITHOUT
907067145STom Warren  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1007067145STom Warren  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1107067145STom Warren  * more details.
1207067145STom Warren  *
1307067145STom Warren  * You should have received a copy of the GNU General Public License
1407067145STom Warren  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
1507067145STom Warren  */
1607067145STom Warren 
1707067145STom Warren #ifndef _TEGRA114_COMMON_H_
1807067145STom Warren #define _TEGRA114_COMMON_H_
1907067145STom Warren #include "tegra-common.h"
2007067145STom Warren 
210d79f4f4SThierry Reding /* Cortex-A15 uses a cache line size of 64 bytes */
220d79f4f4SThierry Reding #define CONFIG_SYS_CACHELINE_SIZE	64
230d79f4f4SThierry Reding 
2407067145STom Warren /*
2507067145STom Warren  * NS16550 Configuration
2607067145STom Warren  */
2707067145STom Warren #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */
2807067145STom Warren 
2907067145STom Warren /* Environment information, boards can override if required */
3007067145STom Warren #define CONFIG_LOADADDR		0x80408000	/* def. location for kernel */
3107067145STom Warren 
3207067145STom Warren /*
3307067145STom Warren  * Miscellaneous configurable options
3407067145STom Warren  */
3507067145STom Warren #define CONFIG_SYS_LOAD_ADDR	0x80A00800	/* default */
3607067145STom Warren #define CONFIG_STACKBASE	0x82800000	/* 40MB */
3707067145STom Warren 
3807067145STom Warren /*-----------------------------------------------------------------------
3907067145STom Warren  * Physical Memory Map
4007067145STom Warren  */
4107067145STom Warren #define CONFIG_SYS_TEXT_BASE	0x8010E000
4207067145STom Warren 
4307067145STom Warren /*
4407067145STom Warren  * Memory layout for where various images get loaded by boot scripts:
4507067145STom Warren  *
4607067145STom Warren  * scriptaddr can be pretty much anywhere that doesn't conflict with something
4707067145STom Warren  *   else. Put it above BOOTMAPSZ to eliminate conflicts.
4807067145STom Warren  *
49*f940c72eSStephen Warren  * pxefile_addr_r can be pretty much anywhere that doesn't conflict with
50*f940c72eSStephen Warren  *   something else. Put it above BOOTMAPSZ to eliminate conflicts.
51*f940c72eSStephen Warren  *
5207067145STom Warren  * kernel_addr_r must be within the first 128M of RAM in order for the
5307067145STom Warren  *   kernel's CONFIG_AUTO_ZRELADDR option to work. Since the kernel will
5407067145STom Warren  *   decompress itself to 0x8000 after the start of RAM, kernel_addr_r
5507067145STom Warren  *   should not overlap that area, or the kernel will have to copy itself
5607067145STom Warren  *   somewhere else before decompression. Similarly, the address of any other
5707067145STom Warren  *   data passed to the kernel shouldn't overlap the start of RAM. Pushing
5807067145STom Warren  *   this up to 16M allows for a sizable kernel to be decompressed below the
5907067145STom Warren  *   compressed load address.
6007067145STom Warren  *
6107067145STom Warren  * fdt_addr_r simply shouldn't overlap anything else. Choosing 32M allows for
6207067145STom Warren  *   the compressed kernel to be up to 16M too.
6307067145STom Warren  *
6407067145STom Warren  * ramdisk_addr_r simply shouldn't overlap anything else. Choosing 33M allows
6507067145STom Warren  *   for the FDT/DTB to be up to 1M, which is hopefully plenty.
6607067145STom Warren  */
6707067145STom Warren #define MEM_LAYOUT_ENV_SETTINGS \
6807067145STom Warren 	"scriptaddr=0x90000000\0" \
69*f940c72eSStephen Warren 	"pxefile_addr_r=0x90100000\0" \
7007067145STom Warren 	"kernel_addr_r=0x81000000\0" \
7107067145STom Warren 	"fdt_addr_r=0x82000000\0" \
7207067145STom Warren 	"ramdisk_addr_r=0x82100000\0"
7307067145STom Warren 
7407067145STom Warren /* Defines for SPL */
7507067145STom Warren #define CONFIG_SPL_TEXT_BASE		0x80108000
7607067145STom Warren #define CONFIG_SYS_SPL_MALLOC_START	0x80090000
7707067145STom Warren #define CONFIG_SPL_STACK		0x800ffffc
7807067145STom Warren 
79a7f8b5e6STom Warren /* Total I2C ports on Tegra114 */
80a7f8b5e6STom Warren #define TEGRA_I2C_NUM_CONTROLLERS	5
81a7f8b5e6STom Warren 
82d6cf707eSJim Lin /* For USB EHCI controller */
83d6cf707eSJim Lin #define CONFIG_EHCI_IS_TDI
8481d21e98SJim Lin #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10
85f75dc784SStephen Warren #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 1
86d6cf707eSJim Lin 
8707067145STom Warren #endif /* _TEGRA114_COMMON_H_ */
88