blob: fc5ed5b2fd8b14150a4f51b8975992bb22f621de [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tom Warrena3e280b2011-01-27 10:58:07 +00002/*
Stephen Warrenc7382852012-05-21 10:04:27 +00003 * (C) Copyright 2010-2012
Tom Warrena3e280b2011-01-27 10:58:07 +00004 * NVIDIA Corporation <www.nvidia.com>
Tom Warrena3e280b2011-01-27 10:58:07 +00005 */
6
7#ifndef __CONFIG_H
8#define __CONFIG_H
9
Alexey Brodkin267d8e22014-02-26 17:47:58 +040010#include <linux/sizes.h>
Allen Martin55d98a12012-08-31 08:30:00 +000011#include "tegra20-common.h"
Tom Warrena3e280b2011-01-27 10:58:07 +000012
13/* High-level configuration options */
Tom Warren22562a42012-09-04 17:00:24 -070014#define CONFIG_TEGRA_BOARD_STRING "NVIDIA Harmony"
Tom Warrena3e280b2011-01-27 10:58:07 +000015
16/* Board-specific serial config */
Tom Warren22562a42012-09-04 17:00:24 -070017#define CONFIG_TEGRA_ENABLE_UARTD
Tom Warrena3e280b2011-01-27 10:58:07 +000018
19/* UARTD: keyboard satellite board UART, default */
20#define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTD_BASE
Tom Warren22562a42012-09-04 17:00:24 -070021#ifdef CONFIG_TEGRA_ENABLE_UARTA
Tom Warrena3e280b2011-01-27 10:58:07 +000022/* UARTA: debug board UART */
23#define CONFIG_SYS_NS16550_COM2 NV_PA_APB_UARTA_BASE
24#endif
25
26#define CONFIG_MACH_TYPE MACH_TYPE_HARMONY
Tom Warrena3e280b2011-01-27 10:58:07 +000027
Stephen Warren560a1ee2012-07-30 07:37:52 +000028/* NAND support */
Stephen Warren560a1ee2012-07-30 07:37:52 +000029#define CONFIG_TEGRA_NAND
30#define CONFIG_SYS_MAX_NAND_DEVICE 1
Stephen Warren560a1ee2012-07-30 07:37:52 +000031
Marcel Ziswiler9c9d2192018-05-07 23:18:42 +020032/* Dynamic MTD partition support */
Marcel Ziswiler9c9d2192018-05-07 23:18:42 +020033
Stephen Warren560a1ee2012-07-30 07:37:52 +000034/* Environment in NAND (which is 512M), aligned to start of last sector */
Stephen Warren560a1ee2012-07-30 07:37:52 +000035#define CONFIG_ENV_OFFSET (SZ_512M - SZ_128K) /* 128K sector size */
Stephen Warrende17c292012-05-16 06:21:00 +000036
Stephen Warrenc7382852012-05-21 10:04:27 +000037/* USB Host support */
Stephen Warrenc7382852012-05-21 10:04:27 +000038#define CONFIG_USB_EHCI_TEGRA
Stephen Warrenc7382852012-05-21 10:04:27 +000039
40/* USB networking support */
Stephen Warrenc7382852012-05-21 10:04:27 +000041
Tom Warren22562a42012-09-04 17:00:24 -070042#include "tegra-common-post.h"
Stephen Warrende17c292012-05-16 06:21:00 +000043
Tom Warrena3e280b2011-01-27 10:58:07 +000044#endif /* __CONFIG_H */