Gale: Remove unnecessary calls to I2C init functions.
authorKan Yan <kyan@google.com>
Mon, 6 Jun 2016 21:05:37 +0000 (14:05 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 9 Jun 2016 07:22:49 +0000 (00:22 -0700)
Remove unnecessary calls to I2C init functions. I2C block is already
initiailziad in coreboot.

BUG=chrome-os-partner:51096
TEST=I2C/TPM functions as expected
BRANCH=None

Change-Id: Id072fcfcd0581143ba197c19681fb352c767e782
Signed-off-by: Kan Yan <kyan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/350602
Reviewed-by: David Hendricks <dhendrix@chromium.org>
src/drivers/bus/i2c/ipq40xx_blsp.c

index d5a7957..3457b9a 100644 (file)
@@ -130,12 +130,6 @@ blsp_return_t blsp_init(blsp_qup_id_t id, blsp_protocol_t protocol)
        if (!base)
                return BLSP_ID_ERROR;
 
-       if (blsp_i2c_clock_config(id) != 0)
-               return BLSP_ID_ERROR;
-
-       if (blsp_init_board(id))
-               return BLSP_UNSUPPORTED;
-
        /* Configure Mini core to I2C core */
        clrsetbits_le32(base, QUP_CONFIG_MINI_CORE_MSK,
                                QUP_CONFIG_MINI_CORE_I2C);