login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
December
»
15
Re: GPIO support for HTC Dream
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?=
Subject:
Re: GPIO support for HTC Dream
Date: Monday, December 14, 2009 - 11:40 pm
On Mon, Dec 14, 2009 at 10:12 AM, H Hartley Sweeten <hartleys@visionengravers.com> wrote:
quoted text
> On Monday, December 14, 2009 10:55 AM, Daniel Walker wrote: >> On Mon, 2009-12-14 at 07:45 +0100, Pavel Machek wrote: >>> Hi! >>> >>>> This looks MUCH better! >>> >>> Thanks :-). >>> >>>>> arch/arm/Kconfig | 1 >>>>> arch/arm/mach-msm/board-dream-gpio.c | 327 +++++++++-------------------------- >>> ... >>>> Please update (or remove) this diffstat. It no longer matches the patch. >>> >>> I was just showing differences to _previous_ version, not what I was sending. >>> >>>> Ok. The hardware still seems a bit strange. Is there any datasheet >>>> available? >>> >>> I don't think there is one. Daniel, can you help here? >> >> I don't know if there is one or not (I'd guess not).. I can't release >> documents, but I could try to address specific questions or find people >> to answer specific questions. > > Hello Daniel, > > My specific question was about the gpio hardware registers. > > From Pavel's implementation it appears that the gpio's are organized as a > number of 8-bit ports. Each of these ports only have one 8-bit register. > Writing a '1' to a bit in the register makes the associated pin a high-level > output. Writing a '0' makes the pin a low-level output or an input pin. > Reading the port at this point will return the actual 'input' level of the pin. > > The hardware seems a bit strange and I just wanted to verify that this is > correct. If it is, this would explain the need to keep the 'shadow' contents > of the port in order to set the 'direction' of a pin. > > I was also wondering if the initial 'shadow' value needs to be written to the > port at init in order to correctly establish the output value for specific > pins. > > One other thing. Are the gpio's handled by Pavel's driver actually from the > MSM chip or from an external CPLD? The registers are all defined as: > > + .reg = reg_num + DREAM_CPLD_BASE, > > If they are external from the MSM chip this driver should probably be renamed > to something more appropriate since it is probably dream specific and not > generic to the msm architecture.
These are board specific gpios. I think it would be less confusing if the msm gpio support was added first. -- Arve Hjønnevåg --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 8, 3:28 am)
Re: GPIO support for HTC Dream
, Ryan Mallon
, (Tue Dec 8, 1:22 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 8, 2:37 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 8, 2:46 pm)
Re: GPIO support for HTC Dream
, Ryan Mallon
, (Tue Dec 8, 2:53 pm)
Re: GPIO support for HTC Dream
, =?ISO-8859-1?Q?Arve_ ...
, (Tue Dec 8, 2:56 pm)
Re: GPIO support for HTC Dream
, Joe Perches
, (Tue Dec 8, 3:03 pm)
Re: GPIO support for HTC Dream
, Ryan Mallon
, (Tue Dec 8, 3:10 pm)
Re: GPIO support for HTC Dream
, Russell King - ARM Linux
, (Tue Dec 8, 3:45 pm)
Re: GPIO support for HTC Dream
, =?ISO-8859-1?Q?Arve_ ...
, (Tue Dec 8, 5:39 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Wed Dec 9, 4:32 am)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Wed Dec 9, 4:37 am)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Wed Dec 9, 4:41 am)
Re: GPIO support for HTC Dream
, =?ISO-8859-1?Q?Arve_ ...
, (Wed Dec 9, 4:42 am)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Wed Dec 9, 4:46 am)
Re: GPIO support for HTC Dream
, Daniel Walker
, (Wed Dec 9, 9:18 am)
Re: GPIO support for HTC Dream
, Ryan Mallon
, (Wed Dec 9, 4:40 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Thu Dec 10, 9:26 am)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Thu Dec 10, 9:27 am)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Thu Dec 10, 9:57 am)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Thu Dec 10, 10:24 am)
Re: GPIO support for HTC Dream
, Mark Brown
, (Thu Dec 10, 10:41 am)
Re: GPIO support for HTC Dream
, Ryan Mallon
, (Thu Dec 10, 12:49 pm)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Thu Dec 10, 4:14 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Fri Dec 11, 12:58 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Fri Dec 11, 3:10 pm)
Re: GPIO support for HTC Dream
, =?ISO-8859-1?Q?Arve_ ...
, (Fri Dec 11, 3:40 pm)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Fri Dec 11, 4:04 pm)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Fri Dec 11, 4:12 pm)
Re: GPIO support for HTC Dream
, Russell King - ARM Linux
, (Fri Dec 11, 4:28 pm)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Fri Dec 11, 4:50 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Sun Dec 13, 2:29 pm)
Re: GPIO support for HTC Dream
, Brian Swetland
, (Sun Dec 13, 2:38 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Sun Dec 13, 11:24 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Sun Dec 13, 11:45 pm)
Re: GPIO support for HTC Dream
, Daniel Walker
, (Mon Dec 14, 10:40 am)
Re: GPIO support for HTC Dream
, Daniel Walker
, (Mon Dec 14, 10:54 am)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Mon Dec 14, 11:12 am)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Mon Dec 14, 12:00 pm)
Re: GPIO support for HTC Dream
, =?ISO-8859-1?Q?Arve_ ...
, (Mon Dec 14, 11:40 pm)
Re: GPIO support for HTC Dream
, =?ISO-8859-1?Q?Arve_ ...
, (Mon Dec 14, 11:48 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 12:09 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 12:10 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 12:12 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 12:47 pm)
Re: GPIO support for HTC Dream
, Daniel Walker
, (Tue Dec 15, 1:07 pm)
RE: GPIO support for HTC Dream
, H Hartley Sweeten
, (Tue Dec 15, 1:15 pm)
Re: GPIO support for HTC Dream
, Ryan Mallon
, (Tue Dec 15, 1:24 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 1:44 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 1:47 pm)
Re: GPIO support for HTC Dream
, Jamie Lokier
, (Tue Dec 15, 1:48 pm)
Re: GPIO support for HTC Dream
, Brian Swetland
, (Tue Dec 15, 2:07 pm)
[patch] GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 2:16 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Tue Dec 15, 2:21 pm)
Re: GPIO support for HTC Dream
, Pavel Machek
, (Wed Dec 16, 3:53 pm)
Re: GPIO support for HTC Dream
, Daniel Walker
, (Wed Dec 16, 4:03 pm)
Re: [patch] GPIO support for HTC Dream
, Pavel Machek
, (Fri Dec 25, 10:10 am)
Re: [patch] GPIO support for HTC Dream
, Daniel Walker
, (Fri Dec 25, 4:49 pm)
Re: [patch] GPIO support for HTC Dream
, Pavel Machek
, (Sat Dec 26, 1:51 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate