2 * arch/sh/mm/fixed_pmb.c
4 * Copyright (C) 2009 Renesas Solutions Corp.
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
10 #include <linux/init.h>
14 #include <asm/mmu_context.h>
16 static int __uses_jump_to_uncached fixed_pmb_init(void)
19 unsigned long addr, data;
23 for (i = 0; i < PMB_ENTRY_MAX; i++) {
24 addr = PMB_DATA + (i << PMB_E_SHIFT);
25 data = ctrl_inl(addr);
30 #if defined(CONFIG_CACHE_WRITETHROUGH)
32 #elif defined(CONFIG_CACHE_WRITEBACK)
35 data &= ~(PMB_C | PMB_WT);
38 ctrl_outl(data, addr);
45 arch_initcall(fixed_pmb_init);