blob: b9cc5d632f069cdcfac8d34278c5f140e07be16e [file] [log] [blame]
Stefan Roese452308c2015-07-06 13:36:33 +02001/*
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
Stefan Roese452308c2015-07-06 13:36:33 +020010/* 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
Simon Glass12ca05a2016-10-17 20:12:39 -060022#define CONSOLE_DEV "ttymxc3"
Stefan Roese452308c2015-07-06 13:36:33 +020023
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
Stefan Roese452308c2015-07-06 13:36:33 +020037
Stefan Roese452308c2015-07-06 13:36:33 +020038/* LED */
Stefan Roese452308c2015-07-06 13:36:33 +020039
40/* Bootcounter */
41#define CONFIG_BOOTCOUNT_LIMIT
42#define CONFIG_SYS_BOOTCOUNT_ADDR IRAM_BASE_ADDR
43#define CONFIG_SYS_BOOTCOUNT_BE
44
Stefan Roese8b8ca0d2015-08-05 10:50:50 +020045/*
46 * Remove all unused interfaces / commands that are defined in
47 * the common header tqms6.h
48 */
Stefan Roese8b8ca0d2015-08-05 10:50:50 +020049#undef CONFIG_MXC_SPI
50
Stefan Roese452308c2015-07-06 13:36:33 +020051#endif /* __CONFIG_TQMA6_WRU4_H */