06 Feb, 2020

1 commit

  • At present dm/device.h includes the linux-compatible features. This
    requires including linux/compat.h which in turn includes a lot of headers.
    One of these is malloc.h which we thus end up including in every file in
    U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
    which needs to use the system malloc() in some files.

    Move the compatibility features into a separate header file.

    Signed-off-by: Simon Glass

    Simon Glass
     

09 Dec, 2019

2 commits


05 Sep, 2019

2 commits

  • Use the optional property device-name to name the MDIO bus. This works
    around limitations with using the DT node name on devices such as
    Armada-8040, which integrates two cp100 cores, both featuring MDIOs at the
    same relative offsets and with the same DT node names.
    The concept was originally proposed by Marvell as a custom property called
    mdio-name specific to Marvell driver. This patch uses the more generic
    property device-name and moves this into MDIO class code so other can use
    it as well.

    Signed-off-by: Alex Marginean
    Acked-by: Joe Hershberger
    Reviewed-by: Bin Meng

    Alex Marginean
     
  • Don't allow unterminated strings

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     

16 Jul, 2019

1 commit

  • Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as
    stand-alone devices. Useful in particular for systems that support
    DM_ETH and have a stand-alone MDIO hardware block shared by multiple
    Ethernet interfaces.

    Signed-off-by: Alex Marginean
    Reviewed-by: Bin Meng
    Acked-by: Joe Hershberger

    Alex Marginean