Enrico Leto | 096bfdc | 2024-01-24 15:43:49 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright Siemens AG 2023 |
| 4 | * |
| 5 | * Common board definitions for siemens boards |
| 6 | */ |
| 7 | |
| 8 | #ifndef _COMMON_EEPROM_H_ |
| 9 | #define _COMMON_EEPROM_H_ |
| 10 | |
| 11 | /* EEPROM @ I2C */ |
| 12 | #define SIEMENS_EE_I2C_BUS 0 |
| 13 | #define SIEMENS_EE_I2C_ADDR 0x50 |
| 14 | |
| 15 | /* EEPROM mapping */ |
| 16 | #define SIEMENS_EE_ADDR_NAND_GEO 0x80 |
| 17 | #define SIEMENS_EE_ADDR_DDR3 0x90 |
| 18 | #define SIEMENS_EE_ADDR_CHIP 0x120 |
| 19 | #define SIEMENS_EE_ADDR_FACTORYSET 0x400 |
| 20 | |
Enrico Leto | 32f433f | 2024-01-24 15:43:50 +0100 | [diff] [blame] | 21 | int siemens_ee_setup(void); |
| 22 | int siemens_ee_read_data(uint address, uchar *buffer, int len); |
| 23 | |
Enrico Leto | 096bfdc | 2024-01-24 15:43:49 +0100 | [diff] [blame] | 24 | #endif /* _COMMON_EEPROM_H_ */ |