2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-12-11 13:34:18 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2010-2012
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*/
|
|
|
|
|
2013-02-26 12:18:48 +00:00
|
|
|
#ifndef _TEGRA_COMMON_H_
|
|
|
|
#define _TEGRA_COMMON_H_
|
2014-02-26 13:47:58 +00:00
|
|
|
#include <linux/sizes.h>
|
2012-12-11 13:34:18 +00:00
|
|
|
#include <linux/stringify.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* High Level Configuration Options
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm/arch/tegra.h> /* get chip and board defs */
|
|
|
|
|
|
|
|
/* Environment */
|
|
|
|
|
|
|
|
/*
|
2013-02-26 12:18:48 +00:00
|
|
|
* NS16550 Configuration
|
2012-12-11 13:34:18 +00:00
|
|
|
*/
|
2022-11-16 18:10:28 +00:00
|
|
|
#define CFG_SYS_NS16550_CLK V_NS16550_CLK
|
2012-12-11 13:34:18 +00:00
|
|
|
|
2020-04-01 23:28:54 +00:00
|
|
|
#ifdef CONFIG_ARM64
|
|
|
|
#define FDTFILE "nvidia/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
|
|
|
|
#else
|
|
|
|
#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb"
|
|
|
|
#endif
|
|
|
|
|
2012-12-11 13:34:18 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Physical Memory Map
|
|
|
|
*/
|
|
|
|
#define PHYS_SDRAM_1 NV_PA_SDRC_CS0
|
|
|
|
#define PHYS_SDRAM_1_SIZE 0x20000000 /* 512M */
|
|
|
|
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE PHYS_SDRAM_1
|
2012-12-11 13:34:18 +00:00
|
|
|
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_BOOTMAPSZ (256 << 20) /* 256M */
|
2012-12-11 13:34:18 +00:00
|
|
|
|
2017-12-20 01:30:37 +00:00
|
|
|
#ifndef CONFIG_ARM64
|
2022-12-04 15:13:55 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR CFG_STACKBASE
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_SIZE CONFIG_SYS_MALLOC_LEN
|
2012-12-11 13:34:18 +00:00
|
|
|
|
|
|
|
/* Defines for SPL */
|
2017-12-20 01:30:35 +00:00
|
|
|
#endif
|
2012-12-11 13:34:18 +00:00
|
|
|
|
|
|
|
#endif /* _TEGRA_COMMON_H_ */
|