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 | |
| 13 | /* |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 14 | * Enable platform initialisation via misc_init_r() function |
| 15 | */ |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 16 | |
| 17 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 18 | * Ethernet Driver configuration |
| 19 | */ |
| 20 | #ifdef CONFIG_CMD_NET |
| 21 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 22 | #endif |
| 23 | |
| 24 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 25 | * Enable GPI0 support |
| 26 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 27 | |
| 28 | /* |
Simon Guinot | 5aaebab | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 29 | * Enable I2C support |
| 30 | */ |
| 31 | #ifdef CONFIG_CMD_I2C |
| 32 | /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */ |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 33 | #if defined(CONFIG_NET2BIG_V2) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 34 | #define CFG_SYS_I2C_G762_ADDR 0x3e |
Simon Guinot | 1dd67e6 | 2013-06-18 15:14:48 +0200 | [diff] [blame] | 35 | #endif |
Simon Guinot | 5aaebab | 2011-11-01 16:44:12 +0530 | [diff] [blame] | 36 | #endif /* CONFIG_CMD_I2C */ |
| 37 | |
| 38 | /* |
Simon Guinot | 707f5d6 | 2012-09-06 10:51:41 +0000 | [diff] [blame] | 39 | * Partition support |
| 40 | */ |
Simon Guinot | 707f5d6 | 2012-09-06 10:51:41 +0000 | [diff] [blame] | 41 | |
| 42 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 43 | * File systems support |
| 44 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 45 | |
| 46 | /* |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 47 | * Environment variables configurations |
| 48 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 49 | |
| 50 | /* |
| 51 | * Default environment variables |
| 52 | */ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 53 | |
| 54 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 55 | "stdin=serial\0" \ |
| 56 | "stdout=serial\0" \ |
| 57 | "stderr=serial\0" \ |
| 58 | "bootfile=uImage\0" \ |
| 59 | "loadaddr=0x800000\0" \ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 60 | "netconsole=" \ |
| 61 | "set stdin $stdin,nc; " \ |
| 62 | "set stdout $stdout,nc; " \ |
| 63 | "set stderr $stderr,nc;\0" \ |
Simon Guinot | 80f6934 | 2020-06-28 19:00:29 +0200 | [diff] [blame] | 64 | "diskload=sata init && " \ |
| 65 | "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \ |
Simon Guinot | 16311a2 | 2011-06-17 19:41:33 +0530 | [diff] [blame] | 66 | "usbload=usb start && " \ |
| 67 | "fatload usb 0:1 $loadaddr /boot/$bootfile\0" |
| 68 | |
Simon Guinot | a35cb4c | 2011-11-21 19:25:47 +0530 | [diff] [blame] | 69 | #endif /* _CONFIG_LACIE_KW_H */ |