Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Marvell Semiconductor <www.marvell.com> |
| 4 | * Prafulla Wadaskar <prafulla@marvell.com> |
| 5 | * |
| 6 | * (C) Copyright 2009 |
| 7 | * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 8 | * |
| 9 | * See file CREDITS for list of people who contributed to this |
| 10 | * project. |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of |
| 15 | * the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program; if not, write to the Free Software |
| 24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 25 | * MA 02110-1301 USA |
| 26 | */ |
| 27 | |
| 28 | /* |
| 29 | * for linking errors see |
| 30 | * http://lists.denx.de/pipermail/u-boot/2009-July/057350.html |
| 31 | */ |
| 32 | |
| 33 | #ifndef _CONFIG_SUEN3_H |
| 34 | #define _CONFIG_SUEN3_H |
| 35 | |
| 36 | /* include common defines/options for all arm based Keymile boards */ |
Valentin Longchamp | 2f968d8 | 2011-05-04 01:47:33 +0000 | [diff] [blame^] | 37 | #include "km/km_arm.h" |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 38 | |
| 39 | /* |
| 40 | * Version number information |
| 41 | */ |
| 42 | #define CONFIG_IDENT_STRING "\nKeymile SUEN3" |
| 43 | |
| 44 | #define CONFIG_HOSTNAME suen3 |
| 45 | |
Heiko Schocher | e4533af | 2011-03-08 10:53:51 +0100 | [diff] [blame] | 46 | #define KM_IVM_BUS "pca9544a:70:9" /* I2C2 (Mux-Port 1)*/ |
| 47 | #define KM_ENV_BUS "pca9544a:70:d" /* I2C2 (Mux-Port 5)*/ |
| 48 | |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 49 | /* |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 50 | * Default environment variables |
| 51 | */ |
| 52 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 53 | CONFIG_KM_DEF_ENV \ |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 54 | "newenv=setenv addr 0x100000 && " \ |
| 55 | "i2c dev 1; mw.b ${addr} 0 4 && " \ |
| 56 | "eeprom write " xstr(CONFIG_SYS_DEF_EEPROM_ADDR) \ |
| 57 | " ${addr} " xstr(CONFIG_ENV_OFFSET) " 4 && " \ |
| 58 | "eeprom write " xstr(CONFIG_SYS_DEF_EEPROM_ADDR) \ |
| 59 | " ${addr} " xstr(CONFIG_ENV_OFFSET_REDUND) " 4\0" \ |
| 60 | "rootpath=/opt/eldk/arm\0" \ |
Heiko Schocher | e4533af | 2011-03-08 10:53:51 +0100 | [diff] [blame] | 61 | "EEprom_ivm=" KM_IVM_BUS "\0" \ |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 62 | "" |
| 63 | |
| 64 | #endif /* _CONFIG_SUEN3_H */ |