1. 04 Jun, 2021 1 commit
    • Yann Gautier's avatar
      refactor(plat/st): avoid fixed DT address · c20b0606
      Yann Gautier authored
      
      
      Device Tree address is now a parameter for dt_open_and_check() function.
      This will allow better flexibility when introducing PIE and FIP.
      The fdt pointer is now only assigned if the given address holds
      a valid device tree file. This allows removing the fdt_checked variable,
      as we now check fdt is not null.
      
      Change-Id: I04cbb2fc05c9c711ae1c77d56368dbeb6dd4b01a
      Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
      c20b0606
  2. 13 Oct, 2020 1 commit
  3. 11 May, 2020 1 commit
    • Etienne Carriere's avatar
      plat/stm32mp1: fdt helpers for secure aware gpio bank · ccc199ed
      Etienne Carriere authored
      
      
      New helper functions to get GPIO banks configuration from the FDT.
      
      stm32_get_gpio_bank_pinctrl_node() allows stm32mp platforms to
      differentiate specific GPIO banks when these are defined with a specific
      path in the FDT.
      
      fdt_get_gpio_bank_pin_count() returns the number of pins in a GPIO bank
      as it depends on the SoC variant.
      
      Change-Id: I4481774152b3c6bf35bf986f58e357c2f9c19176
      Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
      ccc199ed
  4. 05 May, 2020 1 commit
    • Andre Przywara's avatar
      plat/stm32: Use generic fdt_get_reg_props_by_name() · 7ad6d362
      Andre Przywara authored
      
      
      The STM32 platform port parse DT nodes to find base address to
      peripherals. It does this by using its own implementation, even though
      this functionality is generic and actually widely useful outside of the
      STM32 code.
      
      Re-implement fdt_get_reg_props_by_name() on top of the newly introduced
      fdt_get_reg_props_by_index() function, and move it to fdt_wrapper.c.
      This is removes the assumption that #address-cells and #size-cells are
      always one.
      
      Change-Id: I6d584930262c732b6e0356d98aea50b2654f789d
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      7ad6d362
  5. 29 Apr, 2020 1 commit
    • Andre Przywara's avatar
      plat/stm32: Implement fdt_read_uint32_default() as a wrapper · be858cff
      Andre Przywara authored
      
      
      The STM32 platform code uses its own set of FDT helper functions,
      although some of them are fairly generic.
      
      Remove the implementation of fdt_read_uint32_default() and implement it
      on top of the newly introduced fdt_read_uint32() function, then convert
      all users over.
      
      This also fixes two callers, which were slightly abusing the "default"
      semantic.
      
      Change-Id: I570533362b4846e58dd797a92347de3e0e5abb75
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      be858cff
  6. 28 Apr, 2020 1 commit
    • Andre Przywara's avatar
      plat/stm32: Use generic fdt_read_uint32_array() implementation · 52a616b4
      Andre Przywara authored
      
      
      The device tree parsing code for the STM32 platform is using its own FDT
      helper functions, some of them being rather generic.
      In particular the existing fdt_read_uint32_array() implementation is now
      almost identical to the new generic code in fdt_wrappers.c, so we can
      remove the ST specific version and adjust the existing callers.
      
      Compared to the original ST implementation the new version takes a
      pointer to the DTB as the first argument, and also swaps the order of
      the number of cells and the pointer.
      
      Change-Id: Id06b0f1ba4db1ad1f733be40e82c34f46638551a
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      52a616b4
  7. 20 Jan, 2020 1 commit
  8. 17 Jun, 2019 2 commits
  9. 14 Feb, 2019 2 commits
  10. 18 Jan, 2019 1 commit
  11. 08 Nov, 2018 1 commit
    • Antonio Nino Diaz's avatar
      Standardise header guards across codebase · c3cf06f1
      Antonio Nino Diaz authored
      
      
      All identifiers, regardless of use, that start with two underscores are
      reserved. This means they can't be used in header guards.
      
      The style that this project is now to use the full name of the file in
      capital letters followed by 'H'. For example, for a file called
      "uart_example.h", the header guard is UART_EXAMPLE_H.
      
      The exceptions are files that are imported from other projects:
      
      - CryptoCell driver
      - dt-bindings folders
      - zlib headers
      
      Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e
      Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
      c3cf06f1
  12. 24 Jul, 2018 4 commits