1. 07 12月, 2018 8 次提交
    • B
      dm: Add Hardware Spinlock class · 7f84fc67
      Benjamin Gaignard 提交于
      This is uclass for Hardware Spinlocks.
      It implements two mandatory operations: lock and unlock
      and one optional relax operation.
      Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NPatrice Chotard <patrice.chotard@st.com>
      7f84fc67
    • K
      board: ti: ks2_evm: Over ride spl_get_load_buffer function · 3b074fb2
      Keerthy 提交于
      Currently k2 spi boot is broken as the image header
      is getting copied to an invalid memory location
      
      CONFIG_SYS_TEXT_BASE - sizeof (struct image_size)
      which maps to 0xc000000 - 0x40 = 0xbffffc0 being a reserved
      location.
      
      We cannot change the CONFIG_SYS_TEXT_BASE address as the single
      stage boots like UART boot will need the address to be 0xc000000
      hence override the spl_get_load_buffer to have image_header
      address as CONFIG_SYS_TEXT_BASE aka 0xc000000
      Signed-off-by: NKeerthy <j-keerthy@ti.com>
      3b074fb2
    • P
      clk: Allow clock defaults to be set during re-reloc state for SPL only · 291da96b
      Philipp Tomsich 提交于
      In commit e5e06b65 ("clk: Allow clock defaults to be set also
      during re-reloc state") the earlier guard against setting clock
      defaults in pre-reloc state was removed.  While it is easy to filter
      'assigned-clocks' properties for SPL using CONFIG_OF_SPL_REMOVE_PROPS,
      no such mechanism exists for the pre-reloc stage of the full U-Boot.
      
      With the default defconfig for the RK3399-Q7 (which filter the
      'assigned-clocks' property for the DTS used by SPL anyway), this
      caused a pause during startup of the full U-Boot stage that lasted for
      almost 10s (due to the CPU not having been clocked up yet).
      
      This reintroduces the guard from commit f4fcba5c ("clk: Allow
      clock defaults to be set also during re-reloc state") and extends it
      to only apply outside of a TPL/SPL build: i.e. clk_set_defaults will
      now run in pre-reloc state for SPL, but only after reloc for the full
      U-Boot.
      
      References: commit f4fcba5c ("clk: implement clk_set_defaults()")
      References: commit e5e06b65 ("clk: Allow clock defaults to be set
      also during re-reloc state")
      Signed-off-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      291da96b
    • P
      fs: fix FAT name extraction · 8b021bb9
      Patrick Wildt 提交于
      The long name apparently can be accumulated using multiple
      13-byte slots.  Unfortunately we never checked how many we
      can actually fit in the buffer we are reading to.
      Signed-off-by: NPatrick Wildt <patrick@blueri.se>
      8b021bb9
    • P
      fs: check FAT cluster size · cd80a4fe
      Patrick Wildt 提交于
      The cluster size specifies how many sectors make up a cluster.  A
      cluster size of zero makes no sense, as it would mean that the
      cluster is made up of no sectors.  This will later lead into a
      division by zero in sect_to_clust(), so better take care of that
      early.
      
      The MAX_CLUSTSIZE define can reduced using a define to make some
      room in low-memory system.  Unfortunately if the code reads a
      filesystem with a bigger cluster size it will overflow the buffer.
      Signed-off-by: NPatrick Wildt <patrick@blueri.se>
      cd80a4fe
    • P
      configs: stm32f746-disco: Fix stm32f746-disco boot · 16462a35
      Patrice Chotard 提交于
      Since commit 8f651ca6 ("pinctrl: stm32: Add get_pins_count() ops")
      stm32f746-disco can't boot.
      
      This is due to new memory allocation into STM32 pinctrl driver,
      increase SYS_MALLOC_F_LEN from 0xC00 to 0xE00.
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      16462a35
    • S
      main: Drop more #ifdefs · 2cb132ad
      Simon Glass 提交于
      Now that many things are converted to Kconfig we can drop most of the
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      2cb132ad
    • M
      w1: fix occasional enumeration failure · b9593811
      Martin Fuzzey 提交于
      Sometimes enumeration fails (about 1 in 50 times on my custom board).
      
      The underlying reason is probably electrical but Linux does not have
      the problem.
      
      Comparing the Linux / u-boot implementations shows that Linux
      retries the error case whereas u-boot aborts early.
      
      Removing the early abort in u-boot fixes the problem.
      Signed-off-by: NMartin Fuzzey <martin.fuzzey@flowbird.group>
      b9593811
  2. 06 12月, 2018 20 次提交
  3. 05 12月, 2018 12 次提交