summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2016-01-27serial: zynq: Extend compatible string listMichal Simek
ZynqMP is using updated core with cdns,uart-r1p12 compatible string. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Michal Simek <[email protected]>
2016-01-27fpga: xilinx: Check for substring in device ID validationSiva Durga Prasad Paladugu
Check for substrings in deviceID validation check so that it can support xa bitstreams also. Signed-off-by: Siva Durga Prasad Paladugu <[email protected]> Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: emaclite: Move emaclite to KconfigMichal Simek
Add PHYLIB and MII dependencies and enable it by default for Microblaze. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Let core to handle received packetMichal Simek
Pass pointer to core to handle packet. Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: emaclite: Rename start and stop functionsMichal Simek
Rename start and stop functions to align with DM functions names. Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: emaclite: Move driver to DMMichal Simek
Move driver to DM. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Use indirect access in emaclite_recvMichal Simek
When IP is configured with pong buffers, IP is receiving packets to ping and then to pong buffer and than ping again. The original logic in the driver remains there that when ping buffer is free, pong buffer is checked too and return if both are free. Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: emaclite: Use indirect reg access in sendMichal Simek
The original logic in the driver was exchanging buffers which are used for sending packet and tx_ping and tx_pong buffers were exchanged all the time to ensure that IP has enough time to send the packet out. Based on this "feature" send function was using nextbuffertouse variable to save which buffer should be used. Before this algorithm was called driver checked that there is free buffer available. This checking remains in the driver but driver tries to use tx_ping first if available. If not, tx_pong buffer is used instead. To reach this code the original condition is met that at least one of the buffer should be available. Testing doesn't show any performance drop when this patch is applied. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Remove XEL_TSR_XMIT_ACTIVE_MASK flagMichal Simek
This flag is not documented anywhere in the latest documentation that's why this patch removes it. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Fix logic around available TX buffersMichal Simek
Simplify logic how to find out if there is free TX buffer. Both buffers are checked all the time that's why logic around order can be removed. Also add check when only one buffer is available. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Use indirect register access for TX resetMichal Simek
Move to use indirect register access when timeout expires for resetting TX buffers. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Use indirect register access for rx_ping/pongMichal Simek
Do initialization via indirect register access. Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: emaclite: Use indirect register access for tx_ping/pongMichal Simek
Do initialization via indirect register access. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Convert MDIO to use register offsetMichal Simek
Use u-boot coding style how to setup and access MDIO bus. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Add MDIO support to driverMichal Simek
Add MDIO support before move to DM. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: emaclite: Remove ancient OF probe functionMichal Simek
Prepare for DM move. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: Add axi emac to KconfigMichal Simek
Also add dependency on PHYLIB and MII which is required. Clean PHYLIB dependency from the driver too. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Rename start, stop, write_hwaddr functionsMichal Simek
Rename few functions to fit to the new name convention used by DM. Suggested-by: Joe Hershberger <[email protected]> Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: axi_emac: Split recv from free_pktMichal Simek
Call net_process_received_packet() by core. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Enable access to MDIO in probeMichal Simek
Detect phy when driver probes. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Move driver to DMMichal Simek
Move driver to DM. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Pass private structure where possibleMichal Simek
Use axidma_priv instead of ethdevice in preparation of the DM move. Signed-off-by: Michal Simek <[email protected]>
2016-01-27net: axi_emac: Pass private structure to phyread/phywriteMichal Simek
Prepare for move to DM. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Put iobase to private structureMichal Simek
Saving iobase directly to private structure helps with moving to DM. There is an option to load iobase from pdata but it is additional load. Pointer to private structure is available all the time. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Pass directly pointer to register spaceMichal Simek
Simplify mdio_wait function by passing regs directly. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Show phy address instead of register contentMichal Simek
Fix debug message. Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27net: axi_emac: Fix parentheses around operand !Michal Simek
Fix these compilation warning by proper grouping: In function 'axi_dma_init': drivers/net/xilinx_axi_emac.c:391:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] if (!(in_be32(&priv->dmatx->control) | ^ In function 'axiemac_send': drivers/net/xilinx_axi_emac.c:501:21: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] while (timeout && (!in_be32(&priv->dmatx->status) & Signed-off-by: Michal Simek <[email protected]> Acked-by: Joe Hershberger <[email protected]>
2016-01-27serial: uartlite: Add uartlite to KconfigMichal Simek
- Move config option out of board file. - Remove uartlite address from config file Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Thomas Chou <[email protected]>
2016-01-27serial: uartlite: Add support for debug consoleMichal Simek
Add support for debug console. Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Thomas Chou <[email protected]>
2016-01-27serial: uartlite: Move driver to DMMichal Simek
Enable SPL DM too. Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Thomas Chou <[email protected]>
2016-01-27mailaddr: Update mail addressRicardo Ribalda Delgado
The old mail address will stop working soon. Update it all the files Signed-off-by: Ricardo Ribalda Delgado <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Tom Rini <[email protected]> Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Michal Simek <[email protected]>
2016-01-27atmel_nand: use the definition: PMECC_OOB_RESERVED_BYTES instead magic numberJosh Wu
As atmel_nand_ecc.h is sync with v4.1 kernel, which adds the PMECC_OOB_RESERVED_BYTES. So use it in the driver. Signed-off-by: Josh Wu <[email protected]> Reviewed-by: Andreas Bießmann <[email protected]> Signed-off-by: Wenyou Yang <[email protected]>
2016-01-27atmel_nand: add '\n' in the end of error message for better displayJosh Wu
Also align the open parenthesis. Signed-off-by: Josh Wu <[email protected]> Signed-off-by: Wenyou Yang <[email protected]> Reviewed-by: Andreas Bießmann <[email protected]>
2016-01-27atmel_nand: use nand ecc_{strength, step}_ds instead of our own functionJosh Wu
Since ecc_{strength,step}_ds is introduced in nand_chip structure for minimum ecc requirements. So we can use them directly and remove our own get_onfi_ecc_param function. Signed-off-by: Josh Wu <[email protected]> Reviewed-by: Andreas Bießmann <[email protected]> Signed-off-by: Wenyou Yang <[email protected]>
2016-01-27net: macb: Not all the GEM are gigabit capableGregory CLEMENT
During the initialization of PHY the gigabit bit capable is set if the controller is a GEM. However, for sama5d2 and sama5d4, the GEM is configured to support only 10/100. Improperly setting the GBE capability leads to an unresponsive MAC controller. This patch fixes this behavior allowing using the gmac with these SoCs. Suggested-by: Nicolas Ferre <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Acked-by: Joe Hershberger <[email protected]> Reviewed-by: Andreas Bießmann <[email protected]> [fixed minor checkpatch warning] Signed-off-by: Andreas Bießmann <[email protected]>
2016-01-27mmc: atmel: Properly fix clock configurationGregory CLEMENT
Timing issue occurs on eMMC not only when modifying the frequency but also for all the switch command(CMD6). According to the MMC spec waiting 8 clocks after a switch command would be the thing to do. This patch allows fixing CPU hang observed when trying to changing the bus width on a eMMC on SAMA5D4. Signed-off-by: Gregory CLEMENT <[email protected]> Tested-by: Marek Vasut <[email protected]> # on DENX MA5D4EV Acked-by: Marek Vasut <[email protected]> Tested-by: Andreas Bießmann <[email protected]> # on atngw100 Acked-by: Andreas Bießmann <[email protected]> [fixed minor checkpatch warning] Signed-off-by: Andreas Bießmann <[email protected]>
2016-01-26Merge branch 'master' of http://git.denx.de/u-boot-sunxiTom Rini
2016-01-26mvtwsi: Fix breakage introduced by "Fix mvtwsi not working on sun6i and ↵Hans de Goede
newer sunxi SoCs" "Fix mvtwsi not working on sun6i and newer sunxi SoCs" includes the following: @@ -189,7 +200,8 @@ static int twsi_start(struct i2c_adapter *adap, int expected_status) /* globally set TWSIEN in case it was not */ twsi_control_flags |= MVTWSI_CONTROL_TWSIEN; /* assert START */ - writel(twsi_control_flags | MVTWSI_CONTROL_START, &twsi->control); + twsi_control_flags |= MVTWSI_CONTROL_START | MVTWSI_CONTROL_CLEAR_IFLG; + writel(twsi_control_flags, &twsi->control); /* wait for controller to process START */ return twsi_wait(adap, expected_status); } The modification of twsi_control_flags done here was introduced while merging to fix a line > 80 chars, but twsi_control_flags is a global variable and should not be modified like this here, this commit fixes this, restoring mvtwsi functionality. Signed-off-by: Hans de Goede <[email protected]>
2016-01-26sunxi: power: axp818: Enable support for ALDOsChen-Yu Tsai
Previously, AXP818 ALDO support was partially added to Kconfig, but never enabled in the board file, nor properly set or configured in Kconfig. The boards continue to work because the AXP818 is designed to pair with the A83T/H8, and the default voltages match the reference design's requirements. Signed-off-by: Chen-Yu Tsai <[email protected]> Acked-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
2016-01-26power: axp818: Add support for DLDO and ELDO regulatorsChen-Yu Tsai
AXP818 provides an array of LDOs to provide power to various peripherals. None of these regulators are critical. Signed-off-by: Chen-Yu Tsai <[email protected]> Acked-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
2016-01-26power: axp: merge separate DLDO functions into 1Chen-Yu Tsai
Instead of one function for each DLDO regulator, make 1 function that takes an extra "index". Since the control bits for the DLDO regulators are contiguous, this makes the function very simple. This removes a lot of duplicate code. Signed-off-by: Chen-Yu Tsai <[email protected]> Acked-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
2016-01-26sunxi: Implement poweroff support for axp221 pmicHans de Goede
Adds poweroff support for axp221 pmic. Signed-off-by: Hans de Goede <[email protected]> Acked-by: Ian Campbell <[email protected]>
2016-01-26sunxi: Implement poweroff support for axp209 pmicMichael van Slingerland
Adds poweroff support for axp209 pmic. Signed-off-by: Michael van Slingerland <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Acked-by: Ian Campbell <[email protected]>
2016-01-26sunxi: Implement poweroff support for axp152 pmicHans de Goede
Adds poweroff support for axp152 pmic. Signed-off-by: Hans de Goede <[email protected]> Acked-by: Ian Campbell <[email protected]>
2016-01-26Merge branch 'master' of git://git.denx.de/u-boot-videoTom Rini
2016-01-26video: add CONFIG_I2C_EDID and disable CONFIG_DISPLAY by defaultAnatolij Gustschin
Enabling CONFIG_DISPLAY breaks building for some architectures (microblaze-generic), so we disable CONFIG_DISPLAY in Kconfig by default and enable this option in defconfigs. CONFIG_DISPLAY depends on CONFIG_I2C_EDID, so add and enable it in defconfigs, too. Signed-off-by: Anatolij Gustschin <[email protected]> Reported-by: Bin Meng <[email protected]> Cc: Simon Glass <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Bin Meng <[email protected]> Signed-off-by: Anatolij Gustschin <[email protected]>
2016-01-25Merge branch 'master' of git://git.denx.de/u-boot-usbTom Rini
2016-01-25usb: add clock support for generic EHCIMasahiro Yamada
This driver is designed in a generic manner, so clocks should be handled genericly as well. Signed-off-by: Masahiro Yamada <[email protected]>
2016-01-25drivers: net: fsl_mc: Compare pointer value qbman_swp_mc_startPratiyush Mohan Srivastava
Current code compares the return pointer of function qbman_cena_write_start with NULL. Instead the value of the return pointer should be compared. Signed-off-by: Pratiyush Mohan Srivastava <[email protected]> Acked-by: Prabhakar Kushwaha <[email protected]> Reviewed-by: York Sun <[email protected]>
2016-01-25drivers/ddr/fsl: fsl_ddr_sdram_size remove unused controllersEd Swarthout
Following commit 61bd2f75, exclude unused DDR controller from calculating RAM size for SPL boot. Signed-off-by: Ed Swarthout <[email protected]> Reviewed-by: York Sun <[email protected]>