Commit 2689c123 authored by Ralph Siemsen's avatar Ralph Siemsen Committed by Geert Uytterhoeven

clk: renesas: r9a06g032: Drop unused fields

Drop three unused fields from the clock descriptor structure, and update
the macros for filling such structures accordingly.

The values for such fields are kept in the source code, now unused, in
case they are needed later.
Signed-off-by: default avatarRalph Siemsen <ralph.siemsen@linaro.org>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230301215520.828455-3-ralph.siemsen@linaro.orgSigned-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent a1aae0a6
......@@ -30,8 +30,9 @@
#define R9A06G032_SYSCTRL_DMAMUX 0xA0
struct r9a06g032_gate {
u16 gate, reset, ready, midle,
scon, mirack, mistat;
u16 gate, reset, ready, midle;
/* Unused fields omitted to save space */
/* u16 scon, mirack, mistat; */
};
enum gate_type {
......@@ -69,14 +70,18 @@ struct r9a06g032_clkdesc {
};
};
/*
* The last three arguments are not currently used,
* but are kept in the r9a06g032_clocks table below.
*/
#define I_GATE(_clk, _rst, _rdy, _midle, _scon, _mirack, _mistat) { \
.gate = _clk, \
.reset = _rst, \
.ready = _rdy, \
.midle = _midle, \
.scon = _scon, \
.mirack = _mirack, \
.mistat = _mistat \
/* .scon = _scon, */ \
/* .mirack = _mirack, */ \
/* .mistat = _mistat */ \
}
#define D_GATE(_idx, _n, _src, ...) { \
.type = K_GATE, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment