]>
Commit | Line | Data |
---|---|---|
f1df81c4 GK |
1 | /* |
2 | * Copyright (C) 2015 | |
3 | * Gerald Kerma <dreagle@doukki.net> | |
4 | * Tony Dinh <mibodhi@gmail.com> | |
5 | * Luka Perkov <luka.perkov@sartura.hr> | |
6 | * | |
7 | * SPDX-License-Identifier: GPL-2.0+ | |
8 | */ | |
9 | ||
10 | #ifndef _CONFIG_NSA310S_H | |
11 | #define _CONFIG_NSA310S_H | |
12 | ||
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 */ | |
18 | ||
19 | /* add target to build it automatically upon "make" */ | |
20 | #define CONFIG_BUILD_TARGET "u-boot.kwb" | |
21 | ||
22 | /* compression configuration */ | |
23 | #define CONFIG_BZIP2 | |
24 | #define CONFIG_LZMA | |
25 | ||
26 | /* commands configuration */ | |
f1df81c4 | 27 | #define CONFIG_SYS_MVFS |
f1df81c4 | 28 | #define CONFIG_CMD_IDE |
f1df81c4 GK |
29 | |
30 | /* | |
31 | * mv-common.h should be defined after CMD configs since it used them | |
32 | * to enable certain macros | |
33 | */ | |
34 | #include "mv-common.h" | |
35 | ||
36 | /* environment variables configuration */ | |
37 | #ifdef CONFIG_CMD_NAND | |
38 | #define CONFIG_ENV_IS_IN_NAND | |
39 | #define CONFIG_ENV_SECT_SIZE 0x20000 | |
40 | #else | |
41 | #define CONFIG_ENV_IS_NOWHERE | |
42 | #endif | |
43 | #define CONFIG_ENV_SIZE 0x20000 | |
44 | #define CONFIG_ENV_OFFSET 0xe0000 | |
45 | ||
46 | /* default environment variables */ | |
47 | #define CONFIG_BOOTCOMMAND \ | |
48 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ | |
49 | "ubi part root; " \ | |
50 | "ubifsmount ubi:rootfs; " \ | |
51 | "ubifsload 0x800000 ${kernel}; " \ | |
52 | "ubifsload 0x700000 ${fdt}; " \ | |
53 | "ubifsumount; " \ | |
54 | "fdt addr 0x700000; fdt resize; fdt chosen; " \ | |
55 | "bootz 0x800000 - 0x700000" | |
56 | ||
57 | #define CONFIG_MTDPARTS \ | |
58 | "mtdparts=orion_nand:" \ | |
59 | "0xe0000@0x0(uboot)," \ | |
60 | "0x20000@0xe0000(uboot_env)," \ | |
61 | "0x100000@0x100000(second_stage_uboot)," \ | |
62 | "-@0x200000(root)\0" | |
63 | ||
64 | #define CONFIG_EXTRA_ENV_SETTINGS \ | |
65 | "console=console=ttyS0,115200\0" \ | |
66 | "mtdids=nand0=orion_nand\0" \ | |
67 | "mtdparts="CONFIG_MTDPARTS \ | |
68 | "kernel=/boot/zImage\0" \ | |
69 | "fdt=/boot/nsa310s.dtb\0" \ | |
70 | "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" | |
71 | ||
72 | /* Ethernet driver configuration */ | |
73 | #ifdef CONFIG_CMD_NET | |
74 | #define CONFIG_NETCONSOLE | |
75 | #define CONFIG_NET_MULTI | |
76 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ | |
77 | #define CONFIG_PHY_BASE_ADR 1 | |
78 | #define CONFIG_PHY_GIGE | |
79 | #define CONFIG_RESET_PHY_R | |
80 | #endif /* CONFIG_CMD_NET */ | |
81 | ||
82 | /* SATA driver configuration */ | |
83 | #ifdef CONFIG_CMD_IDE | |
84 | #define __io | |
85 | #define CONFIG_IDE_PREINIT | |
f1df81c4 GK |
86 | #define CONFIG_MVSATA_IDE_USE_PORT0 |
87 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET | |
88 | #endif /* CONFIG_CMD_IDE */ | |
89 | ||
90 | /* RTC driver configuration */ | |
91 | #ifdef CONFIG_CMD_DATE | |
92 | #define CONFIG_RTC_MV | |
93 | #endif /* CONFIG_CMD_DATE */ | |
94 | ||
95 | #endif /* _CONFIG_NSA310S_H */ |