xref: /openbmc/u-boot/include/configs/apalis_t30.h (revision 74b19ad1c180fe32a01bccc35b0be1425132d927)
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 
16a5825625SMarcel Ziswiler #define CONFIG_ARCH_MISC_INIT
17a5825625SMarcel Ziswiler 
18bf78b271SMarcel Ziswiler /* High-level configuration options */
19b891d010SMarcel Ziswiler #define CONFIG_DISPLAY_BOARDINFO_LATE	/* Calls show_board_info() */
20bf78b271SMarcel Ziswiler 
21bf78b271SMarcel Ziswiler /* Board-specific serial config */
22bf78b271SMarcel Ziswiler #define CONFIG_TEGRA_ENABLE_UARTA
23bf78b271SMarcel Ziswiler #define CONFIG_SYS_NS16550_COM1		NV_PA_APB_UARTA_BASE
24bf78b271SMarcel Ziswiler 
25bf78b271SMarcel Ziswiler #define CONFIG_MACH_TYPE		MACH_TYPE_APALIS_T30
26bf78b271SMarcel Ziswiler 
27bf78b271SMarcel Ziswiler /* I2C */
28bf78b271SMarcel Ziswiler #define CONFIG_SYS_I2C_TEGRA
29bf78b271SMarcel Ziswiler 
3036a01bddSMarcel Ziswiler /* SD/MMC support */
31bf78b271SMarcel Ziswiler #define CONFIG_MMC
32bf78b271SMarcel Ziswiler #define CONFIG_GENERIC_MMC
33bf78b271SMarcel Ziswiler #define CONFIG_TEGRA_MMC
34bf78b271SMarcel Ziswiler 
35*74b19ad1SMarcel Ziswiler /* Environment in eMMC, before config block at the end of 1st "boot sector" */
36bf78b271SMarcel Ziswiler #define CONFIG_ENV_IS_IN_MMC
37*74b19ad1SMarcel Ziswiler #define CONFIG_ENV_OFFSET		(-CONFIG_ENV_SIZE + \
38*74b19ad1SMarcel Ziswiler 					 CONFIG_TDX_CFG_BLOCK_OFFSET)
39bf78b271SMarcel Ziswiler #define CONFIG_SYS_MMC_ENV_DEV		0
40*74b19ad1SMarcel Ziswiler #define CONFIG_SYS_MMC_ENV_PART		1
41bf78b271SMarcel Ziswiler 
4236a01bddSMarcel Ziswiler /* USB host support */
43bf78b271SMarcel Ziswiler #define CONFIG_USB_EHCI
44bf78b271SMarcel Ziswiler #define CONFIG_USB_EHCI_TEGRA
45bf78b271SMarcel Ziswiler 
46bf78b271SMarcel Ziswiler /* PCI host support */
47bf78b271SMarcel Ziswiler #define CONFIG_CMD_PCI
48bf78b271SMarcel Ziswiler 
49bf78b271SMarcel Ziswiler /* PCI networking support */
503d1282ffSMarcel Ziswiler #define CONFIG_E1000_NO_NVM
51bf78b271SMarcel Ziswiler 
52bf78b271SMarcel Ziswiler /* General networking support */
53baa6f0f1SMax Krummenacher #define CONFIG_IP_DEFRAG
54f7c81e28SMarcel Ziswiler #define CONFIG_TFTP_BLOCKSIZE		16352
55baa6f0f1SMax Krummenacher #define CONFIG_TFTP_TSIZE
56bf78b271SMarcel Ziswiler 
57d5338c69SMarcel Ziswiler /* Miscellaneous commands */
58d5338c69SMarcel Ziswiler #define CONFIG_FAT_WRITE
59d5338c69SMarcel Ziswiler 
60d5338c69SMarcel Ziswiler /* Increase console I/O buffer size */
61d5338c69SMarcel Ziswiler #undef CONFIG_SYS_CBSIZE
62d5338c69SMarcel Ziswiler #define CONFIG_SYS_CBSIZE		1024
63d5338c69SMarcel Ziswiler 
64d5338c69SMarcel Ziswiler /* Increase arguments buffer size */
65d5338c69SMarcel Ziswiler #undef CONFIG_SYS_BARGSIZE
66d5338c69SMarcel Ziswiler #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
67d5338c69SMarcel Ziswiler 
68d5338c69SMarcel Ziswiler /* Increase print buffer size */
69d5338c69SMarcel Ziswiler #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
70d5338c69SMarcel Ziswiler 
71d5338c69SMarcel Ziswiler /* Increase maximum number of arguments */
72d5338c69SMarcel Ziswiler #undef CONFIG_SYS_MAXARGS
73d5338c69SMarcel Ziswiler #define CONFIG_SYS_MAXARGS		32
74d5338c69SMarcel Ziswiler 
75bf78b271SMarcel Ziswiler #include "tegra-common-usb-gadget.h"
76bf78b271SMarcel Ziswiler #include "tegra-common-post.h"
77bf78b271SMarcel Ziswiler 
78bf78b271SMarcel Ziswiler #endif /* __CONFIG_H */
79