compulab: eeprom: add default eeprom bus
PATCH 1/1 compulab: eeprom: add default eeprom bus
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.
--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)
board/compulab/common/eeprom.c +4 -0
@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif +#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8
Signature · 1 line
1.9.1
PATCH 1/1 compulab: eeprom: add default eeprom bus
Quoted 7 lines · Nikita Kiryanov
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.Cc Albert ARIBAUD <[email protected]>Cc Igor Grinberg <[email protected]>Signed-off-by Nikita Kiryanov <[email protected]>
Albert, this should be a temporary fix to not break the trimslice support. We intend to rework this while switching Kconfig for all boards.
Thanks!
Quoted 20 lines
--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)board/compulab/common/eeprom.c +4
-0@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif +#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8
Signature · 2 lines
Regards, Igor.
PATCH 1/1 compulab: eeprom: add default eeprom bus
Hi Igor,
Quoted 28 lines · Igor Grinberg
Quoted 7 lines · Nikita Kiryanov
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.Cc Albert ARIBAUD <[email protected]>Cc Igor Grinberg <[email protected]>Signed-off-by Nikita Kiryanov <[email protected]>Acked-by Igor Grinberg <[email protected]>Albert, this should be a temporary fix to not break the trimslice support. We intend to rework this while switching
Kconfigfor all boards.Thanks!
Quoted 12 lines
--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)board/compulab/common/eeprom.c +0
-0@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif
Quoted 8 lines
board/compulab/common/eeprom.c line 24
Quoted 8 lines
board/compulab/common/eeprom.c +4
-0+#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8
a 'git grep CONFIG_SYS_I2C_EEPROM_BUS' shows that all values for CONFIG_SYS_I2C_EEPROM_BUS are set in include/configs/*.h.
Therefore I would prefer that the temporary fix be in include/configs/trimslice.h header file too.
Amicalement,
Signature · 1 line
Albert.
PATCH 1/1 compulab: eeprom: add default eeprom bus
Hi ALbert,
Quoted 45 lines · Albert ARIBAUD
Hi Igor,
Quoted 28 lines · Igor Grinberg
Quoted 7 lines · Nikita Kiryanov
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.Cc Albert ARIBAUD <[email protected]>Cc Igor Grinberg <[email protected]>Signed-off-by Nikita Kiryanov <[email protected]>Acked-by Igor Grinberg <[email protected]>Albert, this should be a temporary fix to not break the trimslice support. We intend to rework this while switching
Kconfigfor all boards.Thanks!
Quoted 12 lines
--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)board/compulab/common/eeprom.c +0
-0@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif Quoted 8 lines
board/compulab/common/eeprom.c line 24
Quoted 8 lines
board/compulab/common/eeprom.c +4
-0+#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8a 'git grep
CONFIG_SYS_I2C_EEPROM_BUS' shows that all values forCONFIG_SYS_I2C_EEPROM_BUSare set ininclude/configs/*.h.
Quoted 3 lines
Therefore I would prefer that the temporary fix be in
include/configs/trimslice.hheader file too.
Given that trimslice does not use the eeprom code, I feel that it's cleaner to not populate its config file with irrelevant defines. It's also consistent with the way CONFIG_SYS_I2C_EEPROM_ADDR and CONFIG_SYS_I2C_EEPROM_ADDR_LEN are handled.
Signature · 2 lines
Regards, Nikita Kiryanov
PATCH 1/1 compulab: eeprom: add default eeprom bus
Hi Nikita,
Quoted 48 lines · Nikita Kiryanov
Hi ALbert,
Quoted 45 lines · Albert ARIBAUD
Hi Igor,
Quoted 28 lines · Igor Grinberg
Quoted 7 lines · Nikita Kiryanov
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.Cc Albert ARIBAUD <[email protected]>Cc Igor Grinberg <[email protected]>Signed-off-by Nikita Kiryanov <[email protected]>Acked-by Igor Grinberg <[email protected]>Albert, this should be a temporary fix to not break the trimslice support. We intend to rework this while switching
Kconfigfor all boards.Thanks!
Quoted 12 lines
--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)board/compulab/common/eeprom.c +0
-0@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif Quoted 8 lines
board/compulab/common/eeprom.c line 24
Quoted 8 lines
board/compulab/common/eeprom.c +4
-0+#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8a 'git grep
CONFIG_SYS_I2C_EEPROM_BUS' shows that all values forCONFIG_SYS_I2C_EEPROM_BUSare set ininclude/configs/*.h.
Quoted 8 lines
Quoted 3 lines
Therefore I would prefer that the temporary fix be in
include/configs/trimslice.hheader file too.Given that trimslice does not use the eeprom code, I feel that it's cleaner to not populate its config file with irrelevant defines. It's also consistent with the way
CONFIG_SYS_I2C_EEPROM_ADDRandCONFIG_SYS_I2C_EEPROM_ADDR_LENare handled.
Makes sense enough.
Amicalement,
Signature · 1 line
Albert.
PATCH 1/1 compulab: eeprom: add default eeprom bus
Gentle ping.
Quoted 66 lines · Albert ARIBAUD
Hi Nikita,
Quoted 48 lines · Nikita Kiryanov
Hi ALbert,
Quoted 45 lines · Albert ARIBAUD
Hi Igor,
Quoted 28 lines · Igor Grinberg
Quoted 7 lines · Nikita Kiryanov
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.Cc Albert ARIBAUD <[email protected]>Cc Igor Grinberg <[email protected]>Signed-off-by Nikita Kiryanov <[email protected]>Acked-by Igor Grinberg <[email protected]>Albert, this should be a temporary fix to not break the trimslice support. We intend to rework this while switching
Kconfigfor all boards.Thanks!
Quoted 12 lines
--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)board/compulab/common/eeprom.c +0
-0@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif Quoted 8 lines
board/compulab/common/eeprom.c line 24
Quoted 8 lines
board/compulab/common/eeprom.c +4
-0+#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8a 'git grep
CONFIG_SYS_I2C_EEPROM_BUS' shows that all values forCONFIG_SYS_I2C_EEPROM_BUSare set ininclude/configs/*.h.Quoted 8 lines
Quoted 3 lines
Therefore I would prefer that the temporary fix be in
include/configs/trimslice.hheader file too.Given that trimslice does not use the eeprom code, I feel that it's cleaner to not populate its config file with irrelevant defines. It's also consistent with the way
CONFIG_SYS_I2C_EEPROM_ADDRandCONFIG_SYS_I2C_EEPROM_ADDR_LENare handled.Makes sense enough.
Amicalement,
Signature · 2 lines
Regards, Nikita Kiryanov
PATCH 1/1 compulab: eeprom: add default eeprom bus
In reply to Nikita KiryanovHi Nikita,
Quoted 16 lines · Nikita Kiryanov
Add default eeprom bus setting.
This addresses the trimslice compile error that was introduced with the addition of this setting.Cc Albert ARIBAUD <[email protected]>Cc Igor Grinberg <[email protected]>Signed-off-by Nikita Kiryanov <[email protected]>--- board/compulab/common/eeprom.c | 4 ++++ 1 file changed, 4 insertions(+)board/compulab/common/eeprom.c +0
-0
board/compulab/common/eeprom.c line 24
Quoted 10 lines
board/compulab/common/eeprom.c +4
-0@@ -15,6 +15,10 @@# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1#endif +#ifndef CONFIG_SYS_I2C_EEPROM_BUS +#define CONFIG_SYS_I2C_EEPROM_BUS 0 +#endif +#define EEPROM_LAYOUT_VER_OFFSET 44#define BOARD_SERIAL_OFFSET 20#define BOARD_SERIAL_OFFSET_LEGACY 8
Applied to u-boot-arm/master, thanks!
Unclean builds now down from 6 to 5 (openrd_client openrd_ultimate tricorder_flash openrd_base tricorder)
Amicalement,
Signature · 1 line
Albert.