|
沙发
楼主 |
发表于 2022-10-6 02:03:34
|
只看该作者
本帖最后由 feelthat 于 2022-10-12 09:58 编辑
Ok i got answer~
https://elixir.bootlin.com/linux/latest/source/drivers/pinctrl/pinctrl-rockchip.c#L3536
RK_MUXROUTE_GRF(3, RK_PB2, 5, 0x0308, WRITE_MASK_VAL(0, 0, 0)), /* PWM9 IO mux M0 */
RK_MUXROUTE_GRF(1, RK_PD6, 4, 0x0308, WRITE_MASK_VAL(0, 0, 1)), /* PWM9 IO mux M1 */
RK_MUXROUTE_GRF(3, RK_PB5, 5, 0x0308, WRITE_MASK_VAL(2, 2, 0)), /* PWM10 IO mux M0 */
RK_MUXROUTE_GRF(2, RK_PA1, 2, 0x0308, WRITE_MASK_VAL(2, 2, 1)), /* PWM10 IO mux M1 */
RK_MUXROUTE_GRF(3, RK_PB6, 5, 0x0308, WRITE_MASK_VAL(4, 4, 0)), /* PWM11 IO mux M0 */
RK_MUXROUTE_GRF(4, RK_PC0, 3, 0x0308, WRITE_MASK_VAL(4, 4, 1)), /* PWM11 IO mux M1 */
RK_MUXROUTE_GRF(3, RK_PB7, 2, 0x0308, WRITE_MASK_VAL(6, 6, 0)), /* PWM12 IO mux M0 */
RK_MUXROUTE_GRF(4, RK_PC5, 1, 0x0308, WRITE_MASK_VAL(6, 6, 1)), /* PWM12 IO mux M1 */
RK_MUXROUTE_GRF(3, RK_PC0, 2, 0x0308, WRITE_MASK_VAL(8, 8, 0)), /* PWM13 IO mux M0 */
RK_MUXROUTE_GRF(4, RK_PC6, 1, 0x0308, WRITE_MASK_VAL(8, 8, 1)), /* PWM13 IO mux M1 */
RK_MUXROUTE_GRF(3, RK_PC4, 1, 0x0308, WRITE_MASK_VAL(10, 10, 0)), /* PWM14 IO mux M0 */
RK_MUXROUTE_GRF(4, RK_PC2, 1, 0x0308, WRITE_MASK_VAL(10, 10, 1)), /* PWM14 IO mux M1 */
RK_MUXROUTE_GRF(3, RK_PC5, 1, 0x0308, WRITE_MASK_VAL(12, 12, 0)), /* PWM15 IO mux M0 */
RK_MUXROUTE_GRF(4, RK_PC3, 1, 0x0308, WRITE_MASK_VAL(12, 12, 1)), /* PWM15 IO mux M1 */
ex1:
[RK3566 TRM part1]
3.2 Function Description
SYS_GRF 0xFDC60000
3.7 SYS_GRF Register Description
GRF_IOFUNC_SEL2 0x0308
...
...
...
Bit Attr Reset Value Description
7 RO 0x0 reserved
6 RW 0x0
pwm12_iomux_sel PWM12 IO mux selection
1'b0:M0 mux solution
1'b1:M1 mux solution
5 RO 0x0 reserved
4 RW 0x0
pwm11_iomux_sel PWM11 IO mux selection
1'b0:M0 mux solution
1'b1:M1 mux solution
3 RO 0x0 reserved 2 RW 0x0
pwm10_iomux_sel PWM10 IO mux selection
1'b0:M0 mux solution
1'b1:M1 mux solution
1 RO 0x0 reserved
0 RW 0x0
pwm9_iomux_sel PWM9 IO mux selection
1'b0:M0 mux solution
1'b1:M1 mux solution
|
|