diff options
author | Tom Rini <trini@konsulko.com> | 2021-10-21 21:41:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-21 21:41:47 -0400 |
commit | 06685f9de2c1ae37cd015848d245f8a59cbc93dc (patch) | |
tree | 5ca4315422f6725caa7b6f77cbc97145e1c6f086 /env/eeprom.c | |
parent | f200a4bcecf1be6d8b546f0eb6af6403c93d80dd (diff) | |
parent | f231566475c545de476a3bf5f596c246c52511aa (diff) |
Merge tag 'dm-pull-21oct21' of https://source.denx.de/u-boot/custodians/u-boot-dm
Refactoring of env_get_char() etc.
Update buildman to use gcc-11.1.0
Use in-container toolchain for nokia_rx51 CI test
# gpg: Signature made Thu 21 Oct 2021 09:34:07 PM EDT
# gpg: using RSA key B25C0022AF86A7CC1655B6277F173A3E9008ADE6
# gpg: issuer "sjg@chromium.org"
# gpg: Good signature from "Simon Glass <sjg@chromium.org>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: B25C 0022 AF86 A7CC 1655 B627 7F17 3A3E 9008 ADE6
Diffstat (limited to 'env/eeprom.c')
-rw-r--r-- | env/eeprom.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/env/eeprom.c b/env/eeprom.c index 253bdf14284..f8556a47213 100644 --- a/env/eeprom.c +++ b/env/eeprom.c @@ -64,24 +64,6 @@ static int eeprom_bus_write(unsigned dev_addr, unsigned offset, return rcode; } -/** Call this function from overridden env_get_char_spec() if you need - * this functionality. - */ -int env_eeprom_get_char(int index) -{ - uchar c; - unsigned int off = CONFIG_ENV_OFFSET; - -#ifdef CONFIG_ENV_OFFSET_REDUND - if (gd->env_valid == ENV_REDUND) - off = CONFIG_ENV_OFFSET_REDUND; -#endif - eeprom_bus_read(CONFIG_SYS_I2C_EEPROM_ADDR, - off + index + offsetof(env_t, data), &c, 1); - - return c; -} - static int env_eeprom_load(void) { char buf_env[CONFIG_ENV_SIZE]; |