1 #include <linux/module.h>
2 #include <linux/types.h>
3 #include <asm/bootinfo.h>
5 #define AP70_PROT_ADDR 0xb8010008
6 #define AP70_PROT_DATA 0x8
7 #define AP60_PROT_ADDR 0xB8400000
8 #define AP60_PROT_DATA 0x04000000
10 void unlock_ap60_70_flash(void)
13 switch (mips_machtype
) {
15 val
= *(volatile __u32
*)AP70_PROT_ADDR
;
16 val
&= ~(AP70_PROT_DATA
);
17 *(volatile __u32
*)AP70_PROT_ADDR
= val
;
22 val
= *(volatile __u32
*)AP60_PROT_ADDR
;
23 val
&= ~(AP60_PROT_DATA
);
24 *(volatile __u32
*)AP60_PROT_ADDR
= val
;
This page took 0.05089 seconds and 5 git commands to generate.