Skip to content
Snippets Groups Projects
  1. Dec 15, 2019
    • Simon Glass's avatar
      dm: gpio: Allow control of GPIO uclass in SPL · bcee8d67
      Simon Glass authored
      
      At present if CONFIG_SPL_GPIO_SUPPORT is enabled then the GPIO uclass
      is included in SPL/TPL without any control for boards. Some boards may
      want to disable this to reduce code size where GPIOs are not needed in
      SPL or TPL.
      
      Add a new Kconfig option to permit this. Default it to 'y' so that
      existing boards work correctly.
      
      Change existing uses of CONFIG_DM_GPIO to CONFIG_IS_ENABLED(DM_GPIO) to
      preserve the current behaviour. Also update the 74x164 GPIO driver since
      it cannot build with SPL.
      
      This allows us to remove the hacks in config_uncmd_spl.h and
      Makefile.uncmd_spl (eventually those files should be removed).
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      bcee8d67
  2. Dec 11, 2019
    • Matthias Brugger's avatar
      rpi: Enable DRAM bank initialization on arm64 · a63f81c2
      Matthias Brugger authored
      
      Up to now we only update the DRAM banks when we are define
      CONFIG_BCM2711. But our one binary approach uses a config that supports
      BCM2837 and BCM2711. As a result we only see one gibibyte of RAM on
      Raspberry Pi 4, even if it has more RAM.
      Fix this by calling dram_init_banksize.
      
      Fixes: 56940906 ("ARM: defconfig: add unified config for RPi3 and RPi4")
      
      Signed-off-by: default avatarMatthias Brugger <mbrugger@suse.com>
      a63f81c2
    • Matthias Brugger's avatar
      rpi: fix dram bank initialization · e19cfcc0
      Matthias Brugger authored
      
      To update the dram bank information from device-tree we use
      fdtdec_decode_ram_size() which expectes the the size-cells and
      address-cells to be defined in the memory node. For normal system RAM
      these values are defined in the root node. When the values differ from
      the default values defined in the spec, we can end up with wrong RAM
      bank information.
      
      Switch to the "standard" way to update the RAM bank information to
      avoid this.
      
      Fixes: 9de5b89e ("rpi4: enable dram bank initialization")
      
      Signed-off-by: default avatarMatthias Brugger <mbrugger@suse.com>
      e19cfcc0
  3. Dec 10, 2019
    • Rick Chen's avatar
      riscv: ax25-ae350: Use generic memory size setup · 7e24518c
      Rick Chen authored
      
      To get memory size from device tree instead of
      get_ram_size(). This can avoid memory access fault
      in U-Boot proper after PMP configurations in OpenSBI.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Cc: KC Lin <kclin@andestech.com>
      Cc: Alan Kao <alankao@andestech.com>
      7e24518c
    • Rick Chen's avatar
      riscv: ax25-ae350: add SPL configuration · cd61e86e
      Rick Chen authored
      
      This patch provides four configurations which can support U-Boot SPL
      to boot from RAM or FLASH and then boot FIT image including OpenSBI
      FW_DYNAMIC firmware and U-Boot proper images from RAM or MMC boot devices.
      
      With ae350_rv[32|64]_spl_defconfigs:
      
      U-Boot SPL will be loaded by gdb or FSBL and runs in RAM in machine mode
      and then load FIT image from RAM device on AE350.
      
      With ae350_rv[32|64]_spl_xip_defconfigs:
      
      U-Boot SPL can be burned into SPI flash and run in flash in machine mode
      and then load FIT image from SPI flash or MMC device on AE350.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Cc: KC Lin <kclin@andestech.com>
      Cc: Alan Kao <alankao@andestech.com>
      cd61e86e
  4. Dec 09, 2019
  5. Dec 06, 2019
  6. Dec 05, 2019
  7. Dec 04, 2019
  8. Dec 03, 2019
  9. Dec 02, 2019
  10. Nov 29, 2019
Loading