how modified mx53_loco.c for to have "Dual PWM"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how modified mx53_loco.c for to have "Dual PWM"

885 次查看
enaud
Contributor III

Hi all i'm using a pwm output for control backlight of my screen. I need to have 2 PWM and i saw  that mx53 has two pwm output.

In mx53_loco.c i have:

MX53_PAD_GPIO_1__PWM2_PWMO,

static struct platform_pwm_backlight_data mxc_pwm_backlight_data = {
.pwm_id = 1,
.max_brightness = 255,
.dft_brightness = 128,
.pwm_period_ns = 50000,
};

mxc_register_device(&mxc_pwm2_device, NULL);
mxc_register_device(&mxc_pwm1_backlight_device, &mxc_pwm_backlight_data);

and i have a pwm output and it work correctly..

how can I to have another pwm output?

thanks

标签 (1)
0 项奖励
3 回复数

611 次查看
FTO
Contributor I

As far as I have seen, the 1st PWM signal is not connected on the loco board.

If you derived your own board from loco, you probably have to set mux in the right configuration, add mxc_register_device(&mxc_pwm1_device, NULL) and probably to attach a driver to this pwm, like the "pwm-backlight" used here for the pwm2.

It is just a guess.

0 项奖励

611 次查看
enaud
Contributor III

you can help me pls in this post? How can I use key button to wake up system?

0 项奖励

611 次查看
enaud
Contributor III

nothing?

0 项奖励