Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 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 |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 24 | |
| 25 | /* commands configuration */ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 26 | #define CONFIG_SYS_MVFS |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 27 | |
| 28 | /* |
| 29 | * mv-common.h should be defined after CMD configs since it used them |
| 30 | * to enable certain macros |
| 31 | */ |
| 32 | #include "mv-common.h" |
| 33 | |
| 34 | /* environment variables configuration */ |
| 35 | #ifdef CONFIG_CMD_NAND |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 36 | #define CONFIG_ENV_SECT_SIZE 0x20000 |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 37 | #endif |
| 38 | #define CONFIG_ENV_SIZE 0x20000 |
| 39 | #define CONFIG_ENV_OFFSET 0xe0000 |
| 40 | |
| 41 | /* default environment variables */ |
| 42 | #define CONFIG_BOOTCOMMAND \ |
| 43 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ |
| 44 | "ubi part root; " \ |
| 45 | "ubifsmount ubi:rootfs; " \ |
| 46 | "ubifsload 0x800000 ${kernel}; " \ |
| 47 | "ubifsload 0x700000 ${fdt}; " \ |
| 48 | "ubifsumount; " \ |
| 49 | "fdt addr 0x700000; fdt resize; fdt chosen; " \ |
| 50 | "bootz 0x800000 - 0x700000" |
| 51 | |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 52 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 53 | "console=console=ttyS0,115200\0" \ |
| 54 | "mtdids=nand0=orion_nand\0" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame^] | 55 | "mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 56 | "kernel=/boot/zImage\0" \ |
| 57 | "fdt=/boot/nsa310s.dtb\0" \ |
| 58 | "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" |
| 59 | |
| 60 | /* Ethernet driver configuration */ |
| 61 | #ifdef CONFIG_CMD_NET |
| 62 | #define CONFIG_NETCONSOLE |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 63 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 64 | #define CONFIG_PHY_BASE_ADR 1 |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 65 | #define CONFIG_RESET_PHY_R |
| 66 | #endif /* CONFIG_CMD_NET */ |
| 67 | |
| 68 | /* SATA driver configuration */ |
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 69 | #ifdef CONFIG_IDE |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 70 | #define __io |
| 71 | #define CONFIG_IDE_PREINIT |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 72 | #define CONFIG_MVSATA_IDE_USE_PORT0 |
| 73 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 74 | #endif /* CONFIG_IDE */ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 75 | |
| 76 | /* RTC driver configuration */ |
| 77 | #ifdef CONFIG_CMD_DATE |
| 78 | #define CONFIG_RTC_MV |
| 79 | #endif /* CONFIG_CMD_DATE */ |
| 80 | |
| 81 | #endif /* _CONFIG_NSA310S_H */ |