3 * Gerald Kerma <dreagle@doukki.net>
4 * Tony Dinh <mibodhi@gmail.com>
5 * Luka Perkov <luka.perkov@sartura.hr>
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _CONFIG_NSA310S_H
11 #define _CONFIG_NSA310S_H
13 /* high level configuration options */
14 #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
15 #define CONFIG_KW88F6192 1 /* SOC Name */
16 #define CONFIG_KW88F6702 1 /* SOC Name */
17 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
19 /* add target to build it automatically upon "make" */
20 #define CONFIG_BUILD_TARGET "u-boot.kwb"
22 /* compression configuration */
26 /* commands configuration */
27 #define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */
28 #define CONFIG_SYS_MVFS
29 #define CONFIG_CMD_IDE
32 * mv-common.h should be defined after CMD configs since it used them
33 * to enable certain macros
35 #include "mv-common.h"
37 /* environment variables configuration */
38 #ifdef CONFIG_CMD_NAND
39 #define CONFIG_ENV_IS_IN_NAND
40 #define CONFIG_ENV_SECT_SIZE 0x20000
42 #define CONFIG_ENV_IS_NOWHERE
44 #define CONFIG_ENV_SIZE 0x20000
45 #define CONFIG_ENV_OFFSET 0xe0000
47 /* default environment variables */
48 #define CONFIG_BOOTCOMMAND \
49 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
51 "ubifsmount ubi:rootfs; " \
52 "ubifsload 0x800000 ${kernel}; " \
53 "ubifsload 0x700000 ${fdt}; " \
55 "fdt addr 0x700000; fdt resize; fdt chosen; " \
56 "bootz 0x800000 - 0x700000"
58 #define CONFIG_MTDPARTS \
59 "mtdparts=orion_nand:" \
60 "0xe0000@0x0(uboot)," \
61 "0x20000@0xe0000(uboot_env)," \
62 "0x100000@0x100000(second_stage_uboot)," \
65 #define CONFIG_EXTRA_ENV_SETTINGS \
66 "console=console=ttyS0,115200\0" \
67 "mtdids=nand0=orion_nand\0" \
68 "mtdparts="CONFIG_MTDPARTS \
69 "kernel=/boot/zImage\0" \
70 "fdt=/boot/nsa310s.dtb\0" \
71 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
73 /* Ethernet driver configuration */
75 #define CONFIG_NETCONSOLE
76 #define CONFIG_NET_MULTI
77 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
78 #define CONFIG_PHY_BASE_ADR 1
79 #define CONFIG_PHY_GIGE
80 #define CONFIG_RESET_PHY_R
81 #endif /* CONFIG_CMD_NET */
83 /* SATA driver configuration */
86 #define CONFIG_IDE_PREINIT
87 #define CONFIG_MVSATA_IDE_USE_PORT0
88 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
89 #endif /* CONFIG_CMD_IDE */
91 /* RTC driver configuration */
92 #ifdef CONFIG_CMD_DATE
94 #endif /* CONFIG_CMD_DATE */
96 #endif /* _CONFIG_NSA310S_H */