All of lore.kernel.org
 help / color / mirror / Atom feed
From: smunnings@gabaedevelopment.com (Stephen Munnings)
To: linux-arm-kernel@lists.infradead.org
Subject: AT91SAM9260: How to output PCK0 clock on a GPIO pin
Date: Mon, 31 Aug 2009 14:44:19 -0400	[thread overview]
Message-ID: <4A9C1A03.2050908@gabaedevelopment.com> (raw)
In-Reply-To: <bb8f28f395b9416e1c2b1877be6f3baf@colcan.ca>

Pedro I. Sanchez wrote:
>> But, I also found that you must have the PMC clock for the GPIOC bank 
>> running before GPIO (even the configuration, it seems) will work.
>> I am not sure if I had this issue in Linux, or only in the loaders, but 
>> I did have to turn on the PMC clocks to get any GPIO based things working.
>>     
>> The standard boot loader only seems to turn on GPIOA, but I am also 
>> using GPIOB and GPIOC, and I had to turn on the PMC clocks for those
>> also before I could get very far.
>>
>> Stephen Munnings
>>     
>
> Thanks Stephen,
>
> And how do I turn on the PMC clocks for the GPIO?
>
>   
I did some more searching, and it appears that Linux for at91 turns on 
all the GPIO PMC clocks as part
of its initialization.  So, the problem appears to not be the PMC clocks.
(It does it in /arch/arm/mach-at91/gpio.c in function at91_gpio_init() )

I do presume that you have the appropriate support configured into your 
kernel when you compiled it.

  reply	other threads:[~2009-08-31 18:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 15:32 AT91SAM9260: How to output PCK0 clock on a GPIO pin Pedro I. Sanchez
2009-08-31 16:58 ` Stephen Munnings
2009-08-31 18:27   ` Pedro I. Sanchez
2009-08-31 18:44     ` Stephen Munnings [this message]
2009-08-31 19:02       ` Pedro I. Sanchez
2009-08-31 19:13         ` Stephen Munnings
2009-08-31 19:21           ` Pedro I. Sanchez
2009-08-31 19:33     ` Sergey Matyukevich
2009-08-31 19:58       ` Stephen Munnings
2009-08-31 20:37         ` Pedro I. Sanchez
2009-08-31 20:44           ` Stephen Munnings
2009-08-31 21:09             ` Pedro I. Sanchez
2009-08-31 20:03       ` Pedro I. Sanchez
2009-08-31 20:33         ` Ryan Mallon
2009-08-31 20:46           ` Pedro I. Sanchez
2009-08-31 20:35         ` Sergey Matyukevich
2009-08-31 21:06           ` Pedro I. Sanchez

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=4A9C1A03.2050908@gabaedevelopment.com \
    --to=smunnings@gabaedevelopment.com \
    --cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.