2 * Board configuration file for TXSD-410E
4 * (C) Copyright 2016 Lothar Waßmann <LW@KARO-electronics.de>
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __CONFIGS_TXSD_H
10 #define __CONFIGS_TXSD_H
12 #include <linux/sizes.h>
13 #include <asm/arch/sysmap-apq8016.h>
15 #define CONFIG_ARMV8_PSCI
16 #define CONFIG_MISC_INIT_R
17 #define CONFIG_BOARD_LATE_INIT
19 /* Physical Memory Map */
20 #define CONFIG_NR_DRAM_BANKS 1
21 #define CONFIG_SYS_TEXT_BASE 0x90080000
22 #define CONFIG_SYS_SDRAM_BASE 0x90000000
23 #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
24 #define PHYS_SDRAM_1_SIZE (3 * SZ_256M)
26 /* 986 MiB (the last 38MiB are secured for TrustZone by ATF */
27 #define CONFIG_SYS_MEM_RESERVE_SECURE (38 * SZ_1M)
28 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
30 #define CONFIG_SYS_LOAD_ADDR _pfx(0x, CONFIG_LOADADDR)
31 #define CONFIG_SYS_FDT_ADDR _pfx(0x, CONFIG_FDTADDR)
32 #define CONFIG_SYS_RD_ADDR _pfx(0x, CONFIG_RDADDR)
34 #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1
35 #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + SZ_512M)
37 #define CONFIG_SYS_CACHELINE_SIZE 64
40 #define CONFIG_BAUDRATE 115200
42 /* Generic Timer Definitions */
43 #define COUNTER_FREQUENCY 19000000
45 /* This are needed to have proper mmc support */
47 #define CONFIG_GENERIC_MMC
50 #define CONFIG_SYS_LDSCRIPT "board/$(BOARDDIR)/u-boot.lds"
53 * Fixup - in init code we switch from device to host mode,
54 * it has to be done after each HCD reset
56 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
58 #define CONFIG_USB_HOST_ETHER /* Enable USB Networking */
60 /* Support all relevant USB ethernet dongles */
61 #define CONFIG_USB_ETHER_DM9601
62 #define CONFIG_USB_ETHER_ASIX
63 #define CONFIG_USB_ETHER_ASIX88179
64 #define CONFIG_USB_ETHER_MCS7830
65 #define CONFIG_USB_ETHER_RTL8152
66 #define CONFIG_USB_ETHER_SMSC95XX
68 /* LCD Logo and Splash screen support */
72 #define CONFIG_SYS_LVDS_IF
73 #define CONFIG_SPLASH_SCREEN
74 #define CONFIG_SPLASH_SCREEN_ALIGN
76 #define CONFIG_LCD_LOGO
77 #define LCD_BPP LCD_COLOR32
78 #define CONFIG_CMD_BMP
79 #define CONFIG_BMP_16BPP
80 #define CONFIG_BMP_24BPP
81 #define CONFIG_BMP_32BPP
82 #define CONFIG_VIDEO_BMP_RLE8
83 #endif /* CONFIG_LCD */
86 #define CONFIG_CMD_ENV
87 #define CONFIG_CMD_GPT
88 #define CONFIG_CMD_PART
89 #define CONFIG_CMD_TFTP
90 #define CONFIG_FAT_WRITE
92 /* Enable that for switching of boot partitions */
93 #define CONFIG_SUPPORT_EMMC_BOOT
95 /* Partition table support */
96 #define HAVE_BLOCK_DEVICE /* Needed for partition commands */
97 #define CONFIG_PARTITION_UUIDS
99 #define CONFIG_BOOTP_DNS
100 #define CONFIG_BOOTP_GATEWAY
101 #define CONFIG_BOOTP_SUBNETMASK
103 #define CONFIG_CMDLINE_EDITING
104 #define CONFIG_AUTO_COMPLETE
105 #define CONFIG_SYS_LONGHELP
106 #define CONFIG_DOS_PARTITION
107 #define CONFIG_EFI_PARTITION
108 #define CONFIG_SUPPORT_RAW_INITRD
109 #define CONFIG_SHOW_ACTIVITY
111 #define xstr(s) str(s)
113 #define __pfx(x, s) (x##s)
114 #define _pfx(x, s) __pfx(x, s)
117 #define CONFIG_BOOTP_BOOTFILESIZE
119 /* Environment - Boot*/
121 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
122 #define EMMC_BOOT_ACK_STR "emmc_boot_ack=1\0"
123 #define EMMC_BOOT_PART_STR "emmc_boot_part=" \
124 xstr(CONFIG_SYS_MMCSD_FS_BOOT_PARTITION) "\0"
126 #define CONFIG_BOOTCOMMAND "run bootcmd_${boot_mode} bootm_cmd"
127 #define CONFIG_SYS_AUTOLOAD "no"
130 #define CONFIG_EXTRA_ENV_SETTINGS \
133 "bootargs_mmc=run default_bootargs;setenv bootargs ${bootargs}" \
134 " root=PARTUUID=${rootpart_uuid} rootwait\0" \
135 "bootargs_nfs=run default_bootargs;setenv bootargs ${bootargs}" \
136 " root=/dev/nfs nfsroot=${nfs_server}:${nfsroot},nolock" \
138 "bootcmd_mmc=setenv autostart no;run bootargs_mmc" \
139 ";load mmc ${bootpart} ${loadaddr} Image.gz\0" \
140 "bootcmd_net=setenv autoload y;setenv autostart n" \
141 ";run bootargs_nfs;dhcp\0" \
142 "bootcmd_nfs=setenv autoload y;setenv autostart n" \
143 ";run bootargs_nfs;load mmc ${bootpart} ${loadaddr} Image.gz\0" \
145 "bootm_cmd=booti ${loadaddr} - ${fdtaddr}\0" \
148 "default_bootargs=setenv bootargs init=/linuxrc" \
149 " console=ttyMSM0,115200n8 panic=1 ${append_bootargs}\0" \
152 "fdtaddr=" xstr(CONFIG_FDTADDR) "\0" \
153 "fdtcontroladdr=" xstr(CONFIG_FDTADDR) "\0" \
154 "fdtsave=fdt resize;setexpr fs ${fs} / 200" \
155 ";mmc write ${fdtaddr} c22 ${fs}\0" \
156 "fdt_high=0xffffffffffffffff\0" \
157 "initrd_high=0xffffffffffffffff\0" \
158 "nfsroot=/tftpboot/rootfs\0" \
159 "otg_mode=device\0" \
160 "rdaddr=" xstr(CONFIG_RDADDR) "\0" \
161 "rootpart_uuid=7f63ea01-808e-ad2c-6a4b-8f386a2bd218\0" \
162 "touchpanel=edt-ft5x06\0" \
165 #define CONFIG_ENV_IS_IN_MMC
166 #define CONFIG_SYS_MMC_ENV_DEV 0
167 #define CONFIG_SYS_MMC_ENV_PART 0x0
168 #define CONFIG_ENV_VARS_UBOOT_CONFIG
169 #define CONFIG_ENV_OVERWRITE
171 /* Size of malloc() pool */
172 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_64M)
174 /* Monitor Command Prompt */
175 #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
176 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
177 sizeof(CONFIG_SYS_PROMPT) + 16)
178 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
179 #define CONFIG_SYS_MAXARGS 64 /* max command args */
180 #define CONFIG_CMDLINE_EDITING
182 #endif /* __CONFIGS_TXSD_H */