- Oct 09, 2017
-
-
Simon Glass authored
These three drivers all use U_BOOT_DEVICE rather than device tree to create devices, so have to do manual allocation of platform data. This is not true for new platforms. Add a more explicit comment so that people do not copy this approach with new boards. Signed-off-by:
Simon Glass <sjg@chromium.org> Reported-by:
Adam Ford <aford173@gmail.com>
-
- Jun 01, 2017
-
-
Simon Glass authored
These support the flat device tree. We want to use the dev_read_..() prefix for functions that support both flat tree and live tree. So rename the existing functions to avoid confusion. In the end we will have: 1. dev_read_addr...() - works on devices, supports flat/live tree 2. devfdt_get_addr...() - current functions, flat tree only 3. of_get_address() etc. - new functions, live tree only All drivers will be written to use 1. That function will in turn call either 2 or 3 depending on whether the flat or live tree is in use. Note this involves changing some dead code - the imx_lpi2c.c file. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 02, 2015
-
-
Adrian Alonso authored
* Add mxc_gpio support for imx7d SoC * Use CONFIG_MX7 to extend mxc gpio driver support for imx7d Signed-off-by:
Peng Fan <Peng.Fan@freescale.com> Signed-off-by:
Adrian Alonso <aalonso@freescale.com>
-
- Aug 18, 2015
-
-
Masahiro Yamada authored
We have flipped CONFIG_SPL_DISABLE_OF_CONTROL. We have cleansing devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear away the ugly logic in include/fdtdec.h: #ifdef CONFIG_OF_CONTROL # if defined(CONFIG_SPL_BUILD) && !defined(SPL_OF_CONTROL) # define OF_CONTROL 0 # else # define OF_CONTROL 1 # endif #else # define OF_CONTROL 0 #endif Now CONFIG_IS_ENABLED(OF_CONTROL) is the substitute. It refers to CONFIG_OF_CONTROL for U-boot proper and CONFIG_SPL_OF_CONTROL for SPL. Also, we no longer have to cancel CONFIG_OF_CONTROL in include/config_uncmd_spl.h and scripts/Makefile.spl. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Linus Walleij <linus.walleij@linaro.org>
-
- Aug 02, 2015
-
-
Peng Fan authored
i.MX6UL does not have GPIO6/7, so do not include them for i.MX6UL. Signed-off-by:
Peng Fan <Peng.Fan@freescale.com>
-
- Apr 17, 2015
-
-
Simon Glass authored
Add a convenience function to access the private data that a uclass stores for each of its devices. Convert over most existing uses for consistency and to provide an example for others. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Feb 12, 2015
-
-
Peng Fan authored
This patch add DT support for mxc gpio driver. There are one place using CONFIG_OF_CONTROL macro. 1. The U_BOOT_DEVICES and mxc_plat array are complied out. To DT, platdata is alloced using calloc, so there is no need to use mxc_plat. The following situations are tested, and all work fine: 1. with DM, without DT 2. with DM and DT 3. without DM Since device tree has not been upstreamed, if want to test this patch. The followings need to be done. + pieces of code does not gpio_request when using gpio_direction_xxx and etc, need to request gpio. + move the gpio settings from board_early_init_f to board_init + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL + Add device tree file and do related configuration in `make ARCH=arm menuconfig` These will be done in future patches by step. Signed-off-by:
Peng Fan <Peng.Fan@freescale.com> Acked-by:
Igor Grinberg <grinberg@compulab.co.il> Acked-by:
Simon Glass <sjg@chromium.org>
-
Peng Fan authored
Add a new entry in platdata structure and intialize bank_index in mxc_plat array. This new entry can avoid using `plat - mxc_plat` by using `plat->bank_index`. Signed-off-by:
Peng Fan <Peng.Fan@freescale.com> Acked-by:
Igor Grinberg <grinberg@compulab.co.il> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Oct 24, 2014
-
-
Simon Glass authored
Now that the uclass supports gpio_request/free() there is no need for the driver to implement it too. Drop this unnecessary code. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 22, 2014
-
-
Simon Glass authored
Add driver model support with this driver. In this case the platform data is in the driver. It would be better to put this into an SOC-specific file, but this is best attempted when more boards are moved over to use driver model. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Igor Grinberg <grinberg@compulab.co.il>
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
Dirk Behme authored
Setting the direction and an output value should be done by First, set the desired output value. Then, switch to output. If this is done in the inverse order, like at the moment, there can be a glitch on the GPIO line while switching first the old output value and aftwards the new one. Fix this by inverting the order of the direction/set_value calls. Signed-off-by:
Dirk Behme <dirk.behme@de.bosch.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Nov 10, 2012
-
-
Troy Kisky authored
Use CONFIG_MX6 when the particular processor variant isn't important. Reserve the use of CONFIG_MX6Q to specifically test for quad cores variant. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com>
-
- Sep 01, 2012
-
-
trem authored
The gpio api has been tested on an armadeus apf27. Signed-off-by:
Philippe Reynes <tremyfr@yahoo.fr> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Benoît Thébaudeau authored
gpio_get_value() should use PSR like Linux, not DR, because DR does not always reflect the pin state, while PSR does. This is especially useful to detect a short circuit on a GPIO pin configured as output, or to read the level of a pin controlled by a non-GPIO IOMUX function. Signed-off-by:
Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Stefano Babic <sbabic@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- May 15, 2012
-
-
Timo Ketola authored
Signed-off-by:
Timo Ketola <timo@exertus.fi> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 16, 2012
-
-
Vikram Narayanan authored
Return gpio_set_value in gpio_direction_output. Earlier it returned 0 and ignored gpio_set_value's return value. Signed-off-by:
Vikram Narayanan <vikram186@gmail.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Vikram Narayanan authored
Use the defined GPIO_TO_PORT macro. Remove gpio >> 5 references. Signed-off-by:
Vikram Narayanan <vikram186@gmail.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Vikram Narayanan authored
Add GPIO_TO_PORT macro in the mxc_gpio.c driver Signed-off-by:
Vikram Narayanan <vikram186@gmail.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Jan 10, 2012
-
-
Joe Hershberger authored
ARM boards should use the generic GPIO API This means changing gpio to unsigned type Remove the unused gpio_toggle() function which is not part of the API Comment that free should not modify pin state Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> fixed merge conflict in da8xx_gpio.c, tegra2_gpio.c, and extended to the new mxs_gpio.c. Signed-off-by:
Kim Phillips <kim.phillips@freescale.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
-
- Dec 09, 2011
-
-
Jason Liu authored
Signed-off-by:
Jason Liu <jason.hui@linaro.org> Cc: Stefano Babic <sbabic@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Sep 04, 2011
-
-
Stefano Babic authored
IMX processors has a slightly different interface to access GPIOs and do not make use of the provided GPIO framework. The patch substitutes mxc_ specific functions and make use of the API in asm/gpio.h Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- May 11, 2011
-
-
Fabio Estevam authored
Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Apr 27, 2011
-
-
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>
-
- Feb 01, 2011
-
-
Liu Hui-R64343 authored
This patch add mxc_gpio support for Freescale MX53 processor Signed-off-by:
Jason Liu <r64343@freescale.com>
-
- Sep 29, 2010
-
-
Stefano Babic authored
The patch adds support for setting gpios to the MX51 processor and change name to the corresponding functions for MX31. In this way, it is possible to get rid of nasty #ifdef switches related to the processor type. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 30, 2010
-
-
Stefano Babic authored
The patch adds an accessor function to get the value of a gpio. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Apr 24, 2010
-
-
Stefano Babic authored
The patch adds an accessor function to get the value of a gpio. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Feb 24, 2009
-
-
Guennadi Liakhovetski authored
This is a minimal driver, so far only managing output. It will be used by the mxc_spi.c driver. Signed-off-by:
Guennadi Liakhovetski <lg@denx.de> Acked-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-