]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/am43xx_evm.h
ARM: AM43xx: Add L2 Support
[karo-tx-uboot.git] / include / configs / am43xx_evm.h
1 /*
2  * am43xx_evm.h
3  *
4  * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #ifndef __CONFIG_AM43XX_EVM_H
10 #define __CONFIG_AM43XX_EVM_H
11
12 #define CONFIG_AM43XX
13
14 #define CONFIG_BOARD_LATE_INIT
15 #define CONFIG_ARCH_CPU_INIT
16 #define CONFIG_SYS_CACHELINE_SIZE       32
17 #define CONFIG_MAX_RAM_BANK_SIZE        (1024 << 20)    /* 1GB */
18 #define CONFIG_SYS_TIMERBASE            0x48040000      /* Use Timer2 */
19
20 #include <asm/arch/omap.h>
21
22 /* NS16550 Configuration */
23 #define CONFIG_SYS_NS16550
24 #define CONFIG_SYS_NS16550_SERIAL
25 #define CONFIG_SYS_NS16550_REG_SIZE     (-4)
26 #define CONFIG_SYS_NS16550_CLK          48000000
27
28 /* SPL defines. */
29 #define CONFIG_SPL_TEXT_BASE            0x40300350
30 #define CONFIG_SPL_MAX_SIZE             (0x40337C00 - CONFIG_SPL_TEXT_BASE)
31 #define CONFIG_SPL_YMODEM_SUPPORT
32
33 /* Enabling L2 Cache */
34 #define CONFIG_SYS_L2_PL310
35 #define CONFIG_SYS_PL310_BASE   0x48242000
36 #define CONFIG_SYS_CACHELINE_SIZE       32
37
38 /*
39  * Since SPL did pll and ddr initialization for us,
40  * we don't need to do it twice.
41  */
42 #if !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_NOR_BOOT)
43 #define CONFIG_SKIP_LOWLEVEL_INIT
44 #endif
45
46 /* Now bring in the rest of the common code. */
47 #include <configs/ti_armv7_common.h>
48
49 /* Always 128 KiB env size */
50 #define CONFIG_ENV_SIZE                 (128 << 10)
51
52 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
53
54 /* Clock Defines */
55 #define V_OSCK                          24000000  /* Clock output from T2 */
56 #define V_SCLK                          (V_OSCK)
57
58 /* NS16550 Configuration */
59 #define CONFIG_SYS_NS16550_COM1         0x44e09000      /* Base EVM has UART0 */
60
61 #define CONFIG_ENV_IS_NOWHERE
62
63 #define CONFIG_SPL_LDSCRIPT             "$(CPUDIR)/omap-common/u-boot-spl.lds"
64
65 #define CONFIG_CMD_USB
66 #define CONFIG_USB_HOST
67 #define CONFIG_USB_XHCI
68 #define CONFIG_USB_XHCI_OMAP
69 #define CONFIG_USB_STORAGE
70 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
71
72 #define CONFIG_OMAP_USB_PHY
73 #define CONFIG_AM437X_USB2PHY2_HOST
74
75 #endif  /* __CONFIG_AM43XX_EVM_H */