diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-04-24 14:45:43 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-04-28 15:11:15 +1000 |
commit | 53d818548ed991725863f44506121f391d6e91bf (patch) | |
tree | af6ac12a502b7de1e3e6b698a38e888b8c28462b /hw | |
parent | 6d23358c4015befe6d35254e7f29f6c4e5161f82 (diff) | |
download | skiboot-53d818548ed991725863f44506121f391d6e91bf.zip skiboot-53d818548ed991725863f44506121f391d6e91bf.tar.gz skiboot-53d818548ed991725863f44506121f391d6e91bf.tar.bz2 |
i2c: Remove old hack for bad clock frequency
This hack dates back to ancient P8 hostboots. The value
it would use if it detected the "bad" value was incorrect
anyway.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/p8-i2c.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/p8-i2c.c b/hw/p8-i2c.c index bfbc31d..c201ad2 100644 --- a/hw/p8-i2c.c +++ b/hw/p8-i2c.c @@ -1446,12 +1446,6 @@ static void p8_i2c_init_one(struct dt_node *i2cm, enum p8_i2c_master_type type) /* Local bus speed in Hz */ lb_freq = dt_prop_get_u32(i2cm, "clock-frequency"); - /* XXX HACK for bad HB value */ - if (lb_freq == 600000000) { - prlog(PR_ERR, "I2C: Fixing up HB bad clock freq !\n"); - lb_freq = 50000000; - } - /* Initialise the i2c master structure */ master->state = state_idle; master->chip_id = dt_get_chip_id(i2cm); |