blob: a5ef5abbafd83af6370b4b4f6fa9bbab4874ee7d [file] [log] [blame]
Enrico Leto096bfdc2024-01-24 15:43:49 +01001/* 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 Leto32f433f2024-01-24 15:43:50 +010021int siemens_ee_setup(void);
22int siemens_ee_read_data(uint address, uchar *buffer, int len);
23
Enrico Leto096bfdc2024-01-24 15:43:49 +010024#endif /* _COMMON_EEPROM_H_ */