Lines Matching refs:autcpu12_sram_map
37 struct map_info autcpu12_sram_map = {
48 autcpu12_sram_map.virt = ioremap(0x12000000, SZ_128K);
49 if (!autcpu12_sram_map.virt) {
64 save0 = map_read32(&autcpu12_sram_map,0);
65 save1 = map_read32(&autcpu12_sram_map,0x10000);
66 map_write32(&autcpu12_sram_map,~save0,0x10000);
70 if ( map_read32(&autcpu12_sram_map,0) != save0) {
71 map_write32(&autcpu12_sram_map,save0,0x0);
77 map_write32(&autcpu12_sram_map,save1,0x10000);
78 autcpu12_sram_map.size = SZ_128K;
81 sram_mtd = do_map_probe("map_ram", &autcpu12_sram_map);
97 printk("NV-RAM device size %ldKiB registered on AUTCPU12\n",autcpu12_sram_map.size/SZ_1K);
106 iounmap((void *)autcpu12_sram_map.virt);
116 iounmap((void *)autcpu12_sram_map.virt);