mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 15:13:48 +00:00
It is envisaged that this will be used by SoC or board code to make available fixed purpose memory-mapped i/o registers to the rest of the system which normally expects to use GPIO devices, e.g. for driving chip select lines, LEDs or reading button states. As such, the driver code doesn't provide a kconfig based configuration mechanism, instead SoC/board code can hard-wire the devices it wants with something simple like: GPIO_MMIO32_INIT(misc_reg1, "MISC1", 0x12345678, 0xffffffffu) Then, for example, if bit N of the register at 0x12345678 is wired up as an SPI device chip select line, the SPI driver could be configured to use pin N of the "MISC1" GPIO driver and not need any other board specific code. Change-Id: Ib02fcbab73fcf9637e25834db060fb3108626f47 Signed-off-by: Jon Medhurst <tixy@linaro.org> |
||
---|---|---|
.. | ||
arch | ||
bluetooth | ||
crypto | ||
debug | ||
display | ||
drivers | ||
fs | ||
linker | ||
logging | ||
misc | ||
net | ||
shell | ||
toolchain | ||
usb | ||
adc.h | ||
aio_comparator.h | ||
atomic.h | ||
cache.h | ||
clock_control.h | ||
console.h | ||
counter.h | ||
device.h | ||
disk_access.h | ||
dma.h | ||
eth.h | ||
flash.h | ||
fs.h | ||
gpio.h | ||
i2c.h | ||
init.h | ||
ipm.h | ||
irq_offload.h | ||
irq.h | ||
kernel_version.h | ||
kernel.h | ||
legacy.h | ||
linker-defs.h | ||
linker-tool-gcc.h | ||
linker-tool.h | ||
microkernel.h | ||
nanokernel.h | ||
pinmux.h | ||
power.h | ||
pwm.h | ||
random.h | ||
rtc.h | ||
section_tags.h | ||
sections.h | ||
sensor.h | ||
shared_irq.h | ||
spi.h | ||
sw_isr_table.h | ||
sys_clock.h | ||
sys_io.h | ||
toolchain.h | ||
uart.h | ||
watchdog.h | ||
zephyr.h |