pwm: rockchip: fix the comment for the tx_value of IR transmit function

Fixes: 9be1108fc5 ("pwm: rockchip: add support for IR NEC transmit")
Change-Id: I90ccf6131178d619ed4205886e28960a9a6c384b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2024-12-12 09:49:09 +08:00
committed by Tao Huang
parent 9ea235c717
commit 07bc6420d1

View File

@@ -1944,8 +1944,13 @@ static int rockchip_pwm_ir_transmit_v4(struct pwm_chip *chip, unsigned int *txbu
* txbuf[4]: the high duration of NEC logic '0'.
* txbuf[5]: the high duration of NEC logic '1'.
* txbuf[6]:
* bit[31:24] bit[23:16] bit[15:8] bit[7:0]
* address code address inverted code command code command inverted code
* For 8-bit address code:
* bit[31:24] bit[23:16] bit[15:8] bit[7:0]
* command inverted code command code address inverted code address code
*
* For 16-bit address code:
* bit[31:24] bit[23:16] bit[15:8] bit[7:0]
* command inverted code command code address code bit[15:8] address code bit[7:0]
*/
preload = txbuf[0] << IR_TRANS_OUT_LOW_PRELOAD_SHIFT |
txbuf[1] << IR_TRANS_OUT_HIGH_PRELOAD_SHIFT;