mm: intel_adsp_mtl_tlb: move SRAM_BANK_PAGE_NUM in driver

The macro SRAM_BANK_PAGE_NUM is specfic to the mtl_tlb
driver and is not universal. So move that from public
header into the driver.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-10-17 14:30:19 -07:00 committed by Fabio Baltieri
parent 8021cde6de
commit ca1aae6183
2 changed files with 2 additions and 2 deletions

View file

@ -27,6 +27,8 @@
#include <zephyr/debug/sparse.h>
#include <zephyr/cache.h>
#define SRAM_BANK_PAGE_NUM (SRAM_BANK_SIZE / CONFIG_MM_DRV_PAGE_SIZE)
static struct k_spinlock tlb_lock;
extern struct k_spinlock sys_mm_drv_common_lock;

View file

@ -21,8 +21,6 @@
#include <zephyr/sys/mem_stats.h>
#include <stdint.h>
#define SRAM_BANK_PAGE_NUM (SRAM_BANK_SIZE / CONFIG_MM_DRV_PAGE_SIZE)
struct mem_drv_bank {
uint32_t unmapped_pages;
uint32_t mapped_pages;