summaryrefslogtreecommitdiff
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* thermal: ti-bandgap: Add support for temperature sensorFaiz Abbas2017-11-214-0/+206
| | | | | | | | | | The dra7xx series of SOCs contain a temperature sensor and an associated analog-to-digital converter (ADC) which produces an output which is proportional to the SOC temperature. Add support for this temperature sensor. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* omap3: spi: the symbol for Hertz is HzHeinrich Schuchardt2017-11-201-1/+2
| | | | | | fix typo Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* Merge git://git.denx.de/u-boot-ubiTom Rini2017-11-201-2/+1
|\
| * ubi: no NULL check needed before kmem_cache_destroyHeinrich Schuchardt2017-11-201-2/+1
| | | | | | | | | | | | | | | | kmem_cache_destroy calls free which checks for NULL. Problem was indicated by coccinelle. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | Merge git://git.denx.de/u-boot-i2cTom Rini2017-11-203-0/+270
|\ \
| * | i2c: add Amlogic Meson driverBeniamino Galvani2017-11-203-0/+270
| |/ | | | | | | | | | | | | Add a driver for the I2C controller available on Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
* | Merge git://git.denx.de/u-boot-dmTom Rini2017-11-191-1/+2
|\ \ | |/ |/|
| * dm: core: Correct address cast in dev_read_addr_ptr()Simon Glass2017-11-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This currently causes a warning in sandbox and will not do the right thing: drivers/core/read.c: In function ‘dev_read_addr_ptr’: drivers/core/read.c:64:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (addr == FDT_ADDR_T_NONE) ? NULL : (void *)addr; Use map_sysmem() which is the correct way to convert an address to a pointer. Fixes: c131c8bca8 (dm: core: add dev_read_addr_ptr()) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* | dm: pci: change bus number register setting compliant with LinuxMinghuan Lian2017-11-173-4/+5
| | | | | | | | | | | | | | | | | | | | This patch is to change U-Boot PCI bus assignement compliant with Linux. It means each PCIe controller's bus number is 0, not the current maximum PCI bus number, when start to scan this controller. Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* | serial: nulldev: Implement "pending" function to fix tstc return "true"Wilson Lee2017-11-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In U-boot, serial_tstc was use to determine is there have a character in serial console that pending for read. If there is no "pending" function implemented in serial driver, the serial-uclass will return "true(1)" to indicate there have a character pending to read. Thus, read a character from nulldev serial will result in continuous getting -EAGAIN return which might lead system to hang. This commit is to fix a bug in nulldev serial which implement "pending" function in nulldev serial to always indicate there is no character in console that pending for read. Signed-off-by: Wilson Lee <wilson.lee@ni.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Keng Soon Cheah <keng.soon.cheah@ni.com> Cc: Chen Yee Chew <chen.yee.chew@ni.com> Cc: Bin Meng <bmeng.cn@gmail.com>
* | clk: clk_stm32f7: fix PLL clock division factorPatrice Chotard2017-11-171-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | Fix clock division factor initialization for RCC_PLLCFGR registers. PLLR bits (bit 31-28) in RCC_PLLCFGR must not be cleared, it's a forbidden value. So update RCC_PLLCFGR using clrsetbits_le32() to set only necessary bits fields. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | mmc: arm_pl180_mmci: add .getcd callbackPatrice Chotard2017-11-172-2/+26
| | | | | | | | | | | | Add .getcd callback to check is MMC card is present Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | mmc: arm_pl180_mmci: add clock supportPatrice Chotard2017-11-171-2/+14
| | | | | | | | | | | | Allow to get and enable MMC related clock Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | mmc: arm_pl180_mmci: add bus_width DT property supportPatrice Chotard2017-11-171-0/+16
| | | | | | | | | | | | Allow to get "bus-width" property from device tree Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | mmc: arm_pl180_mmci: adapt driver to DM usagePatrice Chotard2017-11-173-12/+129
| | | | | | | | | | | | | | | | | | | | | | Convert this driver to driver model. This driver is also used by VEXPRESS platforms which doesn't use driver model. Tested on STM32F746 and STM32F769 platforms. Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | mmc: arm_pl180_mmci: update arm_pl180_mmci_init() prototypePatrice Chotard2017-11-172-6/+6
| | | | | | | | | | | | | | | | | | Update arm_pl180_mmci_init() prototype by adding struct mmc** param. This is needed before converting this driver to driver model in order to use arm_pl180_mmci_init() in driver model and in none driver model implementation Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | omap2: nand: Make NAND_OMAP_GPMC_PREFETCH defaultTom Rini2017-11-171-0/+1
| | | | | | | | | | | | | | | | This option provides better performance and should really always be enabled. Make this be default y. Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Jeroen Hofstee <jeroen@myspectrum.nl>
* | net: phy: Add Amlogic Meson GXL Internal PHY supportNeil Armstrong2017-11-174-0/+64
| | | | | | | | | | | | | | | | | | The Amlogic Meson GXL/GXM families embeds an internal RMII Ethernet PHY. The PHY acts as a generic PHY but needs a slight configuration right before it's configuration. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* | pinctrl: meson: Add GXL SupportNeil Armstrong2017-11-173-0/+741
| | | | | | | | | | | | | | | | Add the Amlogic Meson GXL pinctrl support based on the GXBB driver and the synchronized DTS from Linux 4.13.5 Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Beniamino Galvani <b.galvani@gmail.com>
* | Merge git://www.denx.de/git/u-boot-marvellTom Rini2017-11-162-4/+5
|\ \
| * | mvebu: usb: xhci: a38x supportJon Nettleton2017-11-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the initial changes need to support the a38x series of SOCs. It adds the device-tree identifier as well as changing the board_support function to take the IO address designated by device-tree. Signed-off-by: Jon Nettleton <jon@solid-run.com> [baruch: use fdt_addr_t; update 37xx and 8K implementations] Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
| * | pci: mvebu: Increase size of PCIe default mappingVlaoMao2017-11-161-2/+2
| |/ | | | | | | | | | | | | Increase size PCI memory mapping from 32MiB to 128MiB. Signed-off-by: VlaoMao <vlaomao@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
* | driver: net: fsl-mc: Use base 16 in simple_strtoulPrabhakar Kushwaha2017-11-151-1/+1
| | | | | | | | | | | | | | | | Value provided in MC_MEM_SIZE_ENV_VAR is in hex. Use 16 as base in simple_strtoul. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
* | mtd: nand: fsl-ifc: fix support of multiple NAND devicesKurt Kanzenbach2017-11-141-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the chipselect used to identify the corresponding NAND chip is stored at the controller and only set during fsl_ifc_chip_init(). This way, only the last NAND chip is working, as the previous value of cs_nand gets overwritten. In order to solve this issue the chipselect is computed on demand by evaluating the bank variable. Thus, the correct chipselect for each NAND chip operation is used. Tested on hardware with two NAND chips connected to the IFC controller. Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> Acked-by: Scott Wood <oss@buserror.net> [YS: reformatted commit message] Reviewed-by: York Sun <york.sun@nxp.com>
* | drivers: net: ldpaa_eth: Correct error handler for qbman_swp_acquire()Ashish Kumar2017-11-141-1/+1
|/ | | | | | | | | | The zero value returned from qbman_swp_acquire() is an error condition meaning no free buffer for allocation. Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Signed-off-by: Kushwaha Prabhakar <prabhakar@freescale.com> [YS: revised commit message] Reviewed-by: York Sun <york.sun@nxp.com>
* net: sun8i_emac: Fix build for non-H3/H5 SoCsChen-Yu Tsai2017-11-101-0/+3
| | | | | | | | | | | | | Only the H3/H5 SoCs have an internal PHY and its related clock and reset controls. Use an #ifdef to guard the internal PHY control code block so it can be built for other SoCs, such as the A83T or A64. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
* Merge branch 'master' of git://git.denx.de/u-boot-sunxiTom Rini2017-11-093-6/+13
|\
| * sunxi: restore PHYLIB for CONFIG_SUN4I_EMAC usersArtturi Alm2017-11-091-0/+1
| | | | | | | | | | | | | | | | | | due misnaming of CONFIG_SUN4I_EMAC in include/configs/sunxi-common.h, likely missed in: commit 3146f0c017df ("Move PHYLIB to Kconfig") Signed-off-by: Artturi Alm <artturi.alm@gmail.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
| * sunxi: fix CONFIG_SUNXI_EMAC referencesArtturi Alm2017-11-091-1/+1
| | | | | | | | | | | | | | | | | | fixes CONFIG_SUNXI_EMAC references from drivers/net/Makefile and include/configs/sunxi-common.h likely forgotten in: commit abc3e4df59f5 ("sunxi: Convert SUNXI_EMAC to Kconfig") Signed-off-by: Artturi Alm <artturi.alm@gmail.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
| * video: sunxi: de2: fix SimpleFB node creation when HDMI not initializedIcenowy Zheng2017-11-061-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | When HDMI is not initialized (e.g. no monitor is plugged), the current SimpleFB code will still create a broken SimpleFB node. Detect whether HDMI is initialized when creating SimpleFB node. Fixes: be5b96f0e411 ("sunxi: setup simplefb for Allwinner DE2") Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Reviewed-by: Jagan Teki <jagan@openedev.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* | mmc: fsl_esdhc: Fix PIO timeoutBenoît Thébaudeau2017-11-071-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following error has been observed on i.MX25 with a high-speed SDSC card: Data Write Failed in PIO Mode. It was caused by the timeout set on PRSSTAT.BWEN, which was triggered because this bit takes 15 ms to be set after writing the first block to DATPORT with this card. Without this timeout, all the blocks are properly written. This timeout was implemented by decrementing a variable, so it was depending on the CPU frequency. Fix this issue by setting this timeout to a long enough absolute duration (500 ms). Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
* | tpm: st33zp24: fix STMicroelectronics copyrightPatrice Chotard2017-11-062-2/+4
| | | | | | | | | | | | Uniformize STMicroelectronics copyrights header Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | stm32: fix STMicroelectronics copyrightPatrice Chotard2017-11-069-18/+19
| | | | | | | | | | | | | | Uniformize STMicroelectronics copyrights headers for STM32 related code. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | sti: fix STMicroelectronics copyrightPatrice Chotard2017-11-068-17/+19
|/ | | | | | | Uniformize all STMicroelectronics copyrights headers for STi related code. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* scsi: ceva: Start port in probeMichal Simek2017-11-031-1/+6
| | | | | | | | | | | | The patch: "dm: ahci: Unwind the confusing init code" (sha1: 7cf1afce7fa3fe64189020fe14b93f7326dd0758) introduce bug for ceva sata because port didn't start. On the other hand the dwc_ahci.c was fixed correctly. Do the same change for ceva too. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Tested-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
* rockchip: rk3399: init CPU clock when rkclk_init()Kever Yang2017-11-011-78/+79
| | | | | | | | | | | Init the CPU and its buses to speed up the boot time. Move rkclk_init() to a place after rk3399_configure_cpu has defined at the same time, or else there will be a warning. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* net: fec_mxc: Change "error frame" message to debug levelFabio Estevam2017-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported by Jonathan Gray: "After the recent changes to add SimpleNetworkProtocol to efi_loader when booting off mmc via an efi payload that doesn't use SimpleNetworkProtocol U-Boot's fec_mxc driver will now display various "error frame" messages. .... MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Scanning disks on sata... Found 6 disks reading efi/boot/bootarm.efi 67372 bytes read in 32 ms (2 MiB/s) ## Starting EFI application at 12000000 ... >> OpenBSD/armv7 BOOTARM 1.0 error frame: 0x8f57ec40 0x00003d74 error frame: 0x8f57ec40 0x00007079 error frame: 0x8f57ec40 0x00006964 error frame: 0x8f57ec40 0x00006f6f error frame: 0x8f57ec40 0x0000726f error frame: 0x8f57ec40 0x00002074 error frame: 0x8f57ec40 0x00006f6f" Heinrich Schuchardt explains: "A receive FIFO overrun can be expected if network packages are not processed. With the network patches we check if a package is available quite often." Move the "error frame" messages to debug level so that a clean output log can be seen. Reported-by: Jonathan Gray <jsg@jsg.id.au> Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* Merge git://git.denx.de/u-boot-videoTom Rini2017-10-2916-187/+983
|\
| * exynos: video: fix typo in DisplayPort driverDongjin Kim2017-10-291-1/+1
| | | | | | | | | | | | Signed-off-by: Dongjin Kim <tobetter@gmail.com> CC: Simon Glass <sjg@chromium.org> CC: Minkyu Kang <mk7.kang@samsung.com>
| * video/da8xx-fb: Cache-align memory allocationsNiko Mauno2017-10-291-4/+4
| | | | | | | | | | | | | | Resort to malloc_cache_aligned() rather than malloc() which also removes 'CACHE: Misaligned operation at range' warnings. Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
| * sunxi: video: add LCD support to DE2 driverVasily Khoruzhick2017-10-273-1/+170
| | | | | | | | | | | | | | | | | | Extend DE2 driver with LCD support. Tested on Pinebook which is based on A64 and has ANX6345 eDP bridge with eDP panel connected to it. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> [agust: rebased v5 on u-boot-video/master] Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * sunxi: video: split out PLL configuration codeVasily Khoruzhick2017-10-272-116/+129
| | | | | | | | | | | | It will be reused in new DM LCD driver. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
| * video: add anx6345 DM driverVasily Khoruzhick2017-10-263-0/+435
| | | | | | | | | | | | | | | | | | This is a eDP bridge similar to ANX9804, it allows to connect eDP panels to the chips that can output only parallel signal Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> [agust: fixed most checkpatch errors/warnings] Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * video: anx9804: split out registers definitions into a separate headerVasily Khoruzhick2017-10-262-53/+99
| | | | | | | | | | | | | | | | This header will be used in anx6345 driver Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> [agust: moved header to drivers/video] Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * dm: video: bridge: add operation to read EDIDVasily Khoruzhick2017-10-261-0/+10
| | | | | | | | | | | | | | Add an operation to read EDID, since bridge may have ability to read EDID from the panel that is connected to it, for example LCD<->eDP bridge. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
| * sunxi: setup simplefb for Allwinner DE2Icenowy Zheng2017-10-262-1/+73
| | | | | | | | | | | | | | | | | | | | As the support of EFI boot on Allwinner H3 is broken, we still need to use simplefb to pass the framebuffer to Linux. Add code to setup simplefb for Allwinner DE2 driver. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
| * video: add an option for video simplefb via DTIcenowy Zheng2017-10-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Add an option to indicate that the video driver should setup a SimpleFB node that passes the video framebuffer initialized by U-Boot to the operating system kernel. Currently only the Allwinner DE driver uses this option, and the definition of this option in the sunxi-common.h config header is converted to an imply of this option from CONFIG_VIDEO_SUNXI. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
| * video: sunxi: extract simplefb match code to a new fileIcenowy Zheng2017-10-264-12/+55
| | | | | | | | | | | | | | | | | | As the DE2 simplefb setup code can also benefit from the simplefb match code, extract it to a new source file. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* | Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini2017-10-273-20/+29
|\ \
| * | usb: host: Move CONFIG_XHCI_FSL to KconfigRan Wang2017-10-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | use Kconfig to select xhci accordingly. Signed-off-by: Ran Wang <ran.wang_1@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: York Sun <york.sun@nxp.com>