09 Mar, 2020

1 commit


06 Feb, 2020

2 commits

  • 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
     
  • At present devres.h is included in all files that include dm.h but few
    make use of it. Also this pulls in linux/compat which adds several more
    headers. Drop the automatic inclusion and require files to include devres
    themselves. This provides a good indication of which files use devres.

    Signed-off-by: Simon Glass
    Reviewed-by: Anatolij Gustschin

    Simon Glass
     

08 Oct, 2019

1 commit


09 Aug, 2019

1 commit

  • Since commit 3d296365e4e8 ("mmc: sdhci: Add support for
    sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc
    field. Move the mmc field initialization before sdhci_setup_cfg()
    call to avoid crash on mmc pointer dereference.

    [this patch is based on commit 41a9fab8dac8 ("mmc: mv_sdhci: fix
    uninitialized pointer deref on probe") by Baruch Siach]

    Fixes: 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask")
    Cc: Faiz Abbas
    Cc: Baruch Siach
    Signed-off-by: Matwey V. Kornilov
    Reviewed-by: Peng Fan
    Tested-by: Michal Simek (on zcu102/zc706)

    Matwey V. Kornilov
     

17 Jul, 2019

1 commit


24 Jan, 2019

1 commit


15 Jun, 2018

1 commit


31 May, 2018

2 commits


11 May, 2018

1 commit


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
     

02 May, 2018

1 commit


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
     

01 Mar, 2018

1 commit


01 Jun, 2017

2 commits

  • 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
     
  • 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
     

17 Feb, 2017

2 commits

  • The maximum supported peripheral clock frequency of the zynq depends on
    the IO routing. The MIO and EMIO support a maximum frequency of 50 MHz
    respectively 25 MHz. Use the max-frequency value of the device tree to
    determine the maximal supported peripheral clock frequency.

    Signed-off-by: Stefan Herbrechtsmeier
    Acked-by: Michal Simek
    Reviewed-by: Jaehoon Chung
    Signed-off-by: Michal Simek

    Stefan Herbrechtsmeier
     
  • The zynq_sdhci controller driver use CONFIG_ZYNQ_SDHCI_MAX_FREQ as base
    clock frequency but this clock is not fixed and depends on the hardware
    configuration. Additionally the value of CONFIG_ZYNQ_SDHCI_MAX_FREQ
    doesn't match the real base clock frequency of SDIO_FREQ. Use the clock
    framework to determine the frequency at run time.

    Signed-off-by: Stefan Herbrechtsmeier
    Reviewed-by: Jaehoon Chung
    Signed-off-by: Michal Simek

    Stefan Herbrechtsmeier
     

23 Jan, 2017

1 commit


10 Oct, 2016

1 commit


24 Sep, 2016

1 commit

  • These functions can be much simpler by squashing lines for immediate
    return.

    For *_bind() callbacks, they will be a simple wrapper function of an
    upper-level bind API.

    For mmc_set_{boot_bus_width,part_conf}, they will be a wrapper of
    mmc_switch().

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Jaehoon Chung

    Masahiro Yamada
     

06 Aug, 2016

1 commit


05 Aug, 2016

2 commits


28 Jul, 2016

1 commit


17 May, 2016

1 commit


26 Apr, 2016

1 commit


27 Jan, 2016

2 commits


07 Dec, 2015

3 commits


19 Nov, 2015

1 commit


19 Aug, 2015

1 commit

  • We have flipped CONFIG_SPL_DISABLE_OF_CONTROL. We have cleansing
    devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear
    away the ugly logic in include/fdtdec.h:

    #ifdef CONFIG_OF_CONTROL
    # if defined(CONFIG_SPL_BUILD) && !defined(SPL_OF_CONTROL)
    # define OF_CONTROL 0
    # else
    # define OF_CONTROL 1
    # endif
    #else
    # define OF_CONTROL 0
    #endif

    Now CONFIG_IS_ENABLED(OF_CONTROL) is the substitute. It refers to
    CONFIG_OF_CONTROL for U-boot proper and CONFIG_SPL_OF_CONTROL for
    SPL.

    Also, we no longer have to cancel CONFIG_OF_CONTROL in
    include/config_uncmd_spl.h and scripts/Makefile.spl.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Tom Rini
    Reviewed-by: Simon Glass
    Acked-by: Linus Walleij

    Masahiro Yamada
     

05 May, 2015

1 commit

  • High capacity support is not a host capability, but a device capability
    that is queried via the OCR. The flag in the operating conditions
    request argument can just be set unconditionally. This matches the Linux
    implementation.

    [panto] Hand merged and renumbering MMC_MODE_DDR_52MHz.

    Signed-off-by: Rob Herring
    Signed-off-by: Pantelis Antoniou
    Cc: Pantelis Antoniou

    Rob Herring
     

29 Apr, 2015

1 commit


21 Jan, 2015

1 commit


04 Mar, 2014

1 commit


07 Feb, 2014

1 commit

  • As per the below commit
    "mmc: sdhci: add the quirk for broken r1b response"
    (sha1: 3a6383207be3f71b39004e64464a6e99290b16fa)
    need to add quirk SDHCI_QUIRK_BROKEN_R1B, when the
    response type is R1b.

    Signed-off-by: Siva Durga Prasad Paladugu
    Signed-off-by: Michal Simek
    Acked-by: Jagannadha Sutradharudu Teki
    Signed-off-by: Pantelis Antoniou

    Siva Durga Prasad Paladugu