mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-18 16:08:53 +09:00
![Simon Glass](/assets/img/avatar_default.png)
There seem to be a few EEPROM drivers around - perhaps we should have a single standard one? This simple driver is used for sandbox testing, but could be pressed into more active service. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
20 lines
340 B
C
20 lines
340 B
C
/*
|
|
* Copyright (c) 2014 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __I2C_EEPROM
|
|
#define __I2C_EEPROM
|
|
|
|
struct i2c_eeprom_ops {
|
|
int (*read)(struct udevice *dev, int offset, uint8_t *buf, int size);
|
|
int (*write)(struct udevice *dev, int offset, const uint8_t *buf,
|
|
int size);
|
|
};
|
|
|
|
struct i2c_eeprom {
|
|
};
|
|
|
|
#endif
|