According to "BCM2835 ARM Peripherals" page 90, the GPIO registers start from 0x 7E20 0000. While according to kernel file: arch/arm/mach-bcm2708/include/mach/platform.h, as below.
#define BCM2708_PERI_BASE 0x20000000 ... #define GPIO_BASE (BCM2708_PERI_BASE + 0x200000) /* GPIO */
So GPIO_BASE = 0x 2020 0000.
Which one is right? Could anyone help? Thanks!
I find below part from "BCM2835 ARM Peripherals", page 6. I think it can answer my question.