diff options
author | Mario Scheithauer <mario.scheithauer@siemens.com> | 2018-11-22 16:30:57 +0100 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2018-11-26 08:06:12 +0000 |
commit | 016cc4296e7040c60c741b186d6b3e87a688421c (patch) | |
tree | a30d65ee4fa5192422f8dc70a4f13de427f3b37b /src/mainboard/siemens/mc_apl1 | |
parent | 9df0440c6cd0031c81d15ed10df68a94fc43bac6 (diff) |
siemens/mc_apl1/variants/mc_apl*: Remove unneeded PTN read
An additional read of PTN configuration data at the end of the
ptn3460_init function is not necessary.
Change-Id: I5f7f647242e94b1af13757d00e80ed9813d435d0
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/c/29799
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/siemens/mc_apl1')
-rw-r--r-- | src/mainboard/siemens/mc_apl1/variants/mc_apl1/ptn3460.c | 6 | ||||
-rw-r--r-- | src/mainboard/siemens/mc_apl1/variants/mc_apl5/ptn3460.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl1/ptn3460.c b/src/mainboard/siemens/mc_apl1/variants/mc_apl1/ptn3460.c index e95b75247b..060a35c0a8 100644 --- a/src/mainboard/siemens/mc_apl1/variants/mc_apl1/ptn3460.c +++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl1/ptn3460.c @@ -109,12 +109,6 @@ int ptn3460_init(const char *hwi_block) return (PTN_BUS_ERROR | status); } - /* Read PTN configuration data. */ - status = i2c_read_bytes(PTN_I2C_CONTROLLER, PTN_SLAVE_ADR, - PTN_CONFIG_OFF, (uint8_t *)&cfg, sizeof(cfg)); - if (status) - return (PTN_BUS_ERROR | status); - return PTN_NO_ERROR; } diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl5/ptn3460.c b/src/mainboard/siemens/mc_apl1/variants/mc_apl5/ptn3460.c index 829af2a25b..01da624d29 100644 --- a/src/mainboard/siemens/mc_apl1/variants/mc_apl5/ptn3460.c +++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl5/ptn3460.c @@ -110,12 +110,6 @@ int ptn3460_init(const char *hwi_block) return (PTN_BUS_ERROR | status); } - /* Read PTN configuration data. */ - status = i2c_read_bytes(PTN_I2C_CONTROLLER, PTN_SLAVE_ADR, - PTN_CONFIG_OFF, (uint8_t *)&cfg, sizeof(cfg)); - if (status) - return (PTN_BUS_ERROR | status); - return PTN_NO_ERROR; } |