24 Feb, 2018

1 commit

  • Several inline functions in this file reference undefined functions in
    U-Boot. For example:

    atomic-long.h:73:9: warning: implicit declaration of function
    'atomic64_sub_and_test'
    atomic-long.h:80:9: warning: implicit declaration of function
    'atomic64_dec_and_test'
    atomic-long.h:87:9: warning: implicit declaration of function
    'atomic64_inc_and_test'

    Handle this the same as the 32 bit build by wrapping these functions in
    a __UBOOT__ check.

    Signed-off-by: Bradley Bolen
    (cherry picked from commit 9c3264ce40130966897fb9c1b91c120f588531d0)

    Bradley Bolen
     

15 Nov, 2016

1 commit


24 Oct, 2016

1 commit


11 Oct, 2016

1 commit


24 Sep, 2016

1 commit


07 Sep, 2016

1 commit


16 Jul, 2016

1 commit


06 Jun, 2016

2 commits


04 Jun, 2016

1 commit

  • Certain GPIO devices have the capability to switch their GPIOs into
    open-drain mode, that is, instead of actively driving the output
    (Push-pull output), the pin is connected to the collector (for a NPN
    transistor) or the drain (for a MOSFET) of a transistor, respectively.
    The pin then either forms an open circuit or a connection to ground,
    depending on the state of the transistor.

    This patch adds functions to the GPIO uclass to switch GPIOs to
    open-drain mode on devices that support it.

    Signed-off-by: Mario Six
    Reviewed-by: Simon Glass
    Reviewed-by: York Sun

    mario.six@gdsys.cc
     

17 May, 2016

1 commit

  • Many drivers use a common form of offset + flags for device
    tree nodes. e.g.:

    This patch adds a common implementation of this type of parsing
    and calls it when a gpio driver doesn't supply its' own xlate
    routine.

    This will allow removal of the driver-specific versions in a
    handful of drivers and simplify the addition of new drivers.

    Signed-off-by: Eric Nelson
    Reviewed-by: Stephen Warren
    Acked-by: Simon Glass

    Eric Nelson
     

17 Mar, 2016

2 commits


08 Feb, 2016

1 commit


06 Feb, 2016

1 commit

  • Correct spelling of "U-Boot" shall be used in all written text
    (documentation, comments in source files etc.).

    Signed-off-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Reviewed-by: Simon Glass
    Reviewed-by: Minkyu Kang

    Bin Meng
     

21 Jan, 2016

1 commit

  • Before relocation we need to reserve memory for the video driver frame
    buffers so that they can use this memory when they start up (after
    relocation). Add a call to the uclass to permit this.

    The current top and bottom of the region is stored in global_data so that
    it can be checked post-relocation to ensure enough memory is available. No
    video device should be probed before relocation.

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

    Simon Glass
     

15 Dec, 2015

1 commit

  • Secure memory is at the end of memory, separated and reserved
    from OS, tracked by gd->secure_ram. Secure memory can host
    MMU tables, security monitor, etc. This is different from PRAM
    used to reserve private memory. PRAM offers memory at the top
    of u-boot memory, not necessarily the real end of memory for
    systems with very large DDR. Using the end of memory simplifies
    MMU setup and avoid memory fragmentation.

    "bdinfo" command shows gd->secure_ram value if this memory is
    marked as secured.

    Signed-off-by: York Sun

    York Sun
     

20 Nov, 2015

1 commit

  • It is useful to be able to record console output and provide console input
    via a buffer. This provides sandbox with the ability to run a command and
    check its output. If the console is set to silent then no visible output
    is generated.

    This also provides a means to fix the problem where tests produce unwanted
    output, such as errors or warnings. This can be confusing. We can instead
    set the console to silent and record this output. It can be checked later
    in the test if required.

    It is possible that this may prove useful for non-test situations. For
    example the console output may be suppressed for normal operations, but
    recorded and stored for access by the OS. That feature is not implemented
    at present.

    Signed-off-by: Simon Glass

    Simon Glass
     

05 Nov, 2015

1 commit


04 Nov, 2015

1 commit

  • At present in SPL we place the device tree immediately after BSS. This
    avoids needing to copy it out of the way before BSS can be used. However on
    some boards BSS is not placed with the image - e.g. it can be in RAM if
    available.

    Add an option to tell U-Boot that the device tree should be placed at the
    end of the image binary (_image_binary_end) instead of at the end of BSS.

    Note: A common reason to place BSS in RAM is to support the FAT filesystem.
    We should update the code so that it does not use so much BSS.

    Signed-off-by: Simon Glass
    Signed-off-by: Michal Simek

    Simon Glass
     

23 Oct, 2015

1 commit


21 Oct, 2015

1 commit

  • GENMASK is used to create a contiguous bitmask([hi:lo]).

    This patch is a copy from Linux, with below commit details
    "bitops: Fix shift overflow in GENMASK macros"
    (sha1: 00b4d9a14125f1e51874def2b9de6092e007412d)

    Cc: Tom Rini
    Cc: Masahiro Yamada
    Signed-off-by: Jagan Teki

    Jagan Teki
     

18 Aug, 2015

1 commit

  • This causes widespread breakage due to the operation of the low-level code
    in crt0.S and cro0_64.S for ARM at least.

    The fix is not complicated but it seems safer to revert this for now.

    This reverts commit 2afddae07523f23f77acd066ad1719f53d289f98.
    Signed-off-by: Simon Glass

    Simon Glass
     

14 Aug, 2015

2 commits


05 Aug, 2015

2 commits


22 Jul, 2015

3 commits


15 Jul, 2015

1 commit


04 Jun, 2015

1 commit


15 May, 2015

1 commit


14 May, 2015

1 commit


06 Mar, 2015

2 commits


18 Feb, 2015

1 commit


05 Feb, 2015

1 commit


30 Jan, 2015

2 commits

  • this is an atempt to make the export of functions typesafe.
    I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.
    The EXPORT_FUNC macro now has 3 fixed parameters and one
    variadic parameter
    The first is the name of the exported function,
    the rest of the parameters are used to format a functionpointer
    in the jumptable,

    the EXPORT_FUNC macros are expanded three times,
    1. to declare the members of the struct
    2. to initialize the structmember pointers
    3. to call the functions in stubs.c

    Signed-off-by: Martin Dorwig
    Acked-by: Simon Glass

    Signed-off-by: Simon Glass
    (resending to the list since my tweaks are not quite trivial)

    Martin Dorwig
     
  • Add a deprecation notice to each function so that it is more obvious that we
    are moving GPIOs to driver model.

    Signed-off-by: Simon Glass

    Simon Glass