pinctrl: renesas: emev2: Use shorthands for reserved fields
Replace the full descriptions of reserved register fields by shorthands with a negative field width, and merge adjacent reserved fields. This reduces kernel size by 769 bytes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/616afe67d3b4d2cbf5f43876f9aa7b258862ceaa.1649865241.git.geert+renesas@glider.be
This commit is contained in:
parent
44778aec5e
commit
ead4017fcd
@ -1569,61 +1569,39 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
|
||||
))
|
||||
},
|
||||
{ PINMUX_CFG_REG_VAR("CHG_PINSEL_LCD3", 0xe0140284, 32,
|
||||
GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2,
|
||||
2, 2),
|
||||
GROUP(-20, 2, 2, -6, 2),
|
||||
GROUP(
|
||||
/* 31 - 12 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 31 - 12 RESERVED */
|
||||
/* 11 - 10 */
|
||||
FN_SEL_LCD3_11_10_00, FN_SEL_LCD3_11_10_01,
|
||||
FN_SEL_LCD3_11_10_10, 0,
|
||||
/* 9 - 8 */
|
||||
FN_SEL_LCD3_9_8_00, 0, FN_SEL_LCD3_9_8_10, 0,
|
||||
/* 7 - 2 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 7 - 2 RESERVED */
|
||||
/* 1 - 0 */
|
||||
FN_SEL_LCD3_1_0_00, FN_SEL_LCD3_1_0_01, 0, 0,
|
||||
))
|
||||
},
|
||||
{ PINMUX_CFG_REG_VAR("CHG_PINSEL_UART", 0xe0140288, 32,
|
||||
GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 2),
|
||||
GROUP(-30, 2),
|
||||
GROUP(
|
||||
/* 31 - 2 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 31 - 2 RESERVED */
|
||||
/* 1 - 0 */
|
||||
FN_SEL_UART_1_0_00, FN_SEL_UART_1_0_01, 0, 0,
|
||||
))
|
||||
},
|
||||
{ PINMUX_CFG_REG_VAR("CHG_PINSEL_IIC", 0xe014028c, 32,
|
||||
GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 2),
|
||||
GROUP(-30, 2),
|
||||
GROUP(
|
||||
/* 31 - 2 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 31 - 2 RESERVED */
|
||||
/* 1 - 0 */
|
||||
FN_SEL_IIC_1_0_00, FN_SEL_IIC_1_0_01, 0, 0,
|
||||
))
|
||||
},
|
||||
{ PINMUX_CFG_REG_VAR("CHG_PINSEL_AB", 0xe0140294, 32,
|
||||
GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2),
|
||||
GROUP(-18, 2, 2, 2, 2, 2, 2, 2),
|
||||
GROUP(
|
||||
/* 31 - 14 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
/* 31 - 14 RESERVED */
|
||||
/* 13 - 12 */
|
||||
FN_SEL_AB_13_12_00, 0, FN_SEL_AB_13_12_10, 0,
|
||||
/* 11 - 10 */
|
||||
@ -1643,14 +1621,9 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
|
||||
))
|
||||
},
|
||||
{ PINMUX_CFG_REG_VAR("CHG_PINSEL_USI", 0xe0140298, 32,
|
||||
GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
|
||||
2, 2, 2),
|
||||
GROUP(-22, 2, 2, 2, 2, 2),
|
||||
GROUP(
|
||||
/* 31 - 10 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 31 - 10 RESERVED */
|
||||
/* 9 - 8 */
|
||||
FN_SEL_USI_9_8_00, FN_SEL_USI_9_8_01, 0, 0,
|
||||
/* 7 - 6 */
|
||||
@ -1664,15 +1637,9 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
|
||||
))
|
||||
},
|
||||
{ PINMUX_CFG_REG_VAR("CHG_PINSEL_HSI", 0xe01402a8, 32,
|
||||
GROUP(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 2),
|
||||
GROUP(-30, 2),
|
||||
GROUP(
|
||||
/* 31 - 2 */
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* 31 - 2 RESERVED */
|
||||
/* 1 - 0 */
|
||||
FN_SEL_HSI_1_0_00, FN_SEL_HSI_1_0_01, 0, 0,
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user