From: chenxing Date: Sat, 4 May 2013 08:51:19 +0000 (+0800) Subject: rk3188: add efuse memory map support X-Git-Tag: firefly_0821_release~7171 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=55fffc6ce4a05b3bbf4fcac43891fa5d42d82c3c;p=firefly-linux-kernel-4.4.55.git rk3188: add efuse memory map support --- diff --git a/arch/arm/mach-rk3188/include/mach/io.h b/arch/arm/mach-rk3188/include/mach/io.h index fab471c3d48c..6389b6125f21 100644 --- a/arch/arm/mach-rk3188/include/mach/io.h +++ b/arch/arm/mach-rk3188/include/mach/io.h @@ -140,6 +140,7 @@ #define RK3188_TIMER3_BASE RK30_IO_TO_VIRT1(RK3188_TIMER3_PHYS) #define RK3188_TIMER3_SIZE SZ_8K #define RK30_EFUSE_PHYS 0x20010000 +#define RK30_EFUSE_BASE RK30_IO_TO_VIRT1(RK30_EFUSE_PHYS) #define RK30_EFUSE_SIZE SZ_16K #define RK30_TZPC_PHYS 0x20014000 #define RK30_TZPC_SIZE SZ_16K diff --git a/arch/arm/mach-rk3188/io.c b/arch/arm/mach-rk3188/io.c index 11c510e62b6d..fe5c47b96a08 100644 --- a/arch/arm/mach-rk3188/io.c +++ b/arch/arm/mach-rk3188/io.c @@ -53,6 +53,7 @@ static struct map_desc rk30_io_desc[] __initdata = { RK30_DEVICE(GPIO2), RK30_DEVICE(GPIO3), RK30_DEVICE(TIMER0), + RK30_DEVICE(EFUSE), { .virtual = (unsigned long) RK3188_TIMER3_BASE, .pfn = __phys_to_pfn(RK3188_TIMER3_PHYS),