Blame view

include/configs/ti_omap5_common.h 3.01 KB
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
1
2
3
4
5
6
7
8
9
10
  /*
   * (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
   *
3765b3e7b   Wolfgang Denk   Coding Style clea...
11
   * SPDX-License-Identifier:	GPL-2.0+
a80175748   Tom Rini   TI:omap5/dra7xx: ...
12
13
14
   *
   * For more details, please see the technical documents listed at
   * http://www.ti.com/product/omap5432
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
15
   */
3d657a05a   Enric Balletbò i Serra   ARM: OMAP5: Renam...
16
17
  #ifndef __CONFIG_TI_OMAP5_COMMON_H
  #define __CONFIG_TI_OMAP5_COMMON_H
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
18

a80175748   Tom Rini   TI:omap5/dra7xx: ...
19
20
  /* Use General purpose timer 1 */
  #define CONFIG_SYS_TIMERBASE		GPT2_BASE
078aa4f13   Tom Rini   TI:omap5: Clarify...
21
22
23
24
25
  /*
   * 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.
   */
a80175748   Tom Rini   TI:omap5/dra7xx: ...
26
  #define CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
a80175748   Tom Rini   TI:omap5/dra7xx: ...
27
28
29
30
  #ifndef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
  #define CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION
  #define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
  #endif
a80175748   Tom Rini   TI:omap5/dra7xx: ...
31
  #define CONFIG_PALMAS_POWER
a80175748   Tom Rini   TI:omap5/dra7xx: ...
32
33
34
  
  #include <asm/arch/cpu.h>
  #include <asm/arch/omap.h>
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
35

9a0f4004c   Nishanth Menon   configs: split ti...
36
  #include <configs/ti_armv7_omap.h>
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
37
38
  
  /*
a80175748   Tom Rini   TI:omap5/dra7xx: ...
39
   * Hardware drivers
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
40
   */
c7b9686d5   Thomas Chou   ns16550: unify se...
41
  #define CONFIG_SYS_NS16550_CLK		48000000
0a3f407a7   Lokesh Vutla   configs: dra7xx_e...
42
  #if !defined(CONFIG_DM_SERIAL)
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
43
44
  #define CONFIG_SYS_NS16550_SERIAL
  #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
01e870b70   Tom Rini   ti_omap5_common.h...
45
  #endif
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
46

3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
47
48
49
  /*
   * Environment setup
   */
9552ee3ea   Tom Rini   omap5_uevm.h: Mov...
50

7a5a3e37b   Kishon Vijay Abraham I   include: configs:...
51
52
53
  #ifndef DFUARGS
  #define DFUARGS
  #endif
4fd79ac9a   Semen Protsenko   arm: omap: Extrac...
54
  #include <environment/ti/boot.h>
88fdfcd21   Sekhar Nori   ARM: ti: consolid...
55
  #include <environment/ti/mmc.h>
4ec3f6e51   Lokesh Vutla   ARM: DRA7xx: Upda...
56
  #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
57
  #define CONFIG_EXTRA_ENV_SETTINGS \
fb3ad9bd9   Tom Rini   TI: Add, use a DE...
58
  	DEFAULT_LINUX_BOOT_ENV \
85d17be37   Lokesh Vutla   ti_armv7_common: ...
59
  	DEFAULT_MMC_TI_ARGS \
1e93cc847   Lokesh Vutla   ti_armv7_common: ...
60
  	DEFAULT_FIT_TI_ARGS \
4fd79ac9a   Semen Protsenko   arm: omap: Extrac...
61
62
  	DEFAULT_COMMON_BOOT_TI_ARGS \
  	DEFAULT_FDT_TI_ARGS \
7a5a3e37b   Kishon Vijay Abraham I   include: configs:...
63
  	DFUARGS \
2320866b9   Cooper Jr., Franklin   ti: am335x/am437x...
64
  	NETARGS \
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
65

078aa4f13   Tom Rini   TI:omap5: Clarify...
66
67
  /*
   * SPL related defines.  The Public RAM memory map the ROM defines the
b9b8403f4   Daniel Allred   ti_omap5_common: ...
68
69
70
   * 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
078aa4f13   Tom Rini   TI:omap5: Clarify...
71
72
   * print some information.
   */
b9b8403f4   Daniel Allred   ti_omap5_common: ...
73
74
75
76
77
78
79
80
81
  #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
  #define CONFIG_SPL_TEXT_BASE	0x40301350
32d333f2f   Daniel Allred   ti_omap5_common: ...
82
83
84
85
86
87
88
89
  /* 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
b9b8403f4   Daniel Allred   ti_omap5_common: ...
90
91
92
93
94
95
96
  #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
d3289aac6   Tom Rini   TI:armv7: Change ...
97
98
  #define CONFIG_SYS_SPL_ARGS_ADDR	(CONFIG_SYS_SDRAM_BASE + \
  					 (128 << 20))
3ef5ebeb8   Lokesh Vutla   arm: dra7xx: Add ...
99

136b1013a   Mugunthan V N   ti_omap5_common: ...
100
  #ifdef CONFIG_SPL_BUILD
30a0cdb65   Mugunthan V N   ti_omap5_common: ...
101
  #undef CONFIG_TIMER
136b1013a   Mugunthan V N   ti_omap5_common: ...
102
  #endif
3d657a05a   Enric Balletbò i Serra   ARM: OMAP5: Renam...
103
  #endif /* __CONFIG_TI_OMAP5_COMMON_H */