Skip to content
Snippets Groups Projects
  1. Feb 06, 2025
  2. Feb 04, 2025
  3. Jan 15, 2025
    • AngeloGioacchino Del Regno's avatar
      soc: mediatek: mt8188-mmsys: Migrate to MMSYS_ROUTE() macro · 405ccf26
      AngeloGioacchino Del Regno authored
      
      Change the initialization data in the arrays of structure
      mtk_mmsys_routes to make use of the MMSYS_ROUTE() macro:
      this will make sure that each array entry's SEL value fits
      in its corresponding register mask with a compile time check.
      
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      405ccf26
    • AngeloGioacchino Del Regno's avatar
      soc: mediatek: mtk-mmsys: Add compile time check for mmsys routes · 6e909221
      AngeloGioacchino Del Regno authored
      
      Every MediaTek SoC with multimedia capabilities has an array of
      structure mtk_mmsys_routes that defines a multimedia connection
      between hardware components.
      
      This connection is activated by writing a (masked) value in each
      specific register, and the association between from->to path and
      value to write is expressed as an entry in that array.
      
      Failing to set the right path does not give any meaningful error
      and makes things to simply not work as the data will either not
      be retrieved from the right input port, or will be written to
      the wrong output port (or both): since a misconfiguration may
      effectively still be a possibly correct configuration at the HW
      level, this may be only giving side effects in terms of simply
      getting no functionality but, again, no errors.
      
      In order to reduce room for mistakes in declarations of the
      mmsys routes, add a macro that compile-time checks that the
      provided value does at least fit in the register mask.
      
      Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      6e909221
  4. Jan 14, 2025
  5. Jan 11, 2025
  6. Jan 10, 2025
  7. Jan 09, 2025
  8. Jan 08, 2025
  9. Jan 07, 2025
  10. Jan 06, 2025
  11. Jan 02, 2025
  12. Dec 26, 2024
  13. Dec 23, 2024
  14. Dec 13, 2024
  15. Dec 12, 2024
  16. Dec 09, 2024
  17. Dec 08, 2024
  18. Nov 14, 2024
  19. Nov 12, 2024
  20. Nov 06, 2024
  21. Nov 04, 2024
Loading