zephyr/dts
Michal Sieron 2e9154a418 soc: litex-vexriscv: Rewrite litex_read/write
Changes signature so it takes uint32_t instead of pointer to a
register.
Later `sys_read*` and `sys_write*` functions are used, which cast
given address to volatile pointer anyway.

This required changing types of some fields in LiteX GPIO driver and
removal of two casts in clock control driver.

There was a weird assert from LiteX GPIO driver, which checked whether
size of first register in dts was a multiple of 4.
It didn't make much sense, so I removed it.

Previous dts was describing size of a register in terms of subregisters
used. New one uses size of register, so right now it is almost always
4 bytes.

Most drivers don't read register size from dts anyway, so only changes
had to be made in GPIO and clock control drivers.

Both use `litex_read` and `litex_write` to operate on `n`bytes.
Now GPIO driver calculates this `n` value in compile time from given
number of pins and stores it in `reg_size` field of config struct like
before.

Registe sizes in clock control driver are hardcoded, because they are
tied to LiteX wrapper anyway.

This makes it possible to have code, independent of CSR data width.

Signed-off-by: Michal Sieron <msieron@internships.antmicro.com>
2022-04-29 16:11:53 +02:00
..
arc everywhere: fix typos 2022-03-14 20:22:24 -04:00
arm drivers: clock_control: Make LSE driving configurable 2022-04-29 16:11:34 +02:00
arm64 board: arm64: fvp-baser-aemv8r: add all available uart nodes 2022-04-26 14:20:57 -05:00
bindings drivers: clock_control: Make LSE driving configurable 2022-04-29 16:11:34 +02:00
common dts/arm: stm32: Add clocks nodes on stm32wb,l4 and stm32f4 series 2021-04-27 11:53:37 +02:00
nios2 drivers/serial: Extend Altera Jtag Uart driver support 2022-04-07 06:58:16 -04:00
posix
riscv soc: litex-vexriscv: Rewrite litex_read/write 2022-04-29 16:11:53 +02:00
sparc dts: sparc: add cpus node to leon3 2022-01-11 10:46:20 +01:00
x86 dts/x86: Add VT-D node on Elkhart Lake 2022-01-07 10:47:27 -05:00
xtensa dts: xtensa: espressif: esp32: add GPIO map for accessing full GPIO range 2022-04-28 10:26:40 +02:00
binding-template.yaml
Kconfig