// SPDX-License-Identifier: GPL-2.0 /* * Support for Merrifield PNW Camera Imaging ISP subsystem. * * Copyright (c) 2012 Intel Corporation. All Rights Reserved. * * Copyright (c) 2012 Silicon Hive www.siliconhive.com. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * */ #include "type_support.h" #include "mmu/isp_mmu.h" #include "mmu/sh_mmu_mrfld.h" #include "atomisp_compat.h" #define MERR_VALID_PTE_MASK … /* * include SH header file here */ static unsigned int sh_phys_to_pte(struct isp_mmu *mmu, phys_addr_t phys) { … } static phys_addr_t sh_pte_to_phys(struct isp_mmu *mmu, unsigned int pte) { … } static unsigned int sh_get_pd_base(struct isp_mmu *mmu, phys_addr_t phys) { … } /* * callback to flush tlb. * * tlb_flush_range will at least flush TLBs containing * address mapping from addr to addr + size. * * tlb_flush_all will flush all TLBs. * * tlb_flush_all is must be provided. if tlb_flush_range is * not valid, it will set to tlb_flush_all by default. */ static void sh_tlb_flush(struct isp_mmu *mmu) { … } struct isp_mmu_client sh_mmu_mrfld = …;