xref: /rk3399_rockchip-uboot/include/configs/apalis_t30.h (revision 432e39806805c46d583e75e8dd2f7b71cc6089c1)
1bf78b271SMarcel Ziswiler /*
2b891d010SMarcel Ziswiler  * Copyright (c) 2014-2016 Marcel Ziswiler
3bf78b271SMarcel Ziswiler  *
436a01bddSMarcel Ziswiler  * Configuration settings for the Toradex Apalis T30 modules.
536a01bddSMarcel Ziswiler  *
6bf78b271SMarcel Ziswiler  * SPDX-License-Identifier:	GPL-2.0+
7bf78b271SMarcel Ziswiler  */
8bf78b271SMarcel Ziswiler 
9bf78b271SMarcel Ziswiler #ifndef __CONFIG_H
10bf78b271SMarcel Ziswiler #define __CONFIG_H
11bf78b271SMarcel Ziswiler 
12bf78b271SMarcel Ziswiler #include <linux/sizes.h>
13bf78b271SMarcel Ziswiler 
14bf78b271SMarcel Ziswiler #include "tegra30-common.h"
15bf78b271SMarcel Ziswiler 
16bf78b271SMarcel Ziswiler /* High-level configuration options */
17b891d010SMarcel Ziswiler #define CONFIG_DISPLAY_BOARDINFO_LATE	/* Calls show_board_info() */
18bf78b271SMarcel Ziswiler 
19bf78b271SMarcel Ziswiler /* Board-specific serial config */
20bf78b271SMarcel Ziswiler #define CONFIG_TEGRA_ENABLE_UARTA
21bf78b271SMarcel Ziswiler #define CONFIG_SYS_NS16550_COM1		NV_PA_APB_UARTA_BASE
22bf78b271SMarcel Ziswiler 
23bf78b271SMarcel Ziswiler #define CONFIG_MACH_TYPE		MACH_TYPE_APALIS_T30
24bf78b271SMarcel Ziswiler 
25bf78b271SMarcel Ziswiler /* I2C */
26bf78b271SMarcel Ziswiler #define CONFIG_SYS_I2C_TEGRA
27bf78b271SMarcel Ziswiler 
28*74b19ad1SMarcel Ziswiler /* Environment in eMMC, before config block at the end of 1st "boot sector" */
29*74b19ad1SMarcel Ziswiler #define CONFIG_ENV_OFFSET		(-CONFIG_ENV_SIZE + \
30*74b19ad1SMarcel Ziswiler 					 CONFIG_TDX_CFG_BLOCK_OFFSET)
31bf78b271SMarcel Ziswiler #define CONFIG_SYS_MMC_ENV_DEV		0
32*74b19ad1SMarcel Ziswiler #define CONFIG_SYS_MMC_ENV_PART		1
33bf78b271SMarcel Ziswiler 
3436a01bddSMarcel Ziswiler /* USB host support */
35bf78b271SMarcel Ziswiler #define CONFIG_USB_EHCI_TEGRA
36bf78b271SMarcel Ziswiler 
37bf78b271SMarcel Ziswiler /* PCI host support */
38bf78b271SMarcel Ziswiler 
39bf78b271SMarcel Ziswiler /* PCI networking support */
403d1282ffSMarcel Ziswiler #define CONFIG_E1000_NO_NVM
41bf78b271SMarcel Ziswiler 
42bf78b271SMarcel Ziswiler /* General networking support */
43baa6f0f1SMax Krummenacher #define CONFIG_IP_DEFRAG
44f7c81e28SMarcel Ziswiler #define CONFIG_TFTP_BLOCKSIZE		16352
45baa6f0f1SMax Krummenacher #define CONFIG_TFTP_TSIZE
46bf78b271SMarcel Ziswiler 
47d5338c69SMarcel Ziswiler /* Increase console I/O buffer size */
48d5338c69SMarcel Ziswiler #undef CONFIG_SYS_CBSIZE
49d5338c69SMarcel Ziswiler #define CONFIG_SYS_CBSIZE		1024
50d5338c69SMarcel Ziswiler 
51d5338c69SMarcel Ziswiler /* Increase arguments buffer size */
52d5338c69SMarcel Ziswiler #undef CONFIG_SYS_BARGSIZE
53d5338c69SMarcel Ziswiler #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
54d5338c69SMarcel Ziswiler 
55d5338c69SMarcel Ziswiler /* Increase maximum number of arguments */
56d5338c69SMarcel Ziswiler #undef CONFIG_SYS_MAXARGS
57d5338c69SMarcel Ziswiler #define CONFIG_SYS_MAXARGS		32
58d5338c69SMarcel Ziswiler 
59bf78b271SMarcel Ziswiler #include "tegra-common-usb-gadget.h"
60bf78b271SMarcel Ziswiler #include "tegra-common-post.h"
61bf78b271SMarcel Ziswiler 
62bf78b271SMarcel Ziswiler #endif /* __CONFIG_H */
63