mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] m32r: Update _port2addr to use NONCACHE_OFFSET
Modify _port2addr*() routines in arch/m32r/kernel/io_*.c to use NONCACHE_OFFSET instead of hard-coding of a constant address. This modification is also required to support an M3A-ZA36 FPGA eva board in case an MMU-less synthesizable m32r core is used. Signed-off-by: Hirokazu Takata <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1b5b776aa5
commit
46ea178b7a
8 changed files with 72 additions and 63 deletions
|
|
@ -126,7 +126,7 @@
|
|||
|
||||
#include <asm/page.h>
|
||||
#ifdef CONFIG_MMU
|
||||
#define NONCACHE_OFFSET __PAGE_OFFSET+0x20000000
|
||||
#define NONCACHE_OFFSET (__PAGE_OFFSET + 0x20000000)
|
||||
#else
|
||||
#define NONCACHE_OFFSET __PAGE_OFFSET
|
||||
#endif /* CONFIG_MMU */
|
||||
|
|
|
|||
Loading…
Reference in a new issue