1. 20 Jan, 2020 8 commits
    • Lionel Debieve's avatar
      stm32mp: add DT helper for reg by name · dd85e572
      Lionel Debieve authored
      
      
      Add a new entry to find register properties by name and
      include new assert functions to limit address cells to 1
      and size cells to 1.
      
      Change-Id: Ide59a795a05fb2af36bd07fec15e5a3adf196226
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      dd85e572
    • Nicolas Le Bayon's avatar
      stm32mp1: add compilation flags for boot devices · 46554b64
      Nicolas Le Bayon authored
      
      
      Adds compilation flags to specify which drivers will be
      embedded in the generated firmware.
      
      Change-Id: Ie9decc89c3f26cf17e7148a3a4cf337fd35940f7
      Signed-off-by: default avatarNicolas Le Bayon <nicolas.le.bayon@st.com>
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      46554b64
    • Lionel Debieve's avatar
      lib: utils_def: add CLAMP macro · e76d9fc4
      Lionel Debieve authored
      
      
      Add the standard CLAMP macro.  It ensures that
      x is between the limits set by low and high.
      If low is greater than high the result is undefined.
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      Change-Id: Ia173bb9ca51bc8d9a8ec573bbc15636a94f881f4
      e76d9fc4
    • Lionel Debieve's avatar
      compiler_rt: Import popcountdi2.c and popcountsi2.c files · 162fc183
      Lionel Debieve authored
      
      
      Imported from the LLVM compiler_rt library on master branch as of
      30 Oct 2018 (SVN revision: r345645).
      
      This is to get the __popcountsi2(si_int a) and __popcountdi2(di_int a)
      builtin which are required by a driver that uses a __builtin_popcount().
      
      Change-Id: I8e0d97cebdd90d224690c8ce1b02e657acdddb25
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      162fc183
    • Lionel Debieve's avatar
      Add SPI-NOR framework · a13550d0
      Lionel Debieve authored
      
      
      SPI-NOR framework is based on SPI-MEM framework using
      spi_mem_op execution interface.
      
      It implements read functions and allows NOR configuration
      up to quad mode.
      Default management is 1 data line but it can be overridden
      by platform.
      It also includes specific quad mode configuration for
      Spansion, Micron and Macronix memories.
      
      Change-Id: If49502b899b4a75f6ebc3190f6bde1013651197f
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      Signed-off-by: default avatarChristophe Kerello <christophe.kerello@st.com>
      a13550d0
    • Lionel Debieve's avatar
      Add SPI-NAND framework · c3e57739
      Lionel Debieve authored
      
      
      This framework supports SPI-NAND and is based on the
      SPI-MEM framework for SPI operations. It uses a common high
      level access using the io_mtd.
      
      It is limited to the read functionalities.
      
      Default behavior is the basic one data line operation
      but it could be overridden by platform.
      
      Change-Id: Icb4e0887c4003a826f47c876479dd004a323a32b
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      Signed-off-by: default avatarChristophe Kerello <christophe.kerello@st.com>
      c3e57739
    • Lionel Debieve's avatar
      Add SPI-MEM framework · 05e6a563
      Lionel Debieve authored
      
      
      This framework supports SPI operations using a common
      spi_mem_op structure:
       - command
       - addr
       - dummy
       - data
      
      The framework manages SPI bus configuration:
       - speed
       - bus width (Up to quad mode)
       - chip select
      
      Change-Id: Idc2736c59bfc5ac6e55429eba5d385275ea3fbde
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      Signed-off-by: default avatarChristophe Kerello <christophe.kerello@st.com>
      05e6a563
    • Lionel Debieve's avatar
      Add raw NAND framework · b114abb6
      Lionel Debieve authored
      
      
      The raw NAND framework supports SLC NAND devices.
      
      It introduces a new high level interface (io_mtd) that
      defines operations a driver can register to the NAND framework.
      This interface will fill in the io_mtd device specification:
      	- device_size
              - erase_size
      that could be used by the io_storage interface.
      
      NAND core source file integrates the standard read loop that
      performs NAND device read operations using a skip bad block strategy.
      A platform buffer must be defined in case of unaligned
      data. This buffer must fit to the maximum device page size
      defined by PLATFORM_MTD_MAX_PAGE_SIZE.
      
      The raw_nand.c source file embeds the specific NAND operations
      to read data.
      The read command is a raw page read without any ECC correction.
      This can be overridden by a low level driver.
      No generic support for write or erase command or software
      ECC correction.
      
      NAND ONFI detection is available and can be enabled using
      NAND_ONFI_DETECT=1.
      For non-ONFI NAND management, platform can define required
      information.
      
      Change-Id: Id80e9864456cf47f02b74938cf25d99261da8e82
      Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
      Signed-off-by: default avatarChristophe Kerello <christophe.kerello@st.com>
      b114abb6
  2. 17 Jan, 2020 4 commits
  3. 16 Jan, 2020 1 commit
  4. 15 Jan, 2020 13 commits
  5. 14 Jan, 2020 9 commits
  6. 13 Jan, 2020 4 commits
  7. 12 Jan, 2020 1 commit