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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,378件の閲覧回数
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 返答(返信)

1,104件の閲覧回数
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 件の賞賛
返信

1,104件の閲覧回数
enaud
Contributor III

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

0 件の賞賛
返信

1,104件の閲覧回数
enaud
Contributor III

nothing?

0 件の賞賛
返信