Re: [PATCH] Add OMAP Support for Generic PWM Devices using Dual-mode Timers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- From: "Grant Erickson" <marathon96@xxxxxxxxx>
To: "Hemanth V" <hemanthv@xxxxxx>
Cc: "Tony Lindgren" <tony@xxxxxxxxxxx>; <linux-omap@xxxxxxxxxxxxxxx>
Sent: Tuesday, November 16, 2010 11:15 PM
Subject: Re: [PATCH] Add OMAP Support for Generic PWM Devices using Dual-mode Timers



Boards can register such devices using platform data such as in the
following
example:

static struct omap2_pwm_platform_config pwm_config = {
    .timer_id           = 10,   // GPT10_PWM_EVT

Since only specific GPTs can be configured for PWM, can some check
we added in probe function?

Yes, that check is already present in the probe function:

   pwm->dm_timer = omap_dm_timer_request_specific(pdata->timer_id);

   if (pwm->dm_timer == NULL) {
       status = -ENOENT;
       goto err_free;
   }


Since only GPT8 to GPT11 can be configured for PWM output on OMAP3,
I was thinking if a suitable check can be added.

Thanks
Hemanth
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux