blob: edf3720b615c6e08f5b993106dac803b0f7255a1 [file] [log] [blame]
Stephen Warrend5ef19b2011-10-31 06:51:37 +00001/*
2 * (C) Copyright 2010,2011
3 * NVIDIA Corporation <www.nvidia.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Stephen Warrend5ef19b2011-10-31 06:51:37 +00006 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
Alexey Brodkin1ace4022014-02-26 17:47:58 +040011#include <linux/sizes.h>
Allen Martin00a27492012-08-31 08:30:00 +000012#include "tegra20-common.h"
Stephen Warrend5ef19b2011-10-31 06:51:37 +000013
Tom Warren66d6a912012-03-06 17:10:33 +000014/* Enable fdt support for Ventana. Flash the image in u-boot-dtb.bin */
Allen Martin00a27492012-08-31 08:30:00 +000015#define CONFIG_DEFAULT_DEVICE_TREE tegra20-ventana
Tom Warren66d6a912012-03-06 17:10:33 +000016#define CONFIG_OF_CONTROL
17#define CONFIG_OF_SEPARATE
18
Stephen Warrend5ef19b2011-10-31 06:51:37 +000019/* High-level configuration options */
Allen Martin00a27492012-08-31 08:30:00 +000020#define V_PROMPT "Tegra20 (Ventana) # "
Tom Warren29f3e3f2012-09-04 17:00:24 -070021#define CONFIG_TEGRA_BOARD_STRING "NVIDIA Ventana"
Stephen Warrend5ef19b2011-10-31 06:51:37 +000022
23/* Board-specific serial config */
Tom Warren29f3e3f2012-09-04 17:00:24 -070024#define CONFIG_TEGRA_ENABLE_UARTD
Stephen Warrend5ef19b2011-10-31 06:51:37 +000025#define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE
26
27#define CONFIG_MACH_TYPE MACH_TYPE_VENTANA
Stephen Warrend5ef19b2011-10-31 06:51:37 +000028
29#define CONFIG_BOARD_EARLY_INIT_F
Stephen Warrend035fcf2013-06-18 09:46:52 -060030#define CONFIG_BOARD_LATE_INIT /* Make sure LCD init is complete */
Stephen Warrend5ef19b2011-10-31 06:51:37 +000031
32/* SD/MMC */
33#define CONFIG_MMC
34#define CONFIG_GENERIC_MMC
Tom Warren3f82d892012-05-22 11:44:48 +000035#define CONFIG_TEGRA_MMC
Stephen Warrend5ef19b2011-10-31 06:51:37 +000036#define CONFIG_CMD_MMC
37
Stephen Warren294cd672012-05-24 11:38:35 +000038/* Environment in eMMC, at the end of 2nd "boot sector" */
39#define CONFIG_ENV_IS_IN_MMC
Stephen Warren91171092013-06-11 15:14:03 -060040#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
Stephen Warren294cd672012-05-24 11:38:35 +000041#define CONFIG_SYS_MMC_ENV_DEV 0
Stephen Warren573668a2012-07-30 10:55:45 +000042#define CONFIG_SYS_MMC_ENV_PART 2
Stephen Warrenbea26742012-05-16 06:21:00 +000043
Stephen Warrenb1b9e4c2012-05-23 07:46:15 +000044/* USB Host support */
45#define CONFIG_USB_EHCI
46#define CONFIG_USB_EHCI_TEGRA
47#define CONFIG_USB_STORAGE
48#define CONFIG_CMD_USB
49
50/* USB networking support */
51#define CONFIG_USB_HOST_ETHER
52#define CONFIG_USB_ETHER_ASIX
53
54/* General networking support */
55#define CONFIG_CMD_NET
56#define CONFIG_CMD_DHCP
57
Allen Martin5ddcc382012-10-24 08:32:06 +000058/* USB keyboard */
59#define CONFIG_USB_KEYBOARD
60
Stephen Warrend035fcf2013-06-18 09:46:52 -060061/* LCD support */
62#define CONFIG_LCD
63#define CONFIG_PWM_TEGRA
64#define CONFIG_VIDEO_TEGRA
65#define LCD_BPP LCD_COLOR16
66#define CONFIG_SYS_WHITE_ON_BLACK
67#define CONFIG_CONSOLE_SCROLL_LINES 10
68
Tom Warren29f3e3f2012-09-04 17:00:24 -070069#include "tegra-common-post.h"
Stephen Warrenbea26742012-05-16 06:21:00 +000070
Stephen Warrend5ef19b2011-10-31 06:51:37 +000071#endif /* __CONFIG_H */