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