- Jul 31, 2012
-
-
Gerlando Falauto authored
Signed-off-by:
Gerlando Falauto <gerlando.falauto@keymile.com>
-
Holger Brunck authored
Signed-off-by:
Holger Brunck <holger.brunck@keymile.com>
-
Zhong Hongbo authored
Signed-off-by:
Zhong Hongbo <bocui107@gmail.com>
-
git://git.denx.de/u-boot-i2cWolfgang Denk authored
* 'master' of git://git.denx.de/u-boot-i2c : km/common: remove printfs for i2c deblocking code CONFIG: SMDK5250: I2C: Enable I2C I2C: Add support for Multi channel I2C: Modify the I2C driver for EXYNOS5 I2C: Move struct s3c24x0_i2c to a common place. EXYNOS: PINMUX: Add pinmux support for I2C EXYNOS5: define EXYNOS5_I2C_SPACING EXYNOS: Add I2C base address. EXYNOS: CLK: Add i2c clock mx6qsabrelite: add i2c multi-bus support imx-common: add i2c.c for bus recovery support i.mx53: add definition for I2C3_BASE_ADDR i.mx: iomux-v3.c: move to imx-common directory i.mx: iomux-v3.h: move to imx-common include directory iomux-v3: remove include of mx6x_pins.h mxc_i2c: finish adding CONFIG_I2C_MULTI_BUS support mxc_i2c: add bus recovery support mxc_i2c: prep work for multiple busses support mxc_i2c: add i2c_regs argument to i2c_imx_stop mxc_i2c: add retries mxc_i2c: check for arbitration lost mxc_i2c: change slave addr if conflicts with destination. mxc_i2c: don't disable controller after every transaction mxc_i2c: place i2c_reset code inline mxc_i2c: place imx_start code inline mxc_i2c: remove redundant read mxc_i2c: combine i2c_imx_bus_busy and i2c_imx_trx_complete into wait_for_sr_state mxc_i2c.c: code i2c_probe as a 0 length i2c_write mxc_i2c: call i2c_imx_stop on error in i2c_read/i2c_write mxc_i2c: create i2c_init_transfer mxc_i2c: clear i2sr before waiting for bit mxc_i2c: create tx_byte function mxc_i2c: remove ifdef of CONFIG_HARD_I2C mxc_i2c: fix i2c_imx_stop i2c: deblock i2c bus also if accessed before realocation Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
git://git.denx.de/u-boot-microblazeWolfgang Denk authored
* 'master' of git://git.denx.de/u-boot-microblaze : microblaze: Wire up SPI driver spi: microblaze: Adds driver for Xilinx SPI controller microblaze: intc: Clear interrupt code microblaze: Call serial multi initialization microblaze: Move __udelay implementation microblaze: Remove extern from board.c microblaze: Wire up dts configuration fdt: Add board specific dts inclusion microblaze: Move individual board linker scripts to common script in cpu tree. microblaze: Add gpio.h microblaze: Add missing undefs for UBI and UBIFS microblaze: Expand and correct configuration comments microblaze: Enable ubi support microblaze: Avoid compile error on systems without cfi flash microblaze: Remove wrong define CONFIG_SYS_FLASH_PROTECTION Conflicts: drivers/spi/Makefile Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Holger Brunck authored
This code will also be used before reallocation and during this time we are not allowed to do these printings. Signed-off-by:
Holger Brunck <holger.brunck@keymile.com> Acked-by:
Prafulla Wadaskar <Prafulla@marvell.com> Acked-by:
Heiko Schocher <hs@denx.de>
-
Rajeshwari Shinde authored
This enables I2C support on smdk5250. Pinmux setting moved to board file to avoid repeated setting of gpio lines. Signed-off-by:
Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by:
Doug Anderson <dianders@chromium.org> Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
This adds multiple i2c channel support for I2C. Signed-off-by:
Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
This patch modifies the S3C I2C driver to suppport EXYNOS5. The cahnges made to driver are as follows: - I2C base address is passed as a parameter to many functions to avoid multiple #ifdef - Channel initialisation is moved to a commom funation as it is required by i2c_init. - Hardcoding for I2CCON_ACKGEN removed. - Replaced printf with debug. - Checkpatch issues resolved. - Pinmux setting will be done in board/samsung/smdk5250/smdk5250.c to avoid repeated setting of gpio lines, as it have multi bus support. Signed-off-by:
Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by:
Doug Anderson <dianders@chromium.org> Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
struct s3c24x0_i2c is being moved to common local header file so that the same can be used by s3c series and exynos series SoCs. Signed-off-by:
Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by:
Doug Anderson <dianders@chromium.org> Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
This patch adds pinmux code for I2C. Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
This patch defined EXYNOS5_I2C_SPACING used to calculate I2C channel base address. Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
This patch adds the base address for I2C. Signed-off-by:
Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Rajeshwari Shinde authored
This adds i2c clock information for EXYNOS5. Signed-off-by:
Alim Akhtar <alim.akhtar@samsung.com> Signed-off-by:
Doug Anderson <dianders@chromium.org> Signed-off-by:
Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Troy Kisky authored
This includes bus recovery support. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Jason Liu <r64343@freescale.com>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
This include is not needed. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Jason Liu <r64343@freescale.com>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
Add support for calling a function that will toggle the SCL line to return the bus to idle condition. The actual toggling function is added in a later patch. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
This is prep work for CONFIG_I2C_MULTI_BUS. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
Retry unexpected hardware errors. This will not retry a received NAK. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
No need to continue waiting if arbitration lost. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
The i2c controller cannot be both master and slave in the same transaction. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
This helps in a multiple bus master environment which is why I also added a wait for bus idle. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
imx_reset is only referenced once so move to that location. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
imx_start is only referenced once so move to that location. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
wait_for_sr_state returns i2sr on success so no need to read again. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
Not using udelay gives a more accurate timeout. The current implementation of udelay in imx-common does not seem to wait at all for a udelay(1). Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de> ---- V2: Added WATCHDOG_RESET as suggested by Marek Vasut add error message when stop fails mxc_i2c: code i2c_probe as a 0 length i2c_write Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Troy Kisky authored
Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
Troy Kisky authored
Initial code of i2c_read and i2c_write is identical, move to subroutine. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Troy Kisky authored
Let's clear the sr register before waiting for bit to be set, instead of clearing it after hardware sets it. No real operational difference here, but allows combining of i2c_imx_trx_complete and i2c_imx_bus_busy in later patches. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
Use tx_byte function instead of having 3 copies of the code. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
This is always selected when CONFIG_I2C_MXC is selected, so it adds no value. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Troy Kisky authored
Instead of clearing 2 bits, all the other bits were set because '|=' was used instead of '&='. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Holger Brunck authored
If we switch to a different i2c bus in changing the mux config for the i2c mux, we have to be sure to deblock the bus also before realocation. Signed-off-by:
Holger Brunck <holger.brunck@keymile.com> cc: Heiko Schocher <hs@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com>
-