Skip to content
Snippets Groups Projects
  1. Jan 12, 2021
  2. Jan 11, 2021
  3. Jan 08, 2021
    • Lukasz Majewski's avatar
      xea: config: Disable CONFIG_SPL_OF_PLATDATA_PARENT on XEA (imx28) · c8f2a060
      Lukasz Majewski authored and Tom Rini's avatar Tom Rini committed
      
      On the XEA board (imx28) one needs in the SPL support for GPIO, MMC and
      SPI. Two last ones are necessary for booting the device. The GPIO support
      allows deciding which medium will be used. For example the GPIO DTS node
      (gpio@0 at imx28.dtsi) has pinctrl parent (pinctrl@80018000) for which we
      don't need driver asigned for correct operation.
      In the spl/dts/dt-platdata.c the gpio@0 has index 4 and its parent -
      pinctrl@80018000 has index 5.
      
      In the bind_drivers_pass() function (at drivers/core/lists.c) call to
      device_bind_by_name() for `fsl_imx23_pinctrl` returns -2, which is
      expected.
      
      With current setup - when the SPL_OF_PLATDATA_PARENT=y
      The gpio@0 node with index 4 is skipped as its parent with 5 is not yet
      bound. It cannot be as we don't need and provide the driver for it.
      As a result the gpio@0 is never bound and we end up with bricked board in
      the SPL stage.
      
      When CONFIG_SPL_OF_PLATDATA_PARENT is NOT set, all entries from
      spl/dts/dt-platdata.c are scanned in ascending index order, so gpio@0 is
      properly initialized. For `fsl_imx_pinctrl` we simply check 10 times if
      the driver for is available (which is not) and exit.
      
      As a result the GPIOs are initialized and can be used in early SPL stage.
      This commit fixes XEA regression introduced with e41651ff.
      
      Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      c8f2a060
    • Lukasz Majewski's avatar
      xea: config: Use CONFIG_PREBOOT from Kconfig · ee66df14
      Lukasz Majewski authored and Tom Rini's avatar Tom Rini committed
      
      The usage of the preboot feature is now controlled via a separate Kconfig
      option - namely CONFIG_USE_PREBOOT.
      It must be enabled for preboot code executing commands now defined in
      CONFIG_PREBOOT (also moved to the Kconfig).
      
      After defining both CONFIG_USE_PREBOOT and CONFIG_PREBOOT in
      imx28_xea_defconfig the define of CONFIG_PREBOOT shall be removed from
      xea.h as it is redundant.
      
      Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
      ee66df14
    • Lukasz Majewski's avatar
      xea: spl: Disable pull UP for GPIO0_2{35} · a062d8e6
      Lukasz Majewski authored and Tom Rini's avatar Tom Rini committed
      
      On the imx287 pin GPMI_WRN (GPIO0_25) no PullUP is available that can be
      enabled.
      
      To get the same behavior for both boot select pins (i.e. GPIO0_2{35})
      disable pull UPs on both.
      
      Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
      a062d8e6
    • Hugh Cole-Baker's avatar
      rockchip: pinebook-pro: default to SPI bus 1 for SPI-flash · 92cb207a
      Hugh Cole-Baker authored and Tom Rini's avatar Tom Rini committed
      
      SPI flash on this machine is located on bus 1, default to using bus 1
      for SPI flash and stop aliasing it to bus 0.
      
      Signed-off-by: default avatarHugh Cole-Baker <sigmaris@gmail.com>
      Suggested-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Fixes: c4cea2bb ("rockchip: Enable building a SPI ROM image on bob")
      92cb207a
  4. Jan 06, 2021
  5. Jan 05, 2021
    • Tom Rini's avatar
      Merge tag 'v2021.01-rc5' into next · 720620e6
      Tom Rini authored
      
      Prepare v2021.01-rc5
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      720620e6
    • Tom Rini's avatar
      Merge tag 'ti-v2021.01-rc5' of https://gitlab.denx.de/u-boot/custodians/u-boot-ti · c2d80bbd
      Tom Rini authored
      - Fix I2C speed for Nokia RX51
      c2d80bbd
    • Simon Glass's avatar
      dtoc: Tidy up src_scan tests · 970349a9
      Simon Glass authored
      
      Some of these tests don't actually check anything. Add a few more checks
      to complete the tests.
      
      Also add a simple scan test that does the basics.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      970349a9
    • Simon Glass's avatar
      dtoc: Move src_scan tests to a separate file · 10ea9c0b
      Simon Glass authored
      
      Move the tests related to scanning into their own class, updating them
      to avoid using dtb_platdata as a pass-through.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      10ea9c0b
    • Simon Glass's avatar
      dtoc: Split source-code scanning to a separate file · a542a70c
      Simon Glass authored
      
      Before expanding the scanning features any more, move this into a separate
      file. This will make it easier to maintain in the future. In particular,
      it reduces the size of dtb_platdata.py and allows us to add tests
      specifically for scanning, without going through that file.
      
      The pieces moved are the Driver class, the scanning code and the various
      naming functions, since they mostly depend on the scanning results.
      
      So far there is are no separate tests for src_scan. These will be added
      as new functionality appears.
      
      This introduces no functional change.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      a542a70c
    • Simon Glass's avatar
      dtoc: Drop dm_populate_phandle_data() · d960f0db
      Simon Glass authored
      
      This has not been needed since parent information was added and we started
      using indicies for references to other drivers instead of pointers. It was
      kept around in the expectation that it might be needed later.
      
      However with the latest updates, it doesn't seem likely that we'll need
      this in the foreseeable future.
      
      Drop dm_populate_phandle_data() from dtoc and driver model.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d960f0db
    • Simon Glass's avatar
      dtoc: Output nodes in order · 9eca08dc
      Simon Glass authored
      
      Previously we had to worry about nodes being output before those that they
      depended on, thus causing build errors.  So the current algorithm is
      careful to output nodes in the right order.
      
      We now use a different method for outputting phandles that does not
      involve pointers. Also we plan to add a 'declarations' header file to
      declare all drivers as 'extern'.
      
      Update the code to drop the dependency checking and output in a simple
      loop. This makes the output easier to follow since drivers are in order of
      thier indices (0, 1, ...), which is also the order it appears in in the
      linker list.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      9eca08dc
    • Simon Glass's avatar
      dtoc: Allow specifying the base directory for tests · 1e0f3f46
      Simon Glass authored
      
      The base directory of U-Boot, where the source is, it currently calculated
      from the directory of the dtb_platdata.py script. If this is installed
      elsewhere that will not work. Also it is inconvenient for tests.
      
      Add a parameter to allow specifying this base directory.
      
      To test this, pass a temporary directory with some files in it and check
      that they are passed to scan_driver().
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      1e0f3f46
Loading