2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-02-17 23:34:35 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2013
|
|
|
|
* Texas Instruments Incorporated.
|
|
|
|
* Sricharan R <r.sricharan@ti.com>
|
|
|
|
*
|
|
|
|
* Derived from OMAP4 done by:
|
|
|
|
* Aneesh V <aneesh@ti.com>
|
|
|
|
*
|
|
|
|
* TI OMAP5 AND DRA7XX common configuration settings
|
|
|
|
*
|
2013-08-09 15:22:18 +00:00
|
|
|
* For more details, please see the technical documents listed at
|
|
|
|
* http://www.ti.com/product/omap5432
|
2013-02-17 23:34:35 +00:00
|
|
|
*/
|
|
|
|
|
2013-12-06 20:30:19 +00:00
|
|
|
#ifndef __CONFIG_TI_OMAP5_COMMON_H
|
|
|
|
#define __CONFIG_TI_OMAP5_COMMON_H
|
2013-02-17 23:34:35 +00:00
|
|
|
|
2013-08-09 15:22:18 +00:00
|
|
|
/* Use General purpose timer 1 */
|
|
|
|
#define CONFIG_SYS_TIMERBASE GPT2_BASE
|
|
|
|
|
2013-08-20 12:53:52 +00:00
|
|
|
/*
|
|
|
|
* For the DDR timing information we can either dynamically determine
|
|
|
|
* the timings to use or use pre-determined timings (based on using the
|
|
|
|
* dynamic method. Default to the static timing infomation.
|
|
|
|
*/
|
2013-08-09 15:22:18 +00:00
|
|
|
#define CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
|
|
|
|
#ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
|
|
|
|
#define CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION
|
|
|
|
#define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CONFIG_PALMAS_POWER
|
|
|
|
|
|
|
|
#include <asm/arch/cpu.h>
|
|
|
|
#include <asm/arch/omap.h>
|
2013-02-17 23:34:35 +00:00
|
|
|
|
2015-07-22 23:05:41 +00:00
|
|
|
#include <configs/ti_armv7_omap.h>
|
2013-02-17 23:34:35 +00:00
|
|
|
|
|
|
|
/*
|
2013-08-09 15:22:18 +00:00
|
|
|
* Hardware drivers
|
2013-02-17 23:34:35 +00:00
|
|
|
*/
|
2015-11-19 13:48:12 +00:00
|
|
|
#define CONFIG_SYS_NS16550_CLK 48000000
|
2017-02-10 15:07:20 +00:00
|
|
|
#if !defined(CONFIG_DM_SERIAL)
|
2013-02-17 23:34:35 +00:00
|
|
|
#define CONFIG_SYS_NS16550_SERIAL
|
|
|
|
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
|
2015-09-17 20:47:04 +00:00
|
|
|
#endif
|
2013-02-17 23:34:35 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Environment setup
|
|
|
|
*/
|
2013-04-05 06:21:45 +00:00
|
|
|
|
2015-02-23 13:10:20 +00:00
|
|
|
#ifndef DFUARGS
|
|
|
|
#define DFUARGS
|
|
|
|
#endif
|
|
|
|
|
2017-06-14 18:34:23 +00:00
|
|
|
#include <environment/ti/boot.h>
|
2017-04-06 09:22:56 +00:00
|
|
|
#include <environment/ti/mmc.h>
|
2019-02-27 07:59:38 +00:00
|
|
|
#include <environment/ti/nand.h>
|
2017-04-06 09:22:56 +00:00
|
|
|
|
2013-02-17 23:34:35 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
2014-03-28 19:03:29 +00:00
|
|
|
DEFAULT_LINUX_BOOT_ENV \
|
2015-08-28 08:05:07 +00:00
|
|
|
DEFAULT_MMC_TI_ARGS \
|
2016-11-29 06:28:00 +00:00
|
|
|
DEFAULT_FIT_TI_ARGS \
|
2017-06-14 18:34:23 +00:00
|
|
|
DEFAULT_COMMON_BOOT_TI_ARGS \
|
|
|
|
DEFAULT_FDT_TI_ARGS \
|
2015-02-23 13:10:20 +00:00
|
|
|
DFUARGS \
|
2015-04-21 12:51:04 +00:00
|
|
|
NETARGS \
|
2019-02-27 07:59:38 +00:00
|
|
|
NANDARGS \
|
2013-02-17 23:34:35 +00:00
|
|
|
|
2013-08-20 12:53:52 +00:00
|
|
|
/*
|
|
|
|
* SPL related defines. The Public RAM memory map the ROM defines the
|
2016-05-20 00:10:50 +00:00
|
|
|
* area between 0x40300000 and 0x4031E000 as a download area for OMAP5.
|
|
|
|
* On DRA7xx/AM57XX the download area is between 0x40300000 and 0x4037E000.
|
|
|
|
* We set CONFIG_SPL_DISPLAY_PRINT to have omap_rev_string() called and
|
2013-08-20 12:53:52 +00:00
|
|
|
* print some information.
|
|
|
|
*/
|
2016-05-20 00:10:50 +00:00
|
|
|
#ifdef CONFIG_TI_SECURE_DEVICE
|
|
|
|
/*
|
|
|
|
* For memory booting on HS parts, the first 4KB of the internal RAM is
|
|
|
|
* reserved for secure world use and the flash loader image is
|
|
|
|
* preceded by a secure certificate. The SPL will therefore run in internal
|
|
|
|
* RAM from address 0x40301350 (0x40300000+0x1000(reserved)+0x350(cert)).
|
|
|
|
*/
|
|
|
|
#define TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ 0x1000
|
2019-01-17 19:43:05 +00:00
|
|
|
#define CONFIG_SPL_TEXT_BASE CONFIG_ISW_ENTRY_ADDR
|
2016-09-02 05:40:23 +00:00
|
|
|
/* If no specific start address is specified then the secure EMIF
|
|
|
|
* region will be placed at the end of the DDR space. In order to prevent
|
|
|
|
* the main u-boot relocation from clobbering that memory and causing a
|
|
|
|
* firewall violation, we tell u-boot that memory is protected RAM (PRAM)
|
|
|
|
*/
|
|
|
|
#if (CONFIG_TI_SECURE_EMIF_REGION_START == 0)
|
|
|
|
#define CONFIG_PRAM (CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE) >> 10
|
|
|
|
#endif
|
2016-05-20 00:10:50 +00:00
|
|
|
#else
|
|
|
|
/*
|
|
|
|
* For all booting on GP parts, the flash loader image is
|
|
|
|
* downloaded into internal RAM at address 0x40300000.
|
|
|
|
*/
|
|
|
|
#define CONFIG_SPL_TEXT_BASE 0x40300000
|
|
|
|
#endif
|
|
|
|
|
2014-04-03 11:52:53 +00:00
|
|
|
#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + \
|
|
|
|
(128 << 20))
|
2015-09-29 09:12:26 +00:00
|
|
|
#ifdef CONFIG_SPL_BUILD
|
2015-12-24 10:38:18 +00:00
|
|
|
#undef CONFIG_TIMER
|
2015-09-29 09:12:26 +00:00
|
|
|
#endif
|
|
|
|
|
2013-12-06 20:30:19 +00:00
|
|
|
#endif /* __CONFIG_TI_OMAP5_COMMON_H */
|