1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Gerald Kerma <dreagle@doukki.net>
5 * Tony Dinh <mibodhi@gmail.com>
6 * Luka Perkov <luka.perkov@sartura.hr>
9 #ifndef _CONFIG_NSA310S_H
10 #define _CONFIG_NSA310S_H
12 /* high level configuration options */
13 #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
14 #define CONFIG_KW88F6192 1 /* SOC Name */
15 #define CONFIG_KW88F6702 1 /* SOC Name */
16 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
18 /* add target to build it automatically upon "make" */
19 #define CONFIG_BUILD_TARGET "u-boot.kwb"
21 /* compression configuration */
24 /* commands configuration */
27 * mv-common.h should be defined after CMD configs since it used them
28 * to enable certain macros
30 #include "mv-common.h"
32 /* environment variables configuration */
33 #ifdef CONFIG_CMD_NAND
34 #define CONFIG_ENV_SECT_SIZE 0x20000
36 #define CONFIG_ENV_SIZE 0x20000
37 #define CONFIG_ENV_OFFSET 0xe0000
39 /* default environment variables */
40 #define CONFIG_BOOTCOMMAND \
41 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
43 "ubifsmount ubi:rootfs; " \
44 "ubifsload 0x800000 ${kernel}; " \
45 "ubifsload 0x700000 ${fdt}; " \
47 "fdt addr 0x700000; fdt resize; fdt chosen; " \
48 "bootz 0x800000 - 0x700000"
50 #define CONFIG_EXTRA_ENV_SETTINGS \
51 "console=console=ttyS0,115200\0" \
52 "mtdids=nand0=orion_nand\0" \
53 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
54 "kernel=/boot/zImage\0" \
55 "fdt=/boot/nsa310s.dtb\0" \
56 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
58 /* Ethernet driver configuration */
60 #define CONFIG_NETCONSOLE
61 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
62 #define CONFIG_PHY_BASE_ADR 1
63 #define CONFIG_RESET_PHY_R
64 #endif /* CONFIG_CMD_NET */
66 /* SATA driver configuration */
69 #define CONFIG_IDE_PREINIT
70 #define CONFIG_MVSATA_IDE_USE_PORT0
71 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
72 #endif /* CONFIG_IDE */
74 /* RTC driver configuration */
75 #ifdef CONFIG_CMD_DATE
77 #endif /* CONFIG_CMD_DATE */
79 #endif /* _CONFIG_NSA310S_H */