xref: /openbmc/u-boot/include/configs/tqma6_wru4.h (revision 98d62e61)
1 /*
2  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef __CONFIG_TQMA6_WRU4_H
8 #define __CONFIG_TQMA6_WRU4_H
9 
10 /* DTT sensors */
11 #define CONFIG_DTT_SENSORS		{ 0, 1 }
12 #define CONFIG_SYS_DTT_BUS_NUM		2
13 
14 /* Ethernet */
15 #define CONFIG_FEC_XCV_TYPE		RMII
16 #define CONFIG_ETHPRIME			"FEC"
17 #define CONFIG_FEC_MXC_PHYADDR		0x01
18 #define CONFIG_PHY_SMSC
19 
20 /* UART */
21 #define CONFIG_MXC_UART_BASE		UART4_BASE
22 #define CONSOLE_DEV		"ttymxc3"
23 
24 #define CONFIG_MISC_INIT_R
25 
26 /* Watchdog */
27 #define CONFIG_HW_WATCHDOG
28 #define CONFIG_IMX_WATCHDOG
29 #define CONFIG_WATCHDOG_TIMEOUT_MSECS	60000
30 
31 /* Config on-board RTC */
32 #define CONFIG_RTC_DS1337
33 #define CONFIG_SYS_RTC_BUS_NUM		2
34 #define CONFIG_SYS_I2C_RTC_ADDR		0x68
35 /* Turn off RTC square-wave output to save battery */
36 #define CONFIG_SYS_RTC_DS1337_NOOSC
37 #define CONFIG_CMD_DATE
38 
39 /* LED */
40 #define CONFIG_CMD_LED
41 #define CONFIG_STATUS_LED
42 #define CONFIG_BOARD_SPECIFIC_LED
43 #define STATUS_LED_BIT			0
44 #define STATUS_LED_STATE		STATUS_LED_ON
45 #define STATUS_LED_PERIOD		(CONFIG_SYS_HZ / 2)
46 #define STATUS_LED_BIT1			1
47 #define STATUS_LED_STATE1		STATUS_LED_ON
48 #define STATUS_LED_PERIOD1		(CONFIG_SYS_HZ / 2)
49 #define STATUS_LED_BIT2			2
50 #define STATUS_LED_STATE2		STATUS_LED_ON
51 #define STATUS_LED_PERIOD2		(CONFIG_SYS_HZ / 2)
52 #define STATUS_LED_BIT3			3
53 #define STATUS_LED_STATE3		STATUS_LED_ON
54 #define STATUS_LED_PERIOD3		(CONFIG_SYS_HZ / 2)
55 #define STATUS_LED_BIT4			4
56 #define STATUS_LED_STATE4		STATUS_LED_ON
57 #define STATUS_LED_PERIOD4		(CONFIG_SYS_HZ / 2)
58 #define STATUS_LED_BIT5			5
59 #define STATUS_LED_STATE5		STATUS_LED_ON
60 #define STATUS_LED_PERIOD5		(CONFIG_SYS_HZ / 2)
61 
62 /* Bootcounter */
63 #define CONFIG_BOOTCOUNT_LIMIT
64 #define CONFIG_SYS_BOOTCOUNT_ADDR	IRAM_BASE_ADDR
65 #define CONFIG_SYS_BOOTCOUNT_BE
66 
67 /*
68  * Remove all unused interfaces / commands that are defined in
69  * the common header tqms6.h
70  */
71 #undef CONFIG_MXC_SPI
72 
73 #endif /* __CONFIG_TQMA6_WRU4_H */
74