Skip to content

Commit

Permalink
rockchip-tpl: turn off pmic gpio (green led on roc-rk3328-cc)
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Lu <luke.lu@libretech.co>
  • Loading branch information
Da Xue authored and Da Xue committed Aug 20, 2024
1 parent 80ac934 commit 94a634a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm/mach-rockchip/tpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,14 @@ void buck1_set_value(int vol)
rk805_write(0x2f, (uint8_t *)&vol, 1);
}

void rk805_out_led_ctrl(bool enable)
{
int mask = 0x3;
int val = enable ? 0x0 : 0x1;

buck1_clrsetbits(0x52, mask, val);
}

#endif

void board_init_f(ulong dummy)
Expand Down Expand Up @@ -616,6 +624,8 @@ void board_init_f(ulong dummy)

/* set buck1 to 1.2v which is VDD_LOG */
buck1_set_value(0x27);

rk805_out_led_ctrl(0);
#endif

ret = uclass_get_device(UCLASS_RAM, 0, &dev);
Expand Down

0 comments on commit 94a634a

Please sign in to comment.