2 * Support for Medifield PNW Camera Imaging ISP subsystem.
4 * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
6 * Copyright (c) 2010 Silicon Hive www.siliconhive.com.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License version
10 * 2 as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
29 #include "mmu/isp_mmu.h"
33 * include SH header file here
37 * set page directory base address (physical address).
41 static int sh_set_pd_base(struct isp_mmu *mmu,
44 sh_css_mmu_set_page_table_base_address((void *)phys);
49 * callback to flush tlb.
51 * tlb_flush_range will at least flush TLBs containing
52 * address mapping from addr to addr + size.
54 * tlb_flush_all will flush all TLBs.
56 * tlb_flush_all is must be provided. if tlb_flush_range is
57 * not valid, it will set to tlb_flush_all by default.
59 static void sh_tlb_flush(struct isp_mmu *mmu)
61 sh_css_mmu_invalidate_cache();
64 static struct isp_mmu_driver sh_mmu_driver = {
65 .name = "Silicon Hive ISP3000 MMU",
66 .pte_valid_mask = 0x1,
67 .set_pd_base = sh_set_pd_base,
68 .tlb_flush_all = sh_tlb_flush,
71 #define ISP_VM_START 0x0
72 #define ISP_VM_SIZE (1 << 30) /* 1G address space */
73 #define ISP_PTR_NULL NULL
75 #endif /* SH_MMU_H_ */