OSDN Git Service

clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register
authorOndrej Jirman <megous@megous.com>
Tue, 4 Jun 2019 15:40:36 +0000 (17:40 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 5 Jun 2019 11:49:05 +0000 (13:49 +0200)
commitf167675486c37b88620d344fbb12d06e34f11d47
treeb9ddbcba7e5fe4c03d3520be48105f4381dc9abd
parentfcdf445ff42f036d22178b49cf64e92d527c1330
clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

The current code defines W1 clock gate to be at 0x1cc, overlaying it
with the IR gate.

Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver
causing interrupt floods on H6 (because interrupt flags can't be cleared,
due to IR module's bus being disabled).

Fixes: b7c7b05065aa77ae ("clk: sunxi-ng: add support for H6 PRCM CCU")
Signed-off-by: Ondrej Jirman <megous@megous.com>
Acked-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c