]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: Move CONFIG_SYS_DEF_EEPROM_ADDR out of common.h
authorSimon Glass <sjg@chromium.org>
Sat, 28 Dec 2019 17:44:49 +0000 (10:44 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Jan 2020 17:36:48 +0000 (23:06 +0530)
This define seems better suited to the eeprom header file, particularly
as it is only used in the eeprom.c file.

Move it.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/common.h
include/eeprom.h

index eb6dce48019cd76820f92990eb34944f1fb16010..38736d3b228e44dd8ed151588e4e4287b58bb5af 100644 (file)
@@ -87,10 +87,6 @@ const char *symbol_lookup(unsigned long addr, unsigned long *caddr);
 long   get_ram_size  (long *, long);
 phys_size_t get_effective_memsize(void);
 
-#if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) && defined(CONFIG_SYS_I2C_EEPROM_ADDR)
-# define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
-#endif
-
 #if defined(CONFIG_SYS_DRAM_TEST)
 int testdram(void);
 #endif /* CONFIG_SYS_DRAM_TEST */
index 61eb826a7345994b20f57b23b3b311f8edc390f4..79118eb83ded490d6779cff6062347fa6f446268 100644 (file)
@@ -21,4 +21,8 @@ int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
 #define eeprom_write(dev_addr, offset, buffer, cnt) ((void)-ENOSYS)
 #endif
 
+#if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) && defined(CONFIG_SYS_I2C_EEPROM_ADDR)
+# define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
+#endif
+
 #endif