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 | |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 9 | #include "mv-common.h" |
| 10 | |
| 11 | /* Remove or override few declarations from mv-common.h */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 12 | #undef CONFIG_SYS_IDE_MAXBUS |
| 13 | #undef CONFIG_SYS_IDE_MAXDEVICE |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 14 | |
| 15 | /* |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 16 | * Enable platform initialisation via misc_init_r() function |
| 17 | */ |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 18 | |
| 19 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 20 | * Ethernet Driver configuration |
| 21 | */ |
| 22 | #ifdef CONFIG_CMD_NET |
| 23 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 24 | #endif |
| 25 | |
| 26 | /* |
| 27 | * SATA Driver configuration |
| 28 | */ |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 29 | |
| 30 | #ifdef CONFIG_SATA |
| 31 | #define CONFIG_SYS_64BIT_LBA |
| 32 | #define CONFIG_LBA48 |
Simon Guinot | caf09e2 | 2012-09-06 10:51:43 +0000 | [diff] [blame] | 33 | #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \ |
| 34 | defined(CONFIG_NET2BIG_V2) |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 35 | #define CONFIG_SYS_SATA_MAX_DEVICE 2 |
Simon Guinot | 777baa9 | 2015-09-03 11:12:20 +0200 | [diff] [blame] | 36 | #else |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 37 | #define CONFIG_SYS_SATA_MAX_DEVICE 1 |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 38 | #endif |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 39 | #endif /* CONFIG_SATA */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 40 | |
| 41 | /* |
| 42 | * Enable GPI0 support |
| 43 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 44 | |
| 45 | /* |
Simon Guinot | 5aaebab | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 46 | * Enable I2C support |
| 47 | */ |
| 48 | #ifdef CONFIG_CMD_I2C |
| 49 | /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */ |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 50 | #if defined(CONFIG_NET2BIG_V2) |
| 51 | #define CONFIG_SYS_I2C_G762_ADDR 0x3e |
| 52 | #endif |
Simon Guinot | 5aaebab | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 53 | #endif /* CONFIG_CMD_I2C */ |
| 54 | |
| 55 | /* |
Simon Guinot | 707f5d6 | 2012-09-06 10:51:41 +0000 | [diff] [blame] | 56 | * Partition support |
| 57 | */ |
Simon Guinot | 707f5d6 | 2012-09-06 10:51:41 +0000 | [diff] [blame] | 58 | |
| 59 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 60 | * File systems support |
| 61 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 62 | |
| 63 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 64 | * Environment variables configurations |
| 65 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 66 | |
| 67 | /* |
| 68 | * Default environment variables |
| 69 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 70 | |
| 71 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 72 | "stdin=serial\0" \ |
| 73 | "stdout=serial\0" \ |
| 74 | "stderr=serial\0" \ |
| 75 | "bootfile=uImage\0" \ |
| 76 | "loadaddr=0x800000\0" \ |
| 77 | "autoload=no\0" \ |
| 78 | "netconsole=" \ |
| 79 | "set stdin $stdin,nc; " \ |
| 80 | "set stdout $stdout,nc; " \ |
| 81 | "set stderr $stderr,nc;\0" \ |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 82 | "diskload=sata init && " \ |
| 83 | "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 84 | "usbload=usb start && " \ |
| 85 | "fatload usb 0:1 $loadaddr /boot/$bootfile\0" |
| 86 | |
Simon Guinot | a35cb4c | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 87 | #endif /* _CONFIG_LACIE_KW_H */ |