04 Apr, 2020

3 commits


05 Mar, 2020

5 commits

  • Use cpu_x86_get_count() to read the number of cores.

    cpu_x86_get_count() reads the number of CPUs from the device tree.
    Using this function we can support multiple Apollo Lake
    variants, e.g.: E3940 (4 cores) and E3930 (2 cores).

    This was tested on the E3940 and E3930 Apollo Lake variants.

    Signed-off-by: Wolfgang Wallner
    Reviewed-by: Bin Meng

    Wolfgang Wallner
     
  • The function cpu_x86_get_count() is also useful for other modules.
    Make it non-static and add a prototype + description.

    Signed-off-by: Wolfgang Wallner
    Reviewed-by: Bin Meng

    Wolfgang Wallner
     
  • Drop the Apollo Lake prefix 'apl' from the functions, types and
    variables in the P2SB driver.

    The P2SB is not Apollo Lake specific, and as such it was moved in
    commit 2999846c1127 ("x86: Move P2SB from Apollo Lake to a more generic
    location") from the Apollo Lake folder to the intel_common folder.

    Signed-off-by: Wolfgang Wallner
    Reviewed-by: Simon Glass
    Reviewed-by: Bin Meng

    Wolfgang Wallner
     
  • This reverts commit 0d67fac29f3187e67f4fd3ef15f73e91be2fad12.

    As real hardware testing (*) shows the above mentioned commit
    breaks U-Boot on it. Revert for the upcoming release. We may get
    more information in the future and optimize the code accordingly.

    (*) on Intel Edison board.

    Signed-off-by: Andy Shevchenko
    Acked-by: Bin Meng
    [bmeng: fix a typo in the commit message]
    Signed-off-by: Bin Meng

    Andy Shevchenko
     
  • This function doesn't use uclass_find_first_device() correctly. Add a
    check that the device is found so we don't try to read properties from a
    NULL device.

    The fixes booting on minnoxmax.

    Fixes: 87f1084a630 ("x86: Adjust mrccache_get_region() to use livetree")

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     

19 Feb, 2020

3 commits


11 Feb, 2020

1 commit


07 Feb, 2020

7 commits


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
     

04 Feb, 2020

10 commits


26 Jan, 2020

1 commit

  • Subsystems such as USB expect dma_map_single() and dma_unmap_single() to
    do dcache flush/invalidate operations as required. For example, see
    see drivers/usb/gadget/udc/udc-core.c::usb_gadget_map_request().
    Currently drivers do this locally, (see drivers/usb/dwc3/ep0.c,
    drivers/mtd/nand/raw/denali.c etc..)
    Update arch specific dma_map_single() and dma_unmap_single() APIs to do
    cache flush/invalidate operations, so that drivers need not implement
    them locally.

    Signed-off-by: Vignesh Raghavendra
    Reviewed-by: Masahiro Yamada
    Reviewed-by: Rick Chen

    Vignesh Raghavendra
     

18 Jan, 2020

3 commits


08 Jan, 2020

1 commit


15 Dec, 2019

5 commits