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
     

01 Jan, 2019

1 commit

  • Two variants of controllers are supported:
    V1 (bitwise only) found in
    i.MX21, i.MX27, i.MX31, i.MX51
    V2 (byte operations) found in
    i.MX25, i.MX35, i.MX50, i.MX53

    Only tested on i.MX53 hardware but in both modes
    (by modifying the device tree).

    Signed-off-by: Martin Fuzzey

    Martin Fuzzey
     

07 Dec, 2018

1 commit

  • Sometimes enumeration fails (about 1 in 50 times on my custom board).

    The underlying reason is probably electrical but Linux does not have
    the problem.

    Comparing the Linux / u-boot implementations shows that Linux
    retries the error case whereas u-boot aborts early.

    Removing the early abort in u-boot fixes the problem.

    Signed-off-by: Martin Fuzzey

    Martin Fuzzey
     

01 Nov, 2018

1 commit

  • When the "w1 bus" command is used with no bus master present
    a data abort may occur.

    This is because uclass_first_device() returns zero, but sets the output
    struct udevice pointer to NULL in the no device found case.

    Fix w1_get_bus() to account for this and return an error code
    as is expected by the callers.

    Signed-off-by: Martin Fuzzey
    Reviewed-by: Eugen Hristev

    Martin Fuzzey
     

29 Sep, 2018

3 commits