mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[MTD] XIP cleanup
Move the architecture dependend code into include/asm/mtd-xip.h Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
b9c86d595d
commit
97f927a4d7
6 changed files with 104 additions and 20 deletions
|
|
@ -845,7 +845,7 @@ static void __xipram xip_enable(struct map_info *map, struct flchip *chip,
|
|||
chip->state = FL_READY;
|
||||
}
|
||||
(void) map_read(map, adr);
|
||||
asm volatile (".rep 8; nop; .endr"); /* fill instruction prefetch */
|
||||
xip_iprefetch();
|
||||
local_irq_enable();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -600,7 +600,7 @@ static void __xipram xip_enable(struct map_info *map, struct flchip *chip,
|
|||
chip->state = FL_READY;
|
||||
}
|
||||
(void) map_read(map, adr);
|
||||
asm volatile (".rep 8; nop; .endr"); /* fill instruction prefetch */
|
||||
xip_iprefetch();
|
||||
local_irq_enable();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue