Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com> |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
Simon Guinot | a35cb4c | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 6 | #ifndef _CONFIG_LACIE_KW_H |
| 7 | #define _CONFIG_LACIE_KW_H |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 8 | |
| 9 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 10 | * High Level Configuration Options (easy to change) |
| 11 | */ |
| 12 | #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */ |
Simon Guinot | 13c5ae6 | 2012-09-06 10:51:42 +0000 | [diff] [blame] | 13 | /* SoC name */ |
| 14 | #if defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2) |
| 15 | #define CONFIG_KW88F6192 |
| 16 | #else |
| 17 | #define CONFIG_KW88F6281 |
| 18 | #endif |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 19 | |
| 20 | /* |
Simon Guinot | a35cb4c | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 21 | * SDRAM configuration |
| 22 | */ |
Simon Guinot | a35cb4c | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 23 | |
Simon Guinot | 13c5ae6 | 2012-09-06 10:51:42 +0000 | [diff] [blame] | 24 | /* |
| 25 | * Different SDRAM configuration and size for some of the boards derived |
| 26 | * from the Network Space v2 |
| 27 | */ |
| 28 | #if defined(CONFIG_INETSPACE_V2) |
Masahiro Yamada | d6acdf2 | 2014-03-11 11:05:17 +0900 | [diff] [blame] | 29 | #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-is2.cfg |
Simon Guinot | 13c5ae6 | 2012-09-06 10:51:42 +0000 | [diff] [blame] | 30 | #elif defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2) |
Masahiro Yamada | d6acdf2 | 2014-03-11 11:05:17 +0900 | [diff] [blame] | 31 | #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg |
Simon Guinot | 65e0517 | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 32 | #endif |
| 33 | |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 34 | /* |
| 35 | * mv-common.h should be defined after CMD configs since it used them |
| 36 | * to enable certain macros |
| 37 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 38 | #include "mv-common.h" |
| 39 | |
| 40 | /* Remove or override few declarations from mv-common.h */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 41 | #undef CONFIG_SYS_IDE_MAXBUS |
| 42 | #undef CONFIG_SYS_IDE_MAXDEVICE |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 43 | |
| 44 | /* |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 45 | * Enable platform initialisation via misc_init_r() function |
| 46 | */ |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 47 | |
| 48 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 49 | * Ethernet Driver configuration |
| 50 | */ |
| 51 | #ifdef CONFIG_CMD_NET |
| 52 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 53 | #endif |
| 54 | |
| 55 | /* |
| 56 | * SATA Driver configuration |
| 57 | */ |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 58 | |
| 59 | #ifdef CONFIG_SATA |
| 60 | #define CONFIG_SYS_64BIT_LBA |
| 61 | #define CONFIG_LBA48 |
Simon Guinot | caf09e2 | 2012-09-06 10:51:43 +0000 | [diff] [blame] | 62 | #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \ |
| 63 | defined(CONFIG_NET2BIG_V2) |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 64 | #define CONFIG_SYS_SATA_MAX_DEVICE 2 |
Simon Guinot | 777baa9 | 2015-09-03 11:12:20 +0200 | [diff] [blame] | 65 | #else |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 66 | #define CONFIG_SYS_SATA_MAX_DEVICE 1 |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 67 | #endif |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 68 | #endif /* CONFIG_SATA */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 69 | |
| 70 | /* |
| 71 | * Enable GPI0 support |
| 72 | */ |
| 73 | #define CONFIG_KIRKWOOD_GPIO |
| 74 | |
| 75 | /* |
Simon Guinot | 5aaebab | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 76 | * Enable I2C support |
| 77 | */ |
| 78 | #ifdef CONFIG_CMD_I2C |
| 79 | /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */ |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 80 | #if defined(CONFIG_NET2BIG_V2) |
| 81 | #define CONFIG_SYS_I2C_G762_ADDR 0x3e |
| 82 | #endif |
Simon Guinot | 5aaebab | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 83 | #endif /* CONFIG_CMD_I2C */ |
| 84 | |
| 85 | /* |
Simon Guinot | 707f5d6 | 2012-09-06 10:51:41 +0000 | [diff] [blame] | 86 | * Partition support |
| 87 | */ |
Simon Guinot | 707f5d6 | 2012-09-06 10:51:41 +0000 | [diff] [blame] | 88 | |
| 89 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 90 | * File systems support |
| 91 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 92 | |
| 93 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 94 | * Environment variables configurations |
| 95 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 96 | |
| 97 | /* |
| 98 | * Default environment variables |
| 99 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 100 | #define CONFIG_BOOTCOMMAND \ |
| 101 | "dhcp && run netconsole; " \ |
| 102 | "if run usbload || run diskload; then bootm; fi" |
| 103 | |
| 104 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 105 | "stdin=serial\0" \ |
| 106 | "stdout=serial\0" \ |
| 107 | "stderr=serial\0" \ |
| 108 | "bootfile=uImage\0" \ |
| 109 | "loadaddr=0x800000\0" \ |
| 110 | "autoload=no\0" \ |
| 111 | "netconsole=" \ |
| 112 | "set stdin $stdin,nc; " \ |
| 113 | "set stdout $stdout,nc; " \ |
| 114 | "set stderr $stderr,nc;\0" \ |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 115 | "diskload=sata init && " \ |
| 116 | "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 117 | "usbload=usb start && " \ |
| 118 | "fatload usb 0:1 $loadaddr /boot/$bootfile\0" |
| 119 | |
Simon Guinot | a35cb4c | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 120 | #endif /* _CONFIG_LACIE_KW_H */ |