X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Fkeymile%2Fkm83xx%2Fkm83xx_i2c.c;h=b80672d1b43f9cefa33a7e9a3bc4c1cc84ad0d9d;hb=6d5d0c955e2ca035481bc133d453fccd065b80e8;hp=f0b528d1c8ffdd2d7b96627ac72cb93e706dbd84;hpb=27bec5c12757c80f598b704477c1bc6c250bcb4c;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/keymile/km83xx/km83xx_i2c.c b/board/keymile/km83xx/km83xx_i2c.c index f0b528d..b80672d 100644 --- a/board/keymile/km83xx/km83xx_i2c.c +++ b/board/keymile/km83xx/km83xx_i2c.c @@ -1,21 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2011 * Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include #include #include +#include #include "../common/common.h" static void i2c_write_start_seq(void) { struct fsl_i2c_base *base; base = (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + - CONFIG_SYS_I2C_OFFSET); + CONFIG_SYS_FSL_I2C_OFFSET); udelay(DELAY_ABORT_SEQ); out_8(&base->cr, (I2C_CR_MEN | I2C_CR_MSTA)); udelay(DELAY_ABORT_SEQ); @@ -26,7 +26,7 @@ int i2c_make_abort(void) { struct fsl_i2c_base *base; base = (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + - CONFIG_SYS_I2C_OFFSET); + CONFIG_SYS_FSL_I2C_OFFSET); uchar last; int nbr_read = 0; int i = 0;