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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,373 Views
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

Labels (1)
0 Kudos
Reply
3 Replies

1,099 Views
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 Kudos
Reply

1,099 Views
enaud
Contributor III

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

0 Kudos
Reply

1,099 Views
enaud
Contributor III

nothing?

0 Kudos
Reply