blob: c8d4a00bc9dde69d1951b9d392b0ef96e595eba2 [file] [log] [blame]
Dmitry Lifshitz46650d52016-12-28 18:28:33 +02001/*
2 * Configuration settings for CompuLab CL-SOM-AM57x board
3 *
4 * (C) Copyright 2016 CompuLab, Ltd. http://compulab.co.il/
5 *
6 * Author: Dmitry Lifshitz <lifshitz@compulab.co.il>
7 *
8 * SPDX-License-Identifier: GPL-2.0+
9 */
10
11#ifndef __CONFIG_CL_SOM_AM57X_H
12#define __CONFIG_CL_SOM_AM57X_H
13
14#define CONFIG_DRA7XX
15
16#define CONFIG_NR_DRAM_BANKS 2
17
18#define CONSOLEDEV "ttyO2"
19#define CONFIG_SYS_NS16550_COM3 UART3_BASE /* UART3 */
20#define CONFIG_CONS_INDEX 3
21#define CONFIG_BAUDRATE 115200
22
23#define CONFIG_SYS_OMAP_ABE_SYSCK
24
25#include <configs/ti_omap5_common.h>
26
27/* Status LED */
28#define CONFIG_STATUS_LED /* Status LED enabled */
29#define CONFIG_GPIO_LED
30#define CONFIG_BOARD_SPECIFIC_LED
31#define GREEN_LED_DEV 0
32 /* cl_som_am57x Green LED is GPIO2_5 */
33#define GREEN_LED_GPIO 37
34#define STATUS_LED_BIT GREEN_LED_GPIO
35#define STATUS_LED_STATE STATUS_LED_ON
36#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
37
38/* PMIC I2C bus number */
39#define CONFIG_SYS_SPD_BUS_NUM 3
40
41/* SPI Flash support */
42#undef CONFIG_OMAP3_SPI
43
44#define CONFIG_TI_SPI_MMAP
45#define CONFIG_SF_DEFAULT_SPEED 48000000
46#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_3
47
48/* SPI SPL defines */
49/* Offsets: 0K - SPL1, 64K - SPL2, 128K - SPL3, 192K - SPL4, 256K - U-Boot */
50#define CONFIG_SYS_SPI_U_BOOT_OFFS (256 * 1024)
51#define CONFIG_SPL_SPI_SUPPORT
52#define CONFIG_SPL_SPI_FLASH_SUPPORT
53#define CONFIG_SPL_SPI_LOAD
54
55/* SD/MMC RAW boot */
56#undef CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
57#undef CONFIG_SYS_MMCSD_FS_BOOT_PARTITION
58
59/* Environment */
60#define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB env size */
61#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
62
63#define CONFIG_ENV_IS_IN_SPI_FLASH
64#define CONFIG_ENV_SECT_SIZE (64 * 1024)
65#define CONFIG_ENV_OFFSET (768 * 1024)
66#define CONFIG_ENV_SPI_MAX_HZ 48000000
67
68#ifndef CONFIG_SPL_BUILD
69/* SATA */
70#define CONFIG_CMD_SCSI
71#define CONFIG_LIBATA
72#define CONFIG_SCSI_AHCI
73#define CONFIG_SCSI_AHCI_PLAT
74#define CONFIG_SYS_SCSI_MAX_SCSI_ID 1
75#define CONFIG_SYS_SCSI_MAX_LUN 1
76#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
77 CONFIG_SYS_SCSI_MAX_LUN)
78/* PCA9555 GPIO expander support */
79#define CONFIG_PCA953X
80#define CONFIG_CMD_PCA953X
81#define CONFIG_CMD_PCA953X_INFO
82#define CONFIG_SYS_I2C_PCA953X_ADDR 0x20
83#define CONFIG_SYS_I2C_PCA953X_WIDTH { {0x20, 16} }
84
85/* GPT */
86#define CONFIG_CMD_GPT
87#define CONFIG_EFI_PARTITION
88
89/* USB xHCI HOST */
90#define CONFIG_USB_XHCI_OMAP
91#define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
92
93#define CONFIG_OMAP_USB_PHY
94#define CONFIG_OMAP_USB3PHY1_HOST
95
96/* USB Networking options */
97#define CONFIG_USB_HOST_ETHER
98#define CONFIG_USB_ETHER_SMSC95XX
99#define CONFIG_USB_ETHER_RNDIS
100#define CONFIG_USB_ETHER_ASIX
101#define CONFIG_USB_ETHER_MCS7830
102
103#endif /* !CONFIG_SPL_BUILD */
104
105#endif /* __CONFIG_CL_SOM_AM57X_H */