summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* arm: zynq: Add support for zc770-xm011-x16 configurationMichal Simek2018-01-303-0/+827
| | | | | | | | zc770-xm011 is x8 width configuration. This FMC card has also x16 variant which requires different ps7_init configuration. This patch adds it. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Add zc770-xm013 spl configurationMichal Simek2018-01-301-0/+767
| | | | | | Simplify ps7_init* initialization. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Add zc770-xm012 spl configurationMichal Simek2018-01-301-0/+818
| | | | | | Simplify ps7_init* initialization. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Add zc770-xm011 spl configurationMichal Simek2018-01-301-0/+776
| | | | | | Simplify ps7_init* initialization. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Add zc770-xm010 spl configurationMichal Simek2018-01-301-0/+800
| | | | | | Simplify ps7_init* initialization. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* doc: zynq: Describe status of zc770-xm011Michal Simek2018-01-301-2/+1
| | | | | | zc770-xm011 is also added and supported. Reflect this in README. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* doc: Update the zynq u-boot statusEzequiel Garcia2018-01-241-4/+3
| | | | | | | | | NAND and QSPI devices are now supported, so mark them as such. Cc: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* arm: zynq: Enable SPL_CLK only if SPL is enabledEzequiel Garcia2018-01-241-1/+1
| | | | | | | | | Setup proper dependency in Kconfig for SPL_CLK. If SPL is not enabled, SPL_CLK shouldn't be selected. Cc: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* tools: Update python "help" tests to cope with "more" odditiesTom Rini2018-01-162-2/+8
| | | | | | | | | | | | | | | | In some cases when "more" is told to page a given file it will prepend the output with: :::::::::::::: /PATH/TO/THE/FILE :::::::::::::: And when this happens the output will not match the expected length. Further, if we use a different pager we will instead fail the coverage tests as we will not have 100% coverage. Update the help test to remove the string in question. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge git://git.denx.de/u-boot-i2cTom Rini2018-01-163-11/+11
|\
| * i2c: mxc_i2c: Use or operationPeng Fan2018-01-161-3/+3
| | | | | | | | | | | | | | | | The operation should be OR, not BIT OR. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Heiko Schocher <hs@denx.de> Cc: Stefano Babic <sbabic@denx.de>
| * imx: mx7ulp: modify lpi2c seq numberPeng Fan2018-01-161-4/+4
| | | | | | | | | | | | | | Modify the lpi2c alias seq number to align with device. Then no need to add 4 to get the device index. Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * i2c: lpi2c: do not add 4 for bus seqPeng Fan2018-01-161-4/+4
| | | | | | | | | | | | | | | | | | The number 4 is dedicated on i.MX7ULP, but lpi2c will be reused on i.MX8, 4 is not valid. The seq number could be configured by alias node. The following patch will use i2c4 as the begin for i.MX7ULP. Signed-off-by: Peng Fan <peng.fan@nxp.com>
* | Merge git://git.denx.de/u-boot-dmTom Rini2018-01-1632-404/+439
|\ \ | |/ |/|
| * test: Set the DTC environment variableSimon Glass2018-01-151-3/+5
| | | | | | | | | | | | | | Set this to our own device-tree compiler since we know it is new enough to run the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
| * dtoc: Allow DTC environment variable to provide path to dtcSimon Glass2018-01-152-1/+6
| | | | | | | | | | | | | | | | | | The system device-tree compiler may not be new enough to run the tests we use in U-Boot (e.g. with binman). Allow use of a DTC environment variable to point to the correct dtc. If not defined, the dtc on the default PATH is used. Signed-off-by: Simon Glass <sjg@chromium.org>
| * armv8: secure firmware: fix incorrect unit address in node nameAndre Przywara2018-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Remove the unit address from the config node name when U-Boot deals with secure firmware FIT images. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * tools: fix incorrect usage of DT node unit addressAndre Przywara2018-01-151-12/+12
| | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Correct the generated unit names when U-Boot's mkimage creates a FIT image. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * sunxi: arm64: correct usage of DT node address in FIT generationAndre Przywara2018-01-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Adjust the FIT build script for 64-bit Allwinner boards to remove the bogus addresses from the node names and avoid the warnings. This avoids a warning with recent versions of the dtc tool. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * fix incorrect usage of DT node unit address in commentsAndre Przywara2018-01-154-27/+27
| | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Fix all occurences in the tree where node names were mentioned in comments, to not give bad examples to the reader. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * doc: fix incorrect usage of DT node unit addressAndre Przywara2018-01-154-42/+42
| | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Fix all occurences in various documentation files where this was not observed, to not give bad examples to the reader. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * doc: FIT image: fix incorrect examples of DT node unit addressAndre Przywara2018-01-1510-117/+117
| | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address of a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Fix all occurences in the FIT image example files where this was not observed, to not give bad examples to the reader. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * doc: FIT image: fix incorrect description of DT node unit addressAndre Przywara2018-01-157-196/+196
| | | | | | | | | | | | | | | | | | | | The DT spec demands a unit-address in a node name to match the "reg" property in that node. Newer dtc versions will throw warnings if this is not the case. Fix all occurences in the FIT image documentation files where this was not observed, to not give bad examples to the reader. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
| * binman: Run code coverage testsSimon Glass2018-01-151-0/+7
| | | | | | | | | | | | | | | | | | | | | | Binman has 100% test coverage for the code as it is at present. To encourage it to stay that way, run the code-coverage test as part of the normal U-Boot tests. This is RFC because it requires the Python code coverage tools to be available. Signed-off-by: Simon Glass <sjg@chromium.org>
| * travis.yml: Run tests for toolsSimon Glass2018-01-151-0/+15
| | | | | | | | | | | | Run tests for the Python tools used by U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>
| * test: Run dtoc testsSimon Glass2018-01-151-0/+1
| | | | | | | | | | | | Update the test script to run the dtoc tests also. Signed-off-by: Simon Glass <sjg@chromium.org>
| * test: Run buildman testsSimon Glass2018-01-151-0/+1
| | | | | | | | | | | | Update the test script to run the buildman tests also. Signed-off-by: Simon Glass <sjg@chromium.org>
| * test: Run patman testsSimon Glass2018-01-151-0/+1
| | | | | | | | | | | | Update the test script to run the patman tests also. Signed-off-by: Simon Glass <sjg@chromium.org>
| * test: Run binman testsSimon Glass2018-01-151-0/+3
| | | | | | | | | | | | Update the test script to run the binman tests also. Signed-off-by: Simon Glass <sjg@chromium.org>
* | Merge git://git.denx.de/u-boot-netTom Rini2018-01-1553-185/+1131
|\ \ | |/ |/|
| * phy: atheros: set auto-negotiation for AR8021Zhao Qiang2018-01-151-0/+1
| | | | | | | | | | Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: Add to Kconfig and convertNobuhiro Iwamatsu2018-01-1534-33/+38
| | | | | | | | | | | | | | This adds SH_ETHER to drivers/net/Kconfig and convert to Kconfig. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: Fix misaligned cache operation warningNobuhiro Iwamatsu2018-01-151-2/+3
| | | | | | | | | | | | | | | | | | When we using network on board using sh-eth, it prints a lot of "CACHE: Misaligned operation at range" messages. This commit fixes this problem. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: Change read/write() param to struct sh_eth_infoNobuhiro Iwamatsu2018-01-152-57/+75
| | | | | | | | | | | | | | | | | | This changes Change structure used in sh_eth_read and sh_eth_write function from struct sh_eth_dev to struct sh_eth_info. This is necessary to convert to Driver Model. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: Remove bd_t from sh_eth_config()Nobuhiro Iwamatsu2018-01-151-2/+2
| | | | | | | | | | | | | | bd_t is not used in sh_eth_config(). This deletes bd_t from sh_eth_config() Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: Fix coding style checked by checkpatch.plNobuhiro Iwamatsu2018-01-151-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the chord style checked by checkpatch.pl. Details of change details are as follows: - Fix typo Change from alligned to aligned. - Remove whitespace before ',' - Add spaces preferred around that '|' - Fix missing a blank line after declarations - Remove space after a cast declaration - Fix format of block comments - Add a blank line after function/struct/union/enum declarations Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: dhcp: Allow "MAY_FAIL" to still try each adapterJoe Hershberger2018-01-151-5/+12
| | | | | | | | | | | | | | | | | | | | | | This change allows the "MAY_FAIL" DHCP option to still attempt to contact a DHCP server on each adapter and only give up once each adapter has failed once. To get the existing behavior, set the already-existing ethrotate=no variable. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Cc: Keng Soon Cheah <keng.soon.cheah@ni.com> Cc: Chen Yee Chew <chen.yee.chew@ni.com>
| * configs: Update Lamobo_R1 with B53 switch optionsFlorian Fainelli2018-01-151-0/+3
| | | | | | | | | | | | | | | | | | Enable CONFIG_B53_SWITCH, define the CPU/management port number (8) and enable all 5 ports of the switch to be usable. Reviewed-by: Stefan Roese <sr@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
| * net: phy: b53: Add b53_reg read/write commandsFlorian Fainelli2018-01-151-0/+139
| | | | | | | | | | | | | | | | | | | | | | Add a b53_reg read/write command which allows inspecting the switch registers. Because the Broadcom BCM53xx registers have different sizes, we need to split the accesses in 8, 16, 32, 48 or 64 bits to obtain expected results. Reviewed-by: Stefan Roese <sr@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
| * net: designware: Pad small packetsFlorian Fainelli2018-01-151-0/+5
| | | | | | | | | | | | | | | | Make sure that we pad small packets to a minimum length of 60 bytes (without FCS). This is necessary to interface with Ethernet switches that will reject RUNT frames unless padded correctly. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
| * net: phy: Add Broadcom BCM53xx switch driverFlorian Fainelli2018-01-155-0/+651
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a minimalistic Broadcom BCM53xx (roboswitch) switch driver similar to the Marvell MV88E617x. This takes care of configuring the minimum amount out of the switch hardware such that each user visible port (configurable) and the CPU port can forward packets between each other while preserving isolation with other ports. This is useful for e.g: the Lamobo R1 board featuring a Broadcom BCM53125 switch. Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
| * net: designware: add clock supportPatrice Chotard2018-01-152-0/+47
| | | | | | | | | | | | | | | | | | | | This implementation manages several clocks, disable and free all of them in case of error during probe and in remove callback. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * dm: core: add missing dev_count_phandle_with_args()Patrice Chotard2018-01-151-0/+7
| | | | | | | | | | | | | | | | Add missing dev_count_phandle_with_args() to avoid compilation issue. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: mvneta - Fixed recv() when multiple packets have arrived.Jason Brown2018-01-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a problem in the mvneta driver where if more than one packet arrives between calls to mvneta_recv(), the additional descriptors will be marked as free even though only one descriptor has been read and processed from the receive queue. This causes the additional packet(s) to be delayed until the next packet arrives. >From this point on all packets will be delayed because the receive queue will contain unprocessed packets but the hardware shows no busy descriptors. Signed-off-by: Jason Brown <jason.brown@apcon.com> Reviewed-by: Stefan Roese <sr@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: miiphybb: fix casting errorChris Brandt2018-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | Since the return value is a signed int, if the leading MSB of rdreg is a 1, it will get signed extended and will return a negative value which is an error even though we read the correct value. Fixes: dfcc496ed7e2 ("net: mii: Changes not made by spatch") Signed-off-by: Chris Brandt <chris.brandt@renesas.com> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: remove sh_eth_offset_rz tableChris Brandt2018-01-151-58/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | First, this table could never be included in the build anyway because SH_ETH_TYPE_RZ is not defined until later in the file. Second, the register PIR was missing, so PHY MDIO never worked. Third, after adding the PIR register, the table is EXACTLY the same as sh_eth_offset_gigabit, so there is no value to it. Therefore, just delete it use the gigabit one. Signed-off-by: Chris Brandt <chris.brandt@renesas.com> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: sh-eth: fix inl and outl definitionsChris Brandt2018-01-151-1/+3
| | | | | | | | | | | | | | | | | | | | The macros inl and outl maybe already be defined from file arch/arm/include/asm/io.h so there may be no reason to define them. And if you do try defined them here, you get a redefined complier warning. Signed-off-by: Chris Brandt <chris.brandt@renesas.com> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: phy: marvell: Add functions to read PHY's extended registersLukasz Majewski2018-01-151-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit allows extended Marvell registers to be read with: foo > mdio rx FEC 3.10 Reading from bus FEC PHY at address 0: 3.16 - 0x1063 foo > mdio wx FEC 3.10 0x1011 The above code changes the way ETH connector LEDs blink. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: York Sun <york.sun@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: Remove nfs.h include from bootp.cJoe Hershberger2018-01-151-1/+0
| | | | | | | | | | | | Nothing from this header is used there, so remove it. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: Fix buffer overrun error in netconsoleJoe Hershberger2018-01-151-2/+5
| | | | | | | | | | | | | | Need to not access the byte after the input_buffer. Reported-by: Coverity (CID: 144423) Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>