Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 |
| 4 | * Gerald Kerma <dreagle@doukki.net> |
| 5 | * Tony Dinh <mibodhi@gmail.com> |
| 6 | * Luka Perkov <luka.perkov@sartura.hr> |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _CONFIG_NSA310S_H |
| 10 | #define _CONFIG_NSA310S_H |
| 11 | |
| 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 */ |
| 17 | |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 18 | #include "mv-common.h" |
| 19 | |
| 20 | /* environment variables configuration */ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 21 | |
| 22 | /* default environment variables */ |
| 23 | #define CONFIG_BOOTCOMMAND \ |
| 24 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ |
| 25 | "ubi part root; " \ |
| 26 | "ubifsmount ubi:rootfs; " \ |
| 27 | "ubifsload 0x800000 ${kernel}; " \ |
| 28 | "ubifsload 0x700000 ${fdt}; " \ |
| 29 | "ubifsumount; " \ |
| 30 | "fdt addr 0x700000; fdt resize; fdt chosen; " \ |
| 31 | "bootz 0x800000 - 0x700000" |
| 32 | |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 33 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 34 | "console=console=ttyS0,115200\0" \ |
| 35 | "mtdids=nand0=orion_nand\0" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 36 | "mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 37 | "kernel=/boot/zImage\0" \ |
| 38 | "fdt=/boot/nsa310s.dtb\0" \ |
| 39 | "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" |
| 40 | |
| 41 | /* Ethernet driver configuration */ |
| 42 | #ifdef CONFIG_CMD_NET |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 43 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 44 | #define CONFIG_PHY_BASE_ADR 1 |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 45 | #define CONFIG_RESET_PHY_R |
| 46 | #endif /* CONFIG_CMD_NET */ |
| 47 | |
| 48 | /* SATA driver configuration */ |
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 49 | #ifdef CONFIG_IDE |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 50 | #define __io |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 51 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 52 | #endif /* CONFIG_IDE */ |
Gerald Kerma | 06990b8 | 2015-10-23 09:50:58 +0200 | [diff] [blame] | 53 | |
| 54 | /* RTC driver configuration */ |
| 55 | #ifdef CONFIG_CMD_DATE |
| 56 | #define CONFIG_RTC_MV |
| 57 | #endif /* CONFIG_CMD_DATE */ |
| 58 | |
| 59 | #endif /* _CONFIG_NSA310S_H */ |