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