In this recipe, we will see how to get access to the internal peripherals of a CPU or to any other memory mapped device that is connected to the CPU.
Getting access to I/O memory
Getting ready
This time, we'll present an example using an already existing piece of code in the kernel sources, so now there is nothing to compile, but we can go directly to the root directory of ESPRESSObin's kernel sources.
How to do it...
- A good and really simple example about how to do a memory remap is reported in the linux/drivers/reset/reset-sunxi.c file in the sunxi_reset_init...