summaryrefslogtreecommitdiff
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
...
| * | net: pch_gbe: Fix rx descriptor buffer addressesPaul Burton2017-06-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The loop to set up buffer addresses in rx descriptors always operated on descriptor 0, rather than on each descriptor sequentially. Fix this in order to setup correct buffer addresses for each descriptor. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: pch_gbe: Reset during probePaul Burton2017-06-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the EG20T gigabit ethernet controller on the MIPS Boston board, we find that we have to reset the controller in order for the RGMII link to the PHY to become functional. Without doing so we constantly time out in pch_gbe_mdio_ready. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: zynq_gem: Dont flush dummy descriptorsSiva Durga Prasad Paladugu2017-06-021-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dont flush dummy descriptors as they are already allocated from a region with dcache off. Tested this on Zynq(zc702) and ZynqMP(zcu102) boards. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: zynq_gem: Use wait_for_bit with non breakableSiva Durga Prasad Paladugu2017-06-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use wait_for_bit to be non breakable as using it with breakable causes issue of un interruptible auto negotiation. This is due to the ctrlc pressed will taken for wait_for_bit() abort during phy_read() and hence not coming out of auto negotiation. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: phy: marvell 88e151x: Fix handling of RGMII interface typesPhil Edworthy2017-06-021-1/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 88E1518 code is programming the wrong registers for rgmii-id, rgmii-txid and rgmii-rxid interfaces. Since the PHY defaults to rgmii-id, it would appear that the code was previously only used with sgmii and rgmii-id interfaces. Tested on 88E1512 PHY in rgmii-id mode which is from the same family as 88E1518. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | drivers: net: cpsw: abort init() on aneg timeoutSekhar Nori2017-06-021-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Abort CPSW driver init when auto-negotiation of link times out. Currently, the code ignores return status of phy_startup(), and goes ahead with network operation (like DHCP) even though the link may be down. Instead, abort init process if link is down or if there is another error, so phy_startup() can easily be retried again. This also helps quick fallback to next network interface (like USB RNDIS) without inordinate delay. Tested on AM571x IDK and AM335x BeagleBone black. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: macb: Fix GMAC not work when enable DM_ETHWenyou Yang2017-06-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always search the PHY to determine the macb->phy_addr before using the PHY to fix "No PHY present" error. Fix the wrong test of the GMAC's phy interface mode, it should be PHY_INTERFACE_MODE_RGMII. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: mvpp2.c: Enable 10G support for port 0 (SFI)Stefan Chulski2017-06-021-15/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes some remaining issues in the mvpp2 driver for the 10GB support on port 0. These changes are: - Incorrect PCS configuration - Skip PHY configuration when no PHY is connected - Skip GMAC configurations if 10G SFI mode set Signed-off-by: Stefan Chulski <stefanc@marvell.com> Signed-off-by: Stefan Roese <sr@denx.de> Cc: Kostya Porotchkin <kostap@marvell.com> Cc: Nadav Haklai <nadavh@marvell.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | armv8/ls1046a: RGMII PHY requires internal delay on TxMadalin Bucur2017-06-021-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | armv8/ls1043a: RGMII PHY requires internal delay on TxMadalin Bucur2017-06-021-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: zynq_gem: Do not return -ENOSYS on successOlliver Schinagl2017-06-021-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The .read_rom_hwaddr net_ops hook does not check the return value, which is why it was never caught that we are currently returning 0 if the read_rom_hwaddr function return -ENOSYS and -ENOSYS otherwise. In this case we can simplify this by just returning the result of the function. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Michal Simek <michal.simek@xilinx.com>
| * | net: designware: Add phy supply supportJacob Chen2017-06-021-0/+17
| | | | | | | | | | | | | | | | | | Some board need a regulator for gmac phy, so add this code to handle it. Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | net: Kconfig:make PHY_GIGE and individual Micrel PHYs selectablePhilipp Tomsich2017-06-022-0/+42
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This change migrate the following configuration options for Kconfig: * PHY_GIGE, indicates that a controller (with an appropriate PHY) is Gigabit capable and enables extra support in the miiutil for parsing the status of Gigabit PHYs * adds configuration options for Micrel KSZ9021 and KSZ9031 GbE PHYs, which previously had to enabled through a board-specific config file Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* | Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini2017-06-032-64/+246
|\ \ | |/ |/|
| * QE: add QE support on SD bootZhao Qiang2017-06-011-1/+35
| | | | | | | | | | | | | | | | modify u_qe_init to upload QE firmware from SD card when it is SD boot Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * drivers: net: fsl-mc: Include MAC addr fixup to DPLBogdan Purcareata2017-06-011-63/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous to MC v10.x, port mac address was specified via DPL. Since newer MC versions are compatible with old style DPLs, make the u-boot env mac addresses visible there. This applies only to DPLs that have an older version. DPLs use 32 bit values for specifying MAC addresses. U-boot environment variables take precedence over the MAC addresses already visible in the DPL/DPC. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com> Signed-off-by: Heinz Wrobel <heinz.wrobel@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * drivers: net: fsl-mc: Link MC boot to PHY_RESET_RBogdan Purcareata2017-06-011-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | DPAA2 platforms boot the Management Complex based on the u-boot env variable "mcinitcmd". Instead of doing this step on each platform individually, define a single mc_env_boot function in the MC driver, since it's semantically tied to it. Call the function in a per-board reset_phy hook, as it gets called at a later moment, when all board PHY devices have been initialized. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com> Signed-off-by: Heinz Wrobel <heinz.wrobel@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
* | dm: gpio: power: Convert pm8916 drivers to livetreeSimon Glass2017-06-012-6/+4
| | | | | | | | | | | | | | This PMIC driver (power and GPIO) is used by the sandbox SPMI tests. Update the drivers to support a live device tree so that the tests pass. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sandbox: sysreset: Convert driver to livetreeSimon Glass2017-06-011-1/+1
| | | | | | | | | | | | Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sandbox: spi: Convert driver to support livetreeSimon Glass2017-06-011-4/+2
| | | | | | | | | | | | Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: spi-flash: Convert uclass to livetreeSimon Glass2017-06-011-4/+3
| | | | | | | | | | | | Update the SPI flash uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sandbox: i2c_rtc: Drop fdtdec.h headerSimon Glass2017-06-011-1/+0
| | | | | | | | | | | | This is not needed in this driver. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: sandbox: i2c: Drop fdtdec.h headerSimon Glass2017-06-011-1/+0
| | | | | | | | | | | | This is not needed in this driver. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: spi: Convert uclass to livetreeSimon Glass2017-06-011-17/+14
| | | | | | | | | | | | | | | | Update the SPI uclass to support a live device tree. Also adjust spi_slave_ofdata_to_platdata() to accept a device instead of a blob and offset. Signed-off-by: Simon Glass <sjg@chromium.org>
* | cros_ec: Update the cros_ec keyboard driver to livetreeSimon Glass2017-06-013-24/+22
| | | | | | | | | | | | Update this driver and key_matrix to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: Update the I2C eeprom driver for livetreeSimon Glass2017-06-011-5/+2
| | | | | | | | | | | | Update this driver so that it works with livetree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: pci: Update uclass to support livetreeSimon Glass2017-06-011-14/+12
| | | | | | | | | | | | | | Update the PCI uclass to support livetree. This mostly involves fixing the address decoding from the device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: reset: Update uclass to support livetreeSimon Glass2017-06-011-11/+10
| | | | | | | | | | | | | | Update the reset domain uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: power-domain: Update uclass to support livetreeSimon Glass2017-06-011-11/+8
| | | | | | | | | | | | | | Update the power domain uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass <sjg@chromium.org>
* | sandbox: phy: Update driver for livetreeSimon Glass2017-06-011-2/+1
| | | | | | | | | | | | Update the sandbox phy driver to support livetree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: phy: Update uclass to support livetreeSimon Glass2017-06-011-12/+9
| | | | | | | | | | | | | | Update the phy uclass to support livetree. Fix the xlate() method which has no callers. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: mailbox: Update uclass to support livetreeSimon Glass2017-06-012-13/+9
| | | | | | | | | | | | | | Update the mailbox uclass to support livetree. Fix the xlate() method in all callers. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: clk: fixed: Update to support livetreeSimon Glass2017-06-011-3/+2
| | | | | | | | | | | | Update the fixed-rate clock driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: clk: Update uclass to support livetreeSimon Glass2017-06-012-11/+8
| | | | | | | | | | | | Update the clk uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | clk: Modify xlate() method for livetreeSimon Glass2017-06-014-7/+7
| | | | | | | | | | | | | | Update the xlate() method to use ofnode_phandle_args instead of the fdtdec variant. This will allow drivers to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | sandbox: usb: Convert emulators to livetreeSimon Glass2017-06-012-5/+2
| | | | | | | | | | | | | | Update the sandbox flash and hub USB emulators to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: usb: Convert uclass to livetreeSimon Glass2017-06-011-5/+3
| | | | | | | | | | | | Update the usb uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: adc: Convert uclass to livetreeSimon Glass2017-06-011-8/+6
| | | | | | | | | | | | Update the adc uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: mmc: Convert uclass to livetreeSimon Glass2017-06-011-1/+2
| | | | | | | | | | | | Update the mmc uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: regulator: Update fixed regulator to support livetree.Simon Glass2017-06-011-8/+9
| | | | | | | | | | | | Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: regulator: Convert regulator uclass to support livetreeSimon Glass2017-06-011-23/+16
| | | | | | | | | | | | Update the regulator uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | sandbox: pmic: Convert pmic emulator to support livetreeSimon Glass2017-06-011-4/+2
| | | | | | | | | | | | Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: pmic: Convert uclass to livetreeSimon Glass2017-06-0110-58/+41
| | | | | | | | | | | | Update the pmic uclass and all pmics to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: i2c: Convert uclass to livetreeSimon Glass2017-06-011-15/+13
| | | | | | | | | | | | Update the i2c uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: Add more livetree helpers and definitionsSimon Glass2017-06-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | Add some definitions and helpers for livetree in the main of.h header file. These include: - reading multi-cell integers - default number of address/size cells - functions for comparing names Signed-off-by: Simon Glass <sjg@chromium.org>
* | fdt: Rename a few functions in fdt_supportSimon Glass2017-06-015-6/+6
| | | | | | | | | | | | | | | | | | | | These two functions have an of_ prefix which conflicts with naming used in of_addr. Rename them: fdt_read_number fdt_support_bus_default_count_cells Signed-off-by: Simon Glass <sjg@chromium.org>
* | cros_ec: Convert to support live treeSimon Glass2017-06-012-31/+25
| | | | | | | | | | | | | | | | | | Convert this driver to support the live device tree and remove the old fdtdec support. The keyboard is not yet converted. Signed-off-by: Simon Glass <sjg@chromium.org>
* | cros_ec: Fix debug() statement in ec_command_inptr()Simon Glass2017-06-011-2/+1
| | | | | | | | | | | | This prints out the wrong pointers. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: gpio: Add live tree supportSimon Glass2017-06-0112-53/+51
| | | | | | | | | | | | | | | | | | | | | | Add support for requesting GPIOs with a live device tree. This involves adjusting the function signature for the legacy function gpio_request_by_name_nodev(), so fix up all callers. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes to stm32f746-disco.c: Signed-off-by: Tom Rini <trini@konsulko.com>
* | dm: gpio: sandbox: Use dev_read...() functions to access DTSimon Glass2017-06-011-6/+3
| | | | | | | | | | | | | | Use the new dev_read...() functions to access the device tree, so that a live tree can be used. Signed-off-by: Simon Glass <sjg@chromium.org>