- Oct 03, 2011
-
-
Lei Wen authored
When enable the multi-bus, the current_bus is not inited in the original implementation, which make the i2c operation unpredicatable. Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
Lei Wen authored
When DEBUG_I2C is open, the following build issue would shows up. mv_i2c.c: In function 'i2c_transfer': mv_i2c.c:257: error: 'ISR' undeclared (first use in this function) mv_i2c.c:257: error: (Each undeclared identifier is reported only once mv_i2c.c:257: error: for each function it appears in.) Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
- Oct 01, 2011
-
-
Graeme Russ authored
There are some locations in the code which anticipate printf() being called before the console is ready by squelching printf() on gd->have_console. Move this squelching into printf(), vprintf(), puts() and putc(). Also make tstc() and getc() return 0 if console is not yet initialised Signed-off-by:
Graeme Russ <graeme.russ@gmail.com> Tested-by:
Simon Glass <sjg@chromium.org>
-
- Sep 30, 2011
-
-
Marek Vasut authored
Rewrite the mxc_i2c driver. * This version is much closer to Linux implementation. * Fixes IPG_PERCLK being incorrectly used as clock source * Fixes behaviour of the driver on iMX51 * Clean up coding style a bit ;-) Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Jason Hui <jason.hui@linaro.org> Acked-by:
Jason Liu <jason.hui@linro.org> Acked-by:
Heiko Schocher <hs@denx.de> Tested-by:
Jason Liu <jason.hui@linro.org>
-
Heiko Schocher authored
Signed-off-by:
Heiko Schocher <hs@denx.de> Cc: Paulraj Sandeep <s-paulraj@ti.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Sep 12, 2011
-
-
Michael Jones authored
Signed-off-by:
Michael Jones <michael.jones@matrix-vision.de> Acked-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Michael Jones authored
This allows the EEPROM layer to send a single i2c write command per page, and wait CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS between i2c write commands. Signed-off-by:
Michael Jones <michael.jones@matrix-vision.de> Acked-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Sep 07, 2011
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Heiko Schocher <hs@denx.de> Acked-by:
Heiko Schocher <hs@denx.de>
-
- Jul 28, 2011
-
-
Michael Jones authored
Signed-off-by:
Michael Jones <michael.jones@matrix-vision.de> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Jun 01, 2011
-
-
Michael Brandt authored
Signed-off-by:
John Rigby <john.rigby@linaro.org> CC: Heiko Schocher <hs@denx.de>
-
- Apr 28, 2011
-
-
Heiko Schocher authored
Deblock i2c bus when switching to another i2c bus, if using i2c_set_bus_num(). Signed-off-by:
Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Holger Brunck <holger.brunck@keymile.com> Signed-off-by:
Valentin Longchamp <valentin.longchamp@keymile.com>
-
- Apr 27, 2011
-
-
Albert ARIBAUD authored
Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net>
-
Lei Wen authored
Add the ability to support multiple i2c bus for mv_i2c Acked-by:
Heiko Schocher <hs@denx.de> Acked-by:
Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
Lei Wen authored
Add i2c_clk_enable in the cpu specific code, since previous platform it, while new platform don't need. In the pantheon and armada100 platform, this function is defined as NULL one. Acked-by:
Heiko Schocher <hs@denx.de> Acked-by:
Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
Lei Wen authored
The original 10000 value would be 100ms, which is not the comments said. Acked-by:
Heiko Schocher <hs@denx.de> Acked-by:
Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
Lei Wen authored
For better sharing with other platform other than pxa's, it is more convenient to put the driver to the common place. Acked-by:
Heiko Schocher <hs@denx.de> Acked-by:
Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
Stefano Babic authored
As exception among the i.MX processors, the i.MX31 has headers without general names (mx31-regs.h, mx31.h instead of imx-regs.h and clock.h). This requires several nasty #ifdef in the drivers to include the correct header. The patch cleans up the driver and renames the header files as for the other i.MX processors. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 14, 2011
-
-
Nick Thompson authored
The omap24xx driver only seems to support devices that have a single subaddress byte. With these types of devices, the first access in a bus transaction is usually a write (writes the subaddress) followed by either a read or write to access the devices registers. Many such devices will respond to a read as the first access, but there are at least some that will NACK such a read. (e.g. ADV7180.) The probe function attempts to detect a devices ACK to a read access only and fails to find devices that NACK a read. This commit modifies the probe function to start a write instead. This detects devices that respond to reads (since they must also respond to writes) as well as those that only respond to writes. The bus is immediately set to idle after a (N)ACK avoiding actually writing anything to the device. Signed-off-by:
Nick Thompson <nick.thompson@ge.com>
-
- Feb 01, 2011
-
-
Stefano Babic authored
There is sporadic failures when more as one I2C slave is on the bus and the processor tries to communicate with more as one slave. The problem was seen on a mx35pdk (two I2C slaves, PMIC controller and CAN/RTC chip). The current driver uses the IIF bit in the status register to check if the bus is busy or not. According to the manual, this is not correct, because the IIB bit should be checked. Not only, to check if a transfer is finished must be checked the ICF bit, and this is not tested at all. This patch comes from analyse with a corresponding driver provided by Freescale as part of the LTIB tool. Comparing the two drivers, it appears that the current u-boot driver checks the wrong bits, and depending on race condition, the transfer can be successful or not. The patch gets rid also of own debug function (DPRINTF), replaced with the general debug(). Tested on Freescale mx35pdk. Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Heiko Schocher <hs@denx.de> Acked-by:
Heiko Schocher <hs@denx.de>
-
Stefano Babic authored
This driver accesses to processor's register via __REG macros, that are removed (or are planned to be removed) and replaced by C structures. This patches replaces all occurrencies of __REG macros. Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Heiko Schocher <hs@denx.de> Acked-by:
Heiko Schocher <hs@denx.de>
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Heiko Schocher <hs@denx.de> Acked-by:
Heiko Schocher <hs@denx.de>
-
Liu Hui-R64343 authored
This patch add I2C support for Freescale MX53 processor Signed-off-by:
Jason Liu <r64343@freescale.com>
-
- Jan 27, 2011
-
-
Ryan Mallon authored
Make at91 header includes in soft_i2c depend only on CONFIG_AT91FAMILY rather than individual SoCs. Signed-off-by:
Ryan Mallon <ryan@bluewatersys.com> Acked-by:
Reinhard <Meyer<u-boot@emk-elektronik.de>
-
- Dec 21, 2010
-
-
John Rigby authored
It can be optimised out by the compiler otherwise resulting in obscure errors like a board not booting. This has been documented in README since 2006 when these were first fixed up for GCC 4.x. Signed-off-by:
John Rigby <john.rigby@linaro.org> Fix some additional places. Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-By:
Albert ARIBAUD <albert.aribaud@free.fr>
-
- Nov 17, 2010
-
-
Sebastien Carlier authored
Before this commit, weak symbols were not overridden by non-weak symbols found in archive libraries when linking with recent versions of binutils. As stated in the System V ABI, "the link editor does not extract archive members to resolve undefined weak symbols". This commit changes all Makefiles to use partial linking (ld -r) instead of creating library archives, which forces all symbols to participate in linking, allowing non-weak symbols to override weak symbols as intended. This approach is also used by Linux, from which the gmake function cmd_link_o_target (defined in config.mk and used in all Makefiles) is inspired. The name of each former library archive is preserved except for extensions which change from ".a" to ".o". This commit updates references accordingly where needed, in particular in some linker scripts. This commit reveals board configurations that exclude some features but include source files that depend these disabled features in the build, resulting in undefined symbols. Known such cases include: - disabling CMD_NET but not CMD_NFS; - enabling CONFIG_OF_LIBFDT but not CONFIG_QE. Signed-off-by:
Sebastien Carlier <sebastien.carlier@gmail.com>
-
- Oct 28, 2010
-
-
C Nauman authored
This patch adds generic support for the Samsung s3c2440 processor. Global s3c24x0 changes to struct members converting from upper case to lower case. Signed-off-by:
Craig Nauman <cnauman@diagraph.com> Cc: kevin.morfitt@fearnside-systems.co.uk Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- Oct 25, 2010
-
-
Steve Sakoman authored
On OMAP36/37XX the standard on chip pullups are not sufficient to ensure proper i2c operation without external pullups or switching to high speed mode and enabling special on chip pullups. This is an issue for Beagle xM, which does not have external pullups on the expansion board i2c lines. The issue manifests itself as an AL (arbitration lost) error when probing for a non-existent device (i.e. on a Beagle xM with no expansion boards attached). This issue does not occur on expansion boards that include pullups or on Overo 37XX COM's since they include pull-ups. This patch fixes the issue by checking for the AL bit in the i2c_probe function. Signed-off-by:
Steve Sakoman <steve.sakoman@linaro.org>
-
- Oct 20, 2010
-
-
Steve Sakoman authored
This patch removes the "magic number" delays and instead monitors state changes in the status register bits. Signed-off-by:
Steve Sakoman <steve.sakoman@linaro.org> Tested-by:
Heiko Schocher <hs@denx.de>
-
Steve Sakoman authored
This patch removes the "magic number" delays and instead monitors state changes in the status register bits. Signed-off-by:
Steve Sakoman <steve.sakoman@linaro.org> Tested-by:
Heiko Schocher <hs@denx.de>
-
Steve Sakoman authored
This patch removes the "magic number" delays and instead monitors state changes in the status register bits. Signed-off-by: Steve Sakoman <steve.sakomanlinaro.org> Tested-by:
Heiko Schocher <hs@denx.de>
-
Steve Sakoman authored
This patch matches the poll interval (1 millisecond) and timeout (1 second) used in the linux driver. It also adds a return value of 0 in the event of a timeout error and cleans up some formatting errors in that section of the code. Signed-off-by:
Steve Sakoman <steve.sakoman@linaro.org> Tested-by:
Heiko Schocher <hs@denx.de>
-
- Sep 23, 2010
-
-
Stefan Roese authored
This patch moves some ppc4xx related headers from the common include directory (include/) to the powerpc specific one (arch/powerpc/include/asm/). This way to common include directory is not so cluttered with files. Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Sep 19, 2010
-
-
Heiko Schocher authored
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Sep 09, 2010
-
-
Wolfgang Denk authored
Coding style cleanup. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 30, 2010
-
-
Albert Aribaud authored
This rewrite of the mvtwsi driver is 25% smaller and much faster and simpler than the previous code. Signed-off-by:
Albert Aribaud <albert.aribaud@free.fr> Acked-by:
Prafulla <Wadaskar<prafulla@marvell.com> Acked-by:
Heiko <Schocher<hs@denx.de>
-
Albert Aribaud authored
This driver is not kirkwood-specific and can also be used e.g. by orion5x. Rename to a SoC-neutral name. Signed-off-by:
Albert Aribaud <albert.aribaud@free.fr> Acked-by:
Prafulla <Wadaskar<prafulla@marvell.com> Acked-by:
Heiko <Schocher<hs@denx.de>
-
- Aug 23, 2010
-
-
Nishanth Menon authored
Make the header guard to be generic to stop conflicting with omap2 i2c header file arch/arm/include/asm/arch-omap24xx/i2c.h Cc: Steve Sakoman <steve@sakoman.com> Cc: Heiko <hs@denx.de> Cc: Sandeep Paulraj <s-paulraj@ti.com> Cc: Wolfang Denk <wd@denx.de> Signed-off-by:
Nishanth Menon <nm@ti.com> Acked-by:
Steve Sakoman <steve@sakoman.com>
-
- Aug 05, 2010
-
-
Steve Sakoman authored
This patch modifies the init routine to follow the TRM recommendations. It also modifies the i2c_read_byte function to reflect subtle differences between the i2c controller in OMAP3 and OMAP4. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Acked-by:
Nishanth Menon <menon.nishanth@gmail.com> Acked-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
- Jul 22, 2010
-
-
Mike Frysinger authored
Since the vast majority of GPIO I2C implementations behave the same way, support the common GPIO framework with default settings. This adds two new defines CONFIG_SOFT_I2C_GPIO_{SCL,SDA} so that boards which want GPIO I2C support need only define these. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Tested-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Jul 06, 2010
-
-
Steve Sakoman authored
This patch modifies the omap24xx driver so that it will also work with OMAP4. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-