Hi,
I have a custom board with am3517, and I add pwm control on hardware, so I want to control the back-light, How to implement it by pwm in kernel and u-boot?
Thanks,
Kevin
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I have a custom board with am3517, and I add pwm control on hardware, so I want to control the back-light, How to implement it by pwm in kernel and u-boot?
Thanks,
Kevin
If you are using PWM capable GPIO then you will need to first enable the PWM in the kernel config.
Do browse through the kernel sources to see how different boards implement PWM-based backlight/GPIO controls.
According to my 7" LCD specification, I should set pwm to low to enable the LCD become high brightness.
In kernel 2.6.32, I changed some codes, and now my LCD can display.
@kernel/arch/arm/mach-omap2/board-am3517evm.c
@line 346
-------------------------from------------------------
gpio_direction_output(LCD_PANEL_PWM, 1);
--------------------------to-------------------------
gpio_direction_output(LCD_PANEL_PWM, 0);
Regards,