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
     

23 Jan, 2020

1 commit


24 Apr, 2019

1 commit


23 Apr, 2019

1 commit


10 Aug, 2018

2 commits

  • This patch save common LED property "default-state" value
    in post bind of LED uclass.
    The configuration for this default state is only performed when
    led_default_state() is called;
    It can be called in your board_init()
    or it could added in init_sequence_r[] in future.

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     
  • This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7.
    because this patch adds the probe of LED driver during the
    binding phasis. It is not allowed in driver model because
    the drivers (clock, pincontrol) needed by the LED driver can
    be also probed before the binding of all the device and
    it is a source of problems.

    Signed-off-by: Patrick Delaunay

    Patrick Delaunay
     

11 Jul, 2018

1 commit

  • In the device tree, the address for the led is located
    in the parent node (for exemple leds), not in the led node
    (for exemple led@0).

    The commit "led: bcm6328: convert to use live dt"
    (sha1: 899455176058d673887a762aa38853188a030af4)
    change this behaviour and read the address in the led node.

    We fix this by reading the base address for led
    in the parent node.

    Signed-off-by: Philippe Reynes

    Philippe Reynes
     

01 Jun, 2018

2 commits


08 May, 2018

2 commits


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

28 Apr, 2018

1 commit


01 Jun, 2017

2 commits

  • Adjust this function to us an ofnode instead of an offset, so it can be
    used with livetree. This involves updating all callers.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These support the flat device tree. We want to use the dev_read_..()
    prefix for functions that support both flat tree and live tree. So rename
    the existing functions to avoid confusion.

    In the end we will have:

    1. dev_read_addr...() - works on devices, supports flat/live tree
    2. devfdt_get_addr...() - current functions, flat tree only
    3. of_get_address() etc. - new functions, live tree only

    All drivers will be written to use 1. That function will in turn call
    either 2 or 3 depending on whether the flat or live tree is in use.

    Note this involves changing some dead code - the imx_lpi2c.c file.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 May, 2017

2 commits


15 Apr, 2017

6 commits


08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

22 Jan, 2017

1 commit


03 Sep, 2015

1 commit


19 Aug, 2015

1 commit


13 Aug, 2015

1 commit

  • The menuconfig for drivers are getting more and more cluttered
    and unreadable because too many entries are displayed in a single
    flat menu. Use hierarchic menu for each category.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass
    [trini: Update to apply again in a few places, drop USB hunk]
    Signed-off-by: Tom Rini

    Masahiro Yamada
     

22 Jul, 2015

4 commits