From: Yeung <yc_matrix@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] pps: new client driver using GPIO
Date: Sun, 14 Apr 2013 15:12:40 +0000 (UTC) [thread overview]
Message-ID: <loom.20130414T165523-726@post.gmane.org> (raw)
In-Reply-To: <1310138846-1164-3-git-send-email-jamesnuss@nanometrics.ca>
Hi James,
I am a newbie to linux kernel device driver and would like to use this
client driver on my uClinux running on the NIOS2. Can you kindly point me to
the right direction, since I am using a device tree and believe this doesn't
support device tree, right? What do I need to add/modify so I can use a
input GPIO as a source? I saw a google post to add this code to (?? an
unknown) and then you need to call pps_init in the configuration routine (??
not sure what it mean)
add
/* PPS-GPIO platform data */
static struct pps_gpio_platform_data pps_gpio_info = {
.assert_falling_edge = false,
.capture_clear= false,
.gpio_pin=63,
.gpio_label="PPS",
};
static struct platform_device pps_gpio_device = {
.name = "pps-gpio",
.id = -1,
.dev = {
.platform_data = &pps_gpio_info
},
};
static void pps_init(int evm_id, int profile)
{
int err;
err = platform_device_register(&pps_gpio_device);
if (err) {
pr_warning("Could not register PPS_GPIO device");
}
}
Thanks in advance for any help,
Yeung
prev parent reply other threads:[~2013-04-14 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-08 15:27 [PATCH v3 0/2] New PPS " James Nuss
2011-07-08 15:27 ` [PATCH v3 1/2] pps: default echo function James Nuss
2011-07-08 15:27 ` [PATCH v3 2/2] pps: new client driver using GPIO James Nuss
2013-04-14 15:12 ` Yeung [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20130414T165523-726@post.gmane.org \
--to=yc_matrix@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®