1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2f1df81c4SGerald Kerma /* 3f1df81c4SGerald Kerma * Copyright (C) 2015 4f1df81c4SGerald Kerma * Gerald Kerma <dreagle@doukki.net> 5f1df81c4SGerald Kerma * Tony Dinh <mibodhi@gmail.com> 6f1df81c4SGerald Kerma * Luka Perkov <luka.perkov@sartura.hr> 7f1df81c4SGerald Kerma */ 8f1df81c4SGerald Kerma 9f1df81c4SGerald Kerma #ifndef _CONFIG_NSA310S_H 10f1df81c4SGerald Kerma #define _CONFIG_NSA310S_H 11f1df81c4SGerald Kerma 12f1df81c4SGerald Kerma /* high level configuration options */ 13f1df81c4SGerald Kerma #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ 14f1df81c4SGerald Kerma #define CONFIG_KW88F6192 1 /* SOC Name */ 15f1df81c4SGerald Kerma #define CONFIG_KW88F6702 1 /* SOC Name */ 16f1df81c4SGerald Kerma #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ 17f1df81c4SGerald Kerma 18f1df81c4SGerald Kerma /* compression configuration */ 19f1df81c4SGerald Kerma #define CONFIG_BZIP2 20f1df81c4SGerald Kerma 21f1df81c4SGerald Kerma /* commands configuration */ 22f1df81c4SGerald Kerma 23f1df81c4SGerald Kerma /* 24f1df81c4SGerald Kerma * mv-common.h should be defined after CMD configs since it used them 25f1df81c4SGerald Kerma * to enable certain macros 26f1df81c4SGerald Kerma */ 27f1df81c4SGerald Kerma #include "mv-common.h" 28f1df81c4SGerald Kerma 29f1df81c4SGerald Kerma /* environment variables configuration */ 30f1df81c4SGerald Kerma #ifdef CONFIG_CMD_NAND 31f1df81c4SGerald Kerma #define CONFIG_ENV_SECT_SIZE 0x20000 32f1df81c4SGerald Kerma #endif 33f1df81c4SGerald Kerma #define CONFIG_ENV_SIZE 0x20000 34f1df81c4SGerald Kerma #define CONFIG_ENV_OFFSET 0xe0000 35f1df81c4SGerald Kerma 36f1df81c4SGerald Kerma /* default environment variables */ 37f1df81c4SGerald Kerma #define CONFIG_BOOTCOMMAND \ 38f1df81c4SGerald Kerma "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ 39f1df81c4SGerald Kerma "ubi part root; " \ 40f1df81c4SGerald Kerma "ubifsmount ubi:rootfs; " \ 41f1df81c4SGerald Kerma "ubifsload 0x800000 ${kernel}; " \ 42f1df81c4SGerald Kerma "ubifsload 0x700000 ${fdt}; " \ 43f1df81c4SGerald Kerma "ubifsumount; " \ 44f1df81c4SGerald Kerma "fdt addr 0x700000; fdt resize; fdt chosen; " \ 45f1df81c4SGerald Kerma "bootz 0x800000 - 0x700000" 46f1df81c4SGerald Kerma 47f1df81c4SGerald Kerma #define CONFIG_EXTRA_ENV_SETTINGS \ 48f1df81c4SGerald Kerma "console=console=ttyS0,115200\0" \ 49f1df81c4SGerald Kerma "mtdids=nand0=orion_nand\0" \ 5043ede0bcSTom Rini "mtdparts="CONFIG_MTDPARTS_DEFAULT \ 51f1df81c4SGerald Kerma "kernel=/boot/zImage\0" \ 52f1df81c4SGerald Kerma "fdt=/boot/nsa310s.dtb\0" \ 53f1df81c4SGerald Kerma "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" 54f1df81c4SGerald Kerma 55f1df81c4SGerald Kerma /* Ethernet driver configuration */ 56f1df81c4SGerald Kerma #ifdef CONFIG_CMD_NET 57f1df81c4SGerald Kerma #define CONFIG_NETCONSOLE 58f1df81c4SGerald Kerma #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 59f1df81c4SGerald Kerma #define CONFIG_PHY_BASE_ADR 1 60f1df81c4SGerald Kerma #define CONFIG_RESET_PHY_R 61f1df81c4SGerald Kerma #endif /* CONFIG_CMD_NET */ 62f1df81c4SGerald Kerma 63f1df81c4SGerald Kerma /* SATA driver configuration */ 64fc843a02SSimon Glass #ifdef CONFIG_IDE 65f1df81c4SGerald Kerma #define __io 66f1df81c4SGerald Kerma #define CONFIG_IDE_PREINIT 67f1df81c4SGerald Kerma #define CONFIG_MVSATA_IDE_USE_PORT0 68f1df81c4SGerald Kerma #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET 69fc843a02SSimon Glass #endif /* CONFIG_IDE */ 70f1df81c4SGerald Kerma 71f1df81c4SGerald Kerma /* RTC driver configuration */ 72f1df81c4SGerald Kerma #ifdef CONFIG_CMD_DATE 73f1df81c4SGerald Kerma #define CONFIG_RTC_MV 74f1df81c4SGerald Kerma #endif /* CONFIG_CMD_DATE */ 75f1df81c4SGerald Kerma 76f1df81c4SGerald Kerma #endif /* _CONFIG_NSA310S_H */ 77