linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <herman516@totalbb.net.tw>
To: linux-omap@vger.kernel.org
Subject: About 1-Wire driver of OMAP4
Date: Mon, 10 Dec 2012 09:54:40 +0800	[thread overview]
Message-ID: <04b23e3459eb3657ab313de044c95c22@127.0.0.1> (raw)

Hi,

I implemented gas gauge driver by 1-Wire interface in OMAP4 CPU, the
driver we used is a GPIO pin to simulate 1-Wire bus but it sometimes can't
work well of timing issue. So we want to use HDQ/1Wire controller in OMAP4,
does anyone have experience of OMAP4 1-Wire driver of using its controller?
Our gas gauge is DS2780 and we use "android-omap-3.0" kernel branch. I
tried to do below steps but it still can't work. Or do you have any
suggestion? Thanks.

1. Add hwmod of hdq1w in omap_hwmod_44xx_data.c file
2. Use omap_hdq.c file
3. Select "CONFIG_HDQ_MASTER_OMAP", "CONFIG_W1", "CONFIG_HDQ_MASTER_OMAP"
and "CONFIG_BATTERY_DS2780" in menuconfig.


Regards,
Herman

             reply	other threads:[~2012-12-10  2:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10  1:54 herman516 [this message]
2012-12-17 23:21 ` About 1-Wire driver of OMAP4 Paul Walmsley
2012-12-18 13:47   ` HermanMao(毛宏仁)

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=04b23e3459eb3657ab313de044c95c22@127.0.0.1 \
    --to=herman516@totalbb.net.tw \
    --cc=linux-omap@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;
as well as URLs for NNTP newsgroup(s).