diff options
author | Jules Maselbas <jmaselbas@kalray.eu> | 2021-10-04 09:38:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-22 10:09:24 +0100 |
commit | c0b08089caa334838af4b22c9a59eb34badd3fbb (patch) | |
tree | bf7a190870bdc2280e77dc659e91d2f664e61705 /include | |
parent | c9de1e2526e70ceaf862e623f414dee5d35c12a2 (diff) | |
download | barebox-c0b08089caa334838af4b22c9a59eb34badd3fbb.tar.gz barebox-c0b08089caa334838af4b22c9a59eb34badd3fbb.tar.xz |
debug_ll: ns16550: Fix interrupt disable on init
The debug_ll_write_reg function takes first the register
and secondly the value to write, which in this call were
inverted. Fix the argument order.
Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
Link: https://lore.barebox.org/20211004073842.14809-1-jmaselbas@kalray.eu
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/debug_ll/ns16550.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/debug_ll/ns16550.h b/include/debug_ll/ns16550.h index 7e4dbeb453..373c917d86 100644 --- a/include/debug_ll/ns16550.h +++ b/include/debug_ll/ns16550.h @@ -43,7 +43,7 @@ static inline uint16_t debug_ll_ns16550_calc_divisor(unsigned long clk) static inline void debug_ll_ns16550_init(uint16_t divisor) { debug_ll_write_reg(NS16550_LCR, 0x0); /* select ier reg */ - debug_ll_write_reg(0x00, NS16550_IER); + debug_ll_write_reg(NS16550_IER, 0x0); /* disable interrupts */ debug_ll_write_reg(NS16550_LCR, NS16550_LCR_BKSE); debug_ll_write_reg(NS16550_DLL, divisor & 0xff); |