2012-05-16 13:54:07 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2010-2012
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2012-05-16 13:54:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
2014-02-26 13:47:58 +00:00
|
|
|
#include <linux/sizes.h>
|
2012-08-31 08:30:00 +00:00
|
|
|
#include "tegra20-common.h"
|
2012-05-16 13:54:07 +00:00
|
|
|
|
|
|
|
/* High-level configuration options */
|
2012-08-31 08:30:00 +00:00
|
|
|
#define V_PROMPT "Tegra20 (TrimSlice) # "
|
2012-09-05 00:00:24 +00:00
|
|
|
#define CONFIG_TEGRA_BOARD_STRING "Compulab Trimslice"
|
2012-05-16 13:54:07 +00:00
|
|
|
|
|
|
|
/* Board-specific serial config */
|
2012-09-05 00:00:24 +00:00
|
|
|
#define CONFIG_TEGRA_ENABLE_UARTA
|
|
|
|
#define CONFIG_TEGRA_UARTA_GPU
|
2012-05-16 13:54:07 +00:00
|
|
|
#define CONFIG_SYS_NS16550_COM1 NV_PA_APB_UARTA_BASE
|
|
|
|
|
|
|
|
#define CONFIG_MACH_TYPE MACH_TYPE_TRIMSLICE
|
|
|
|
|
|
|
|
#define CONFIG_BOARD_EARLY_INIT_F
|
|
|
|
|
2012-05-24 11:38:37 +00:00
|
|
|
/* SPI */
|
2013-03-16 18:58:03 +00:00
|
|
|
#define CONFIG_TEGRA20_SFLASH
|
2012-05-24 11:38:37 +00:00
|
|
|
#define CONFIG_SPI_FLASH
|
|
|
|
#define CONFIG_SPI_FLASH_WINBOND
|
|
|
|
#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
|
|
|
|
#define CONFIG_CMD_SPI
|
|
|
|
#define CONFIG_CMD_SF
|
|
|
|
|
2012-05-16 13:54:07 +00:00
|
|
|
/* I2C */
|
2012-10-30 07:28:53 +00:00
|
|
|
#define CONFIG_SYS_I2C_TEGRA
|
2012-05-16 13:54:07 +00:00
|
|
|
#define CONFIG_SYS_I2C_INIT_BOARD
|
|
|
|
#define CONFIG_SYS_I2C_SPEED 100000
|
|
|
|
#define CONFIG_CMD_I2C
|
2012-10-30 07:28:53 +00:00
|
|
|
#define CONFIG_SYS_I2C
|
2012-05-16 13:54:07 +00:00
|
|
|
|
|
|
|
/* SD/MMC */
|
|
|
|
#define CONFIG_MMC
|
|
|
|
#define CONFIG_GENERIC_MMC
|
2012-05-22 11:44:48 +00:00
|
|
|
#define CONFIG_TEGRA_MMC
|
2012-05-16 13:54:07 +00:00
|
|
|
#define CONFIG_CMD_MMC
|
|
|
|
|
2012-05-24 11:38:37 +00:00
|
|
|
/* Environment in SPI */
|
|
|
|
#define CONFIG_ENV_IS_IN_SPI_FLASH
|
|
|
|
#define CONFIG_ENV_SPI_MAX_HZ 48000000
|
|
|
|
#define CONFIG_ENV_SPI_MODE SPI_MODE_0
|
|
|
|
#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
|
|
|
|
#define CONFIG_ENV_OFFSET (512 * 1024)
|
2012-05-16 13:54:07 +00:00
|
|
|
|
|
|
|
/* USB Host support */
|
2012-11-01 12:14:37 +00:00
|
|
|
#define CONFIG_USB_MAX_CONTROLLER_COUNT 3
|
2012-05-16 13:54:07 +00:00
|
|
|
#define CONFIG_USB_EHCI
|
|
|
|
#define CONFIG_USB_EHCI_TEGRA
|
|
|
|
#define CONFIG_USB_STORAGE
|
|
|
|
#define CONFIG_CMD_USB
|
|
|
|
|
|
|
|
/* USB networking support */
|
|
|
|
#define CONFIG_USB_HOST_ETHER
|
|
|
|
#define CONFIG_USB_ETHER_ASIX
|
|
|
|
|
|
|
|
/* General networking support */
|
|
|
|
#define CONFIG_CMD_NET
|
|
|
|
#define CONFIG_CMD_DHCP
|
|
|
|
|
2012-09-05 00:00:24 +00:00
|
|
|
#include "tegra-common-post.h"
|
2012-05-16 13:54:07 +00:00
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|