1 /* 2 * (C) Copyright 2009-2014 3 * Gerald Kerma <dreagle@doukki.net> 4 * Marvell Semiconductor <www.marvell.com> 5 * Written-by: Siddarth Gore <gores@marvell.com> 6 * 7 * SPDX-License-Identifier: GPL-2.0+ 8 */ 9 10 #ifndef _CONFIG_GURUPLUG_H 11 #define _CONFIG_GURUPLUG_H 12 13 14 /* 15 * Version number information 16 */ 17 #define CONFIG_IDENT_STRING "\nMarvell-GuruPlug" 18 19 /* 20 * High Level Configuration Options (easy to change) 21 */ 22 #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */ 23 #define CONFIG_KW88F6281 1 /* SOC Name */ 24 #define CONFIG_MACH_GURUPLUG /* Machine type */ 25 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ 26 27 /* 28 * Compression configuration 29 */ 30 #define CONFIG_BZIP2 31 #define CONFIG_LZMA 32 #define CONFIG_LZO 33 34 /* 35 * Enable device tree support 36 */ 37 #define CONFIG_OF_LIBFDT 38 39 /* 40 * Miscellaneous configurable options 41 */ 42 #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ 43 44 /* 45 * Commands configuration 46 */ 47 #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ 48 #define CONFIG_CMD_BOOTZ 49 #define CONFIG_CMD_DHCP 50 #define CONFIG_CMD_ENV 51 #define CONFIG_CMD_IDE 52 #define CONFIG_CMD_MII 53 #define CONFIG_CMD_NAND 54 #define CONFIG_CMD_PING 55 #define CONFIG_CMD_USB 56 #define CONFIG_CMD_FAT 57 58 /* 59 * mv-common.h should be defined after CMD configs since it used them 60 * to enable certain macros 61 */ 62 #include "mv-common.h" 63 64 /* 65 * Environment variables configurations 66 */ 67 #ifdef CONFIG_CMD_NAND 68 #define CONFIG_ENV_IS_IN_NAND 1 69 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ 70 #else 71 #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ 72 #endif 73 /* 74 * max 4k env size is enough, but in case of nand 75 * it has to be rounded to sector size 76 */ 77 #define CONFIG_ENV_SIZE 0x20000 /* 128k */ 78 #define CONFIG_ENV_OFFSET 0xE0000 /* env starts here */ 79 80 /* 81 * Default environment variables 82 */ 83 #define CONFIG_BOOTCOMMAND \ 84 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ 85 "ubi part root; " \ 86 "ubifsmount ubi:rootfs; " \ 87 "ubifsload 0x800000 ${kernel}; " \ 88 "ubifsload 0x700000 ${fdt}; " \ 89 "ubifsumount; " \ 90 "fdt addr 0x700000; fdt resize; fdt chosen; " \ 91 "bootz 0x800000 - 0x700000" 92 93 #define CONFIG_MTDPARTS \ 94 "mtdparts=orion_nand:" \ 95 "896K(uboot),128K(uboot_env)," \ 96 "-@1M(root)\0" 97 98 #define CONFIG_EXTRA_ENV_SETTINGS \ 99 "console=console=ttyS0,115200\0" \ 100 "mtdids=nand0=orion_nand\0" \ 101 "mtdparts="CONFIG_MTDPARTS \ 102 "kernel=/boot/zImage\0" \ 103 "fdt=/boot/guruplug-server-plus.dtb\0" \ 104 "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0" 105 106 #define MTDIDS_DEFAULT "nand0=orion_nand" 107 108 #define MTDPARTS_DEFAULT \ 109 "mtdparts="CONFIG_MTDPARTS 110 111 /* 112 * Ethernet Driver configuration 113 */ 114 #ifdef CONFIG_CMD_NET 115 #define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */ 116 #define CONFIG_PHY_BASE_ADR 0 117 #endif /* CONFIG_CMD_NET */ 118 119 /* 120 * SATA Driver configuration 121 */ 122 #ifdef CONFIG_MVSATA_IDE 123 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET 124 #endif /*CONFIG_MVSATA_IDE*/ 125 126 /* 127 * File system 128 */ 129 #define CONFIG_CMD_EXT2 130 #define CONFIG_CMD_EXT4 131 #define CONFIG_CMD_FAT 132 #define CONFIG_CMD_JFFS2 133 #define CONFIG_CMD_UBI 134 #define CONFIG_CMD_UBIFS 135 #define CONFIG_RBTREE 136 #define CONFIG_MTD_DEVICE 137 #define CONFIG_MTD_PARTITIONS 138 #define CONFIG_CMD_MTDPARTS 139 140 #define CONFIG_SYS_ALT_MEMTEST 141 142 #endif /* _CONFIG_GURUPLUG_H */ 143