intel_adsp: meteorlake: add memory driver

Add TLB driver specific for Meteorlake.

Add missing kconfig resource and fix include path
add hpsram power up and ref counter

Use memblock to track physical page usage in mtl tlb driver. The
applications that will be using the tlb memory driver should not
track the physical page mapping to virtual address space:
 - adds an option to use the phys argument value of 0 to tell the
   driver to autonomously assign physical pages upon map request
 - makes the tlb driver use memblock to track mapped physical pages

Co-authored-by: Rafal Redzimski <rafal.f.redzimski@intel.com>
Co-authored-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
Co-authored-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
Co-authored-by: Michal Wasko <michal.wasko@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-06-21 12:28:08 -04:00
commit 3ccafb1af3
3 changed files with 633 additions and 4 deletions

View file

@ -2,9 +2,15 @@
zephyr_library()
zephyr_include_directories(${ZEPHYR_BASE}/drivers)
zephyr_library_sources(mm_drv_common.c)
zephyr_library_sources_ifdef(
CONFIG_MM_DRV_INTEL_ADSP_TLB
mm_drv_intel_adsp_tlb.c
)
CONFIG_MM_DRV_INTEL_ADSP_TLB
mm_drv_intel_adsp_tlb.c
)
zephyr_sources_ifdef(
CONFIG_MM_DRV_INTEL_ADSP_MTL_TLB
mm_drv_intel_adsp_mtl_tlb.c
)