uboot/include/eeprom.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0+ */
   2/*
   3 * (C) Copyright 2000-2009
   4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
   5 */
   6
   7#ifndef __EEPROM_LEGACY_H
   8#define __EEPROM_LEGACY_H
   9
  10#ifdef CONFIG_CMD_EEPROM
  11void eeprom_init(int bus);
  12int eeprom_read(uint dev_addr, uint offset, uchar *buffer, uint cnt);
  13int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
  14#else
  15/*
  16 * Some EEPROM code is depecated because it used the legacy I2C interface. Add
  17 * some macros here so we don't have to touch every one of those uses
  18 */
  19#define eeprom_init(bus)
  20#define eeprom_read(dev_addr, offset, buffer, cnt) ((void)-ENOSYS)
  21#define eeprom_write(dev_addr, offset, buffer, cnt) ((void)-ENOSYS)
  22#endif
  23
  24#endif
  25