05 Mar, 2018

1 commit

  • Thomas reported U-Boot failed to build host tools if libfdt-devel
    package is installed because tools include libfdt headers from
    /usr/include/ instead of using internal ones.

    This commit moves the header code:
    include/libfdt.h -> include/linux/libfdt.h
    include/libfdt_env.h -> include/linux/libfdt_env.h

    and replaces include directives:
    #include -> #include
    #include -> #include

    Reported-by: Thomas Petazzoni
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

22 Jan, 2018

2 commits


16 Jan, 2018

1 commit

  • Similar to CONFIG_OF_BOARD, but in this case the fdt is still built by
    u-boot build. This allows the board to patch the fdt, etc.

    In the specific case of dragonboard 410c, we pass the u-boot generated
    fdt to the previous stage of bootloader (by embedding it in the
    u-boot.img that is loaded by lk/aboot), which patches the fdt and passes
    it back to u-boot.

    Signed-off-by: Rob Clark
    [trini: Update board_fdt_blob_setup #if check]
    Signed-off-by: Tom Rini

    Rob Clark
     

30 Nov, 2017

3 commits

  • Tom Rini
     
  • Building spl with CONFIG_OF_EMBED enabled results in an error message
    on my board: "SPL image too big". This is because the fdtgrep build
    step is only executed for CONFIG_OF_SEPARATE.

    Fix this by moving the fdtgrep build step ('cmd_fdtgreo') from
    scripts/Makefile.spl to dts/Makefile so that the reduced dtb is
    available for all kinds of spl builds.

    The resulting variable name for the embedded device tree blob changes,
    too, which is why common.h and fdtdec.c have tiny changes.

    Signed-off-by: Simon Goldschmidt
    Reviewed-by: Simon Glass

    Goldschmidt Simon
     
  • It is legal to have multiple /memory nodes in a device tree . Currently,
    fdtdec_setup_memory_size() only supports parsing the first node . This
    patch extends the function such that if a particular /memory node does
    no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still
    allows for more DRAM banks, the code moves on to the next memory node
    and checks it's "reg"s. This makes it possible to handle both systems
    with single memory node with multiple entries and systems with multiple
    memory nodes with single entry.

    Signed-off-by: Marek Vasut
    Cc: Tom Rini
    Cc: Simon Glass

    Marek Vasut
     

26 Nov, 2017

1 commit


06 Oct, 2017

3 commits


16 Aug, 2017

1 commit


29 Jul, 2017

1 commit


11 Jul, 2017

1 commit


03 Jun, 2017

1 commit


01 Jun, 2017

2 commits


10 May, 2017

1 commit

  • In some boards like the Raspberry Pi the initial bootloader will pass
    a DT to the kernel. When using U-Boot as such kernel, the board code in
    U-Boot should be able to provide U-Boot with this, already assembled
    device tree blob.

    This patch introduces a new config option CONFIG_OF_BOARD to use instead
    of CONFIG_OF_EMBED or CONFIG_OF_SEPARATE which will initialize the DT
    from a board-specific funtion instead of bundling one with U-Boot or as
    a separated file. This allows boards like the Raspberry Pi to reuse the
    device tree passed from the bootcode.bin and start.elf firmware
    files, including the run-time selected device tree overlays.

    Signed-off-by: Alex Deymo
    Reviewed-by: Simon Glass

    Alex Deymo
     

14 Apr, 2017

1 commit


27 Mar, 2017

1 commit


20 Dec, 2016

1 commit

  • Add two functions for use by board implementations to decode the memory
    banks of the /memory node so as to populate the global data with
    ram_size and board info for memory banks.

    The fdtdec_setup_memory_size() function decodes the first memory bank
    and sets up the gd->ram_size with the size of the memory bank. This
    function should be called from the boards dram_init().

    The fdtdec_setup_memory_banksize() function decode the memory banks
    (up to the CONFIG_NR_DRAM_BANKS) and populates the base address and size
    into the gd->bd->bi_dram array of banks. This function should be called
    from the boards dram_init_banksize().

    Signed-off-by: Nathan Rossi
    Cc: Simon Glass
    Cc: Michal Simek
    Reviewed-by: Simon Glass
    Signed-off-by: Michal Simek

    Nathan Rossi
     

14 Oct, 2016

2 commits

  • The signature for this macro has changed. Bring in the upstream version and
    adjust U-Boot's usages to suit.

    Signed-off-by: Simon Glass
    Update to drivers/power/pmic/palmas.c:
    Signed-off-by: Keerthy

    Change-Id: I6cc9021339bfe686f9df21d61a1095ca2b3776e8

    Simon Glass
     
  • These have now landed upstream. The naming is different and in one case the
    function signature has changed. Update the code to match.

    This applies the following upstream commits by
    Thierry Reding :

    604e61e fdt: Add functions to retrieve strings
    8702bd1 fdt: Add a function to get the index of a string
    2218387 fdt: Add a function to count strings

    Signed-off-by: Simon Glass

    Simon Glass
     

14 Sep, 2016

1 commit

  • This driver has not been converted to Driver Model, and it is an
    obstacle to migrate other block device drivers. Remove it for now.

    The UniPhier SoCs already use a DM-based EHCI driver, so now
    ARCH_UNIPHIER can select DM_USB.

    These two changes must be done atomically because removing the
    legacy driver causes a build error.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Marek Vasut

    Masahiro Yamada
     

12 Aug, 2016

1 commit

  • Some code may want to read reg values from DT, but from nodes that aren't
    associated with DM devices, so using dev_get_addr_index() isn't
    appropriate. In this case, fdtdec_get_addr_size_*() are the functions to
    use. However, "translation" (via the chain of ranges properties in parent
    nodes) may still be desirable. Add a function parameter to request that,
    and implement it. Update all call sites to default to the original
    behaviour.

    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass
    Squashed in build fix from Stephen:
    Signed-off-by: Simon Glass

    Stephen Warren
     

25 Jul, 2016

1 commit


12 Jul, 2016

5 commits


06 Jul, 2016

1 commit


13 Jun, 2016

1 commit


01 Jun, 2016

1 commit

  • Tegra186's MMC controller needs to be explicitly identified. Add another
    compatible value for it.

    Tegra186 will use an entirely different clock/reset control mechanism to
    existing chips, and will use standard clock/reset APIs rather than the
    existing Tegra-specific custom APIs. The driver support for that isn't
    ready yet, so simply disable all clock/reset usage if compiling for
    Tegra186. This must happen at compile time rather than run-time since the
    custom APIs won't even be compiled in on Tegra186. In the long term, the
    plan would be to convert the existing custom APIs to standard APIs and get
    rid of the ifdefs completely.

    The system's main eMMC will work without any clock/reset support, since
    the firmware will have already initialized the controller in order to
    load U-Boot. Hence the driver is useful even in this apparently crippled
    state.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     

17 Mar, 2016

2 commits


15 Mar, 2016

1 commit


17 Feb, 2016

1 commit

  • Adjust the driver to use driver model. The SOR becomes a bridge device. We
    use the normal simple_panel driver to handle the display itself. We also
    need to enable some options such as regulators, PWMs and DM_VIDEO itself.

    Signed-off-by: Simon Glass
    Acked-by: Anatolij Gustschin
    Signed-off-by: Tom Warren

    Simon Glass
     

06 Feb, 2016

1 commit


24 Jan, 2016

1 commit