Skip to content

Commit 4e96fd3

Browse files
mmindlinusw
authored andcommitted
pinctrl: rockchip: Add iomux-route switching support for rk3288
The rk3288 also has one function that can be routed to one of two pins, the hdmi cec functionality can use either gpio7c0 or gpio7c7. So add the route switching support for it. Signed-off-by: Heiko Stuebner <[email protected]> Tested-by: Hans Verkuil <[email protected]> Reviewed-by: David Wu <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 0f80dbc commit 4e96fd3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/pinctrl/pinctrl-rockchip.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,24 @@ static struct rockchip_mux_route_data rk3228_mux_route_data[] = {
884884
},
885885
};
886886

887+
static struct rockchip_mux_route_data rk3288_mux_route_data[] = {
888+
{
889+
/* edphdmi_cecinoutt1 */
890+
.bank_num = 7,
891+
.pin = 16,
892+
.func = 2,
893+
.route_offset = 0x264,
894+
.route_val = BIT(16 + 12) | BIT(12),
895+
}, {
896+
/* edphdmi_cecinout */
897+
.bank_num = 7,
898+
.pin = 23,
899+
.func = 4,
900+
.route_offset = 0x264,
901+
.route_val = BIT(16 + 12),
902+
},
903+
};
904+
887905
static struct rockchip_mux_route_data rk3328_mux_route_data[] = {
888906
{
889907
/* uart2dbg_rxm0 */
@@ -3398,6 +3416,8 @@ static struct rockchip_pin_ctrl rk3288_pin_ctrl = {
33983416
.type = RK3288,
33993417
.grf_mux_offset = 0x0,
34003418
.pmu_mux_offset = 0x84,
3419+
.iomux_routes = rk3288_mux_route_data,
3420+
.niomux_routes = ARRAY_SIZE(rk3288_mux_route_data),
34013421
.pull_calc_reg = rk3288_calc_pull_reg_and_bit,
34023422
.drv_calc_reg = rk3288_calc_drv_reg_and_bit,
34033423
};

0 commit comments

Comments
 (0)