dts: add reg-shift property to all ns16550 devices
The ns16550 flags reg-shift property as optional. In case it is not supplied, the ns16550 driver relies on a value defined in <soc.h>, or, by default it takes 4 (shift by 2). This patch adds the property to all ns16550 nodes, with the following values: - 2 if SoC did not have any custom value defined by UART_REG_ADDR_INTERVAL (corresponds to 1 << 2 = 4) - If SoC defined DEFAULT_REG_INTERVAL (snps_arc_iot/it8xxx2), use such value (4=2, 2=1, 1=0). These changes will allow simplifying the ns16550 driver. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
5774228819
commit
4c8a8149de
19 changed files with 45 additions and 15 deletions
|
@ -47,7 +47,7 @@
|
|||
interrupts = <1>;
|
||||
clock-frequency = <50000000>;
|
||||
label = "UART_0";
|
||||
|
||||
reg-shift = <2>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
clock-frequency = <50000000>;
|
||||
interrupts = <1 0>;
|
||||
label = "UART_0";
|
||||
|
||||
reg-shift = <2>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue