- Mar 10, 2020
-
- Mar 09, 2020
-
-
Clemens Gruber authored
The PHY models of the Marvell 88E151x series are not reliably distinguishable by their uid / PHY identifiers. The 88E1510, 88E1512, 88E1514 and 88E1518 all have the same OUI and model number and bits 3:0 in the PHY Identifier 2 (Page 0, Reg 3) are described as HW revision number, but both 88E1510 and 88E1518 PHYs were observed with the same HW rev number (1). Before commit 83cfbeb0 ("net: phy: Fix mask so that we can identify Marvell 88E1518"), the 88E151x were detected because the HW revision bits were masked from the uid. After that change, 88E1510/12/18 were all detected as 88E1518 and the 88E1510 specific code was no longer run. I modified the mask to again ignore all four HW revision bits, removed the 88E1510 specific code (board-specific LED/INTn setup), which was not called since late 2016 anyway and renamed the config function and phy_driver struct to the better fitting 88e151x. The uid and mask bits 3:0 are now again the same as in the Linux kernel. Signed-off-by:
Clemens Gruber <clemens.gruber@pqgruber.com>
-
Heinrich Schuchardt authored
When printing unsigned numbers use %u. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Michal Simek authored
This patch adds ability to switch beetween two PHY SGMII modes. Some hardware, for example, FPGA IP designs may use 6-wire mode which enables differential SGMII clock to MAC. Patch description, dt flags have been done in mainline Linux by commit a2111c460c0c ("net: phy: dp83867: Add documentation for SGMII mode type") and by commit 507ddd5c0d47 ("net: phy: dp83867: Add SGMII mode type switching") Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Michal Simek authored
U-Boot is having DT which doesn't cover all options currently supported by driver. DT binding is aligned with Linux kernel version available here. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/ti,dp83867.txt Based on my talk with Grygorii Strashko better will be to remove it. Also Linux kernel bindings are being converted to yaml that's another reason to do it only at one place. Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Grygorii Strashko <grygorii.strashko@ti.com>
-
Alex Marginean authored
The helper is used to reset PHYs on connect and it determines the clause to use (C22/C45) based on interface type. This fixes 'PHY reset timed out' warnings in console for USXGMII/XFI PHYs. Signed-off-by:
Alex Marginean <alexandru.marginean@nxp.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Andre Przywara authored
Commit 27c3f70f ("net: phy: Increase link up delay in genphy_update_link()") increased the per-iteration waiting time from 1ms to 50ms, without adjusting the timeout counter. This lead to the timeout increasing from the typical 4 seconds to over three minutes. Adjust the timeout counter evaluation by that factor of 50 to bring the timeout back to the intended value. Signed-off-by:
Andre Przywara <andre.przywara@arm.com> Fixes: net: phy: Increase link up delay in genphy_update_link() ("27c3f70f") Reviewed-by:
Stefan Roese <sr@denx.de> Tested-by:
Matthias Brugger <mbrugger@suse.com> Tested-by:
Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Andre Przywara authored
doc/README.drivers.eth seems like a good source for understanding U-Boot's network subsystem, but is only talking about legacy network drivers. This is particularly sad as proper documentation would help in porting drivers over to the driver model. Rewrite the document to describe network drivers in the new driver model world. Most driver callbacks/methods are almost identical in their semantic, but recv() differs in some important details. Also keep some parts of the original text at the end, to help understanding old drivers. Add some hints on how to port drivers over. This also uses the opportunity to reformat the document in reST, on the way moving it into doc/driver-model and adding it into the structure there. Signed-off-by:
Andre Przywara <andre.przywara@arm.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Alex Marginean authored
The driver now unconditionally prints some information that's not universally useful. Replace printf with debug. Signed-off-by:
Alex Marginean <alexandru.marginean@nxp.com> Reviewed-by:
Priyanka Jain <priyanka.jain@nxp.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Alex Marginean authored
Use either USXGMII or XFI in aquantia_set_proto and drop XGMII as a valid protocol configuration. The PHY doesn't support it, it's just used as an alias for one of the other two protocols. Signed-off-by:
Florin Chiculita <florinlaurentiu.chiculita@nxp.com> Signed-off-by:
Alex Marginean <alexandru.marginean@nxp.com> Reviewed-by:
Priyanka Jain <priyanka.jain@nxp.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Pankit Garg authored
Make sure the gd struct is up-to-date. Signed-off-by:
Pankit Garg <pankit.garg@nxp.com> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Samuel Mendoza-Jonas authored
Add NC-SI to the usual phy handling. This makes two notable changes: - Somewhat similar to a fixed phy, phy_connect() will create an NC-SI phy if CONFIG_PHY_NCSI is defined. - An early return is added to phy_read() and phy_write() to handle a case like the NC-SI phy which does not define a bus. Signed-off-by:
Samuel Mendoza-Jonas <sam@mendozajonas.com> Reviewed-by:
Joel Stanley <joel@jms.id.au> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Samuel Mendoza-Jonas authored
This introduces support for the NC-SI protocol, modelled as a phy driver for other ethernet drivers to consume. NC-SI (Network Controller Sideband Interface) is a protocol to manage a sideband connection to a proper network interface, for example a BMC (Baseboard Management Controller) sharing the NIC of the host system. Probing and configuration occurs by communicating with the "remote" NIC via NC-SI control frames (Ethernet header 0x88f8). This implementation is roughly based on the upstream Linux implementation[0], with a reduced feature set and an emphasis on getting a link up as fast as possible rather than probing the full possible topology of the bus. The current phy model relies on the network being "up", sending NC-SI command frames via net_send_packet() and receiving them from the net_loop() loop (added in a following patch). The ncsi-pkt.h header[1] is copied from the Linux kernel for consistent field definitions. [0]: https://github.com/torvalds/linux/tree/master/net/ncsi [1]: https://github.com/torvalds/linux/blob/master/net/ncsi/ncsi-pkt.h Signed-off-by:
Samuel Mendoza-Jonas <sam@mendozajonas.com> Reviewed-by:
Joel Stanley <joel@jms.id.au> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Tom Rini authored
We keep both of these jobs in sync as much as possible even when the primary motivation is to keep Travis from exceeding the build time limit there. With that in mind: - Use "rk" not "rockchip" to get all Rockchip SoC platforms in one job, rather than just all Rockchip vendor platforms. - The NXP LX216* SoCs have their own job, exclude them from the AArch64 generic job. - SoCFPGA SoCs have their own job, exclude them from the AArch64 generic job. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Mar 06, 2020
-
-
Samuel Mescoff authored
Allow the default environment file to contain long lines split into multiples lines. Leading white spaces can be added for readability as well. Signed-off-by:
Samuel Mescoff <samuel@mescoff.fr> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- Mar 05, 2020
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-x86Tom Rini authored
- Revert "x86: use invd instead of wbinvd in real mode start code" - Convert toradex boards README to reST - serial: ns16550: Move PCI access from ofdata_to_platdata() to probe() - x86: apl: Use cpu_x86_get_count() for cpu_ops.get_count
-
Wolfgang Wallner authored
Use cpu_x86_get_count() to read the number of cores. cpu_x86_get_count() reads the number of CPUs from the device tree. Using this function we can support multiple Apollo Lake variants, e.g.: E3940 (4 cores) and E3930 (2 cores). This was tested on the E3940 and E3930 Apollo Lake variants. Signed-off-by:
Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Wolfgang Wallner authored
The function cpu_x86_get_count() is also useful for other modules. Make it non-static and add a prototype + description. Signed-off-by:
Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Wolfgang Wallner authored
The value for "Top of CAR region" should be fefc0000, not fefc000. This matches the Kconfig default values, as SYS_CAR_ADDR and SYS_CAR_SIZE are 0xfef00000 and 0xc0000 respectively. Signed-off-by:
Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Wolfgang Wallner authored
Drop the Apollo Lake prefix 'apl' from the functions, types and variables in the P2SB driver. The P2SB is not Apollo Lake specific, and as such it was moved in commit 2999846c ("x86: Move P2SB from Apollo Lake to a more generic location") from the Apollo Lake folder to the intel_common folder. Signed-off-by:
Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Wolfgang Wallner authored
Currently the ofdata_to_platdata() method calls dev_read_addr_pci(), which potentially accesses the parent PCI bus. If this happens before the parent PCI bus is probed the resulting address will be wrong. This behavior was triggered by commit 82de42fa ("dm: core: Allocate parent data separate from probing parent"). According to a comment in drivers/pci/pci-uclass.c [1] accessing the PCI parent bus in ofdata_to_platdata() is not allowed, and the access should be moved to the probe() function. Move the call to dev_read_addr_pci() and the related handling of the 'addr' value from the ofdata_to_platdata() to its own function, which is then called from the probe() method. While moving the code, the comment /* try Processor Local Bus device first */ was dropped. It was initially added with commit 3db886a5 ("serial: ns16550: Support ns16550 compatible pci uart devices") and later made obsolete with commit 33c215af ("dm: pci: Add a function to read a PCI BAR"). [1] Comment in drivers/pci/pci-uclass.c: "A common cause of this problem is that this function is called in the ofdata_to_platdata() method of @dev. Accessing the PCI bus in that method is not allowed, since it has not yet been probed. To fix this, move that access to the probe() method of @dev instead." Fixes: 82de42fa ("dm: core: Allocate parent data separate from probing parent") Signed-off-by:
Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> # Tested on Intel Galileo
-
Andy Shevchenko authored
This reverts commit 0d67fac2. As real hardware testing (*) shows the above mentioned commit breaks U-Boot on it. Revert for the upcoming release. We may get more information in the future and optimize the code accordingly. (*) on Intel Edison board. Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by:
Bin Meng <bmeng.cn@gmail.com> [bmeng: fix a typo in the commit message] Signed-off-by:
Bin Meng <bmeng.cn@gmail.com>
-
Heinrich Schuchardt authored
If all branches of a switch statement have a return instruction, all subsequent lines are unreachable. Identified with cppcheck. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Lukasz Majewski <lukma@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Igor Opaniuk authored
Add entries for the newly created documentation files in reST format. Signed-off-by:
Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Igor Opaniuk authored
Convert README to reStructuredText format. Signed-off-by:
Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by:
Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com>
-
Igor Opaniuk authored
Convert README to reStructuredText format. Signed-off-by:
Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by:
Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com>
-
Igor Opaniuk authored
Convert README to reStructuredText format. Signed-off-by:
Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by:
Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> [bmeng: spell out U-Boot correctly] Signed-off-by:
Bin Meng <bmeng.cn@gmail.com>
-
Igor Opaniuk authored
- add initial index for toradex boards reST documentation - add initial colibri_imx7.rst doc file which provides all needed information for obtaining a workable image ready for flashing for both eMMC/NAND versions of Colibri iMX7. Signed-off-by:
Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com> Reviewed-by:
Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Tested-by:
Bin Meng <bmeng.cn@gmail.com> [bmeng: make title underline the same length as the title itself] Signed-off-by:
Bin Meng <bmeng.cn@gmail.com>
-
Simon Glass authored
This function doesn't use uclass_find_first_device() correctly. Add a check that the device is found so we don't try to read properties from a NULL device. The fixes booting on minnoxmax. Fixes: 87f1084a ("x86: Adjust mrccache_get_region() to use livetree") Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
-
- Mar 04, 2020
-
-
- Mar 03, 2020
-
-
Holger Brunck authored
Add initial support for the ABB SECU board, which is an ArriaV-based SoCFPGA system with ethernet and booting from Denali NAND. Signed-off-by:
Holger Brunck <holger.brunck@ch.abb.com> Cc: Ley Foon Tan <ley.foon.tan@intel.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
-
Anatolij Gustschin authored
Add driver flag to skip power domain disabling on device removal. Fixes: 52edfed6 ("dm: core: device: switch off power domain after device removal") Signed-off-by:
Anatolij Gustschin <agust@denx.de> Acked-by:
Neil Armstrong <narmstrong@baylibre.com> Tested-by:
Guillaume La Roque <glaroque@baylibre.com>
-
Anatolij Gustschin authored
In various cases a power domain must stay enabled after device removal when booting OS (i.e. serial debug console or display). Add a flag to selectively skip switching off a power domain. Fixes: 52edfed6 ("dm: core: device: switch off power domain after device removal") Signed-off-by:
Anatolij Gustschin <agust@denx.de> Acked-by:
Neil Armstrong <narmstrong@baylibre.com> Tested-by:
Guillaume La Roque <glaroque@baylibre.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Mar 02, 2020
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-stmTom Rini authored
- convert stm32mp1 board documentation to rst format
-
https://gitlab.denx.de/u-boot/custodians/u-boot-microblazeTom Rini authored
Xilinx fixes for v2020.04-rc4 - Fix link good bit handling in dp83867 - Rename generic Zynq defconfig - Fix zybo z7 low leve setup - Fix error path in zynq_gem driver and fix 64bit usage - Fix invalid clock name quieries for Versal - Fix zynq/zynqmp SPL low level configuration via DT selection
-
Patrick Delaunay authored
Change plain test README to rst format and move this file in documentation directory. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Tested-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Patrice Chotard <patrice.chotard@st.com>
-
Heinrich Schuchardt authored
We should not assign a value that is overwritten before use. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by:
Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by:
Patrick Delaunay <patrick.delaunay@st.com>
-