linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Miao <eric.y.miao@gmail.com>
To: Jaya Kumar <jayakumar.lkml@gmail.com>
Cc: ymiao3@marvell.com, linux-fbdev-devel@lists.sourceforge.net,
	linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: [RFC 2.6.26-rc3 06/10] gumstix: conversion to MFP support and add bluetooth support
Date: Mon, 16 Jun 2008 10:21:45 +0800	[thread overview]
Message-ID: <4855CE39.2090702@gmail.com> (raw)
In-Reply-To: <45a44e480806142251x61462e2ft839332de6c2fbe1c@mail.gmail.com>

Jaya Kumar wrote:
> On Thu, Jun 12, 2008 at 10:01 PM, Eric Miao <eric.y.miao@gmail.com> wrote:
>> Jaya Kumar wrote:
>>
>> I'd suggest we use
>>
>> #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
>>
>> so that even when PXA MMCI is built as a module, the platform data
>> is still available for later bind. Same below to the BT.
> 
> Yup, there are problems with my assumptions there. I see Russell's
> point that gpio setup shouldn't depend on whether the driver is
> enabled or not. I wasn't sure if all gumstix-F's had MMC and BT on
> those gpio's so I tried to hedge that with CONFIG options. It looks
> like it is safe to remove the CONFIG so I'll change that over.
> 
>> The 32KHz oscillator should be on by default, so I'm thinking of:
>>
>> 1. remove this clock source
>>
>> or
>>
>> 2. enable/disable the clk by enable/disable the pin configuration
>> (i.e. switch between GPIO12_32KHz and GPIO12_GPIO)
> 
> Ok. I'll go read up and try to solve this. I think I put the enable in
> there because it initially didn't work on my setup. I saw that the
> gumstix bluetooth startup script S30bluetooth was manually tweaking
> that using the pxaregs proc_gpio patch.
> 
>         echo -n "Starting 32kHz clock..."
>         /usr/sbin/pxaregs OSCC_OON 1
>         while /usr/sbin/pxaregs OSCC_OOK | tail -n 1 | grep -q -v 1;do
>                 echo -n '.'
>                 sleep 1
>         done
>         echo "Settled"
> 
> From the gumstix faq:
> http://docwiki.gumstix.org/Frequently_asked_questions/Bluetooth
> The new bluetooth module needs a 32Khz clock signal to be fed to the
> module from the PXA by setting one of the GPIO lines to a special alt
> function mode, and enabling the OSCC on the PXA. This is done properly
> by the u-boot in the latest buildroot revisions, (as of Jan 27, 2006)
> and double-checked by the latest bluetooth startup scripts in the
> buildroot using pxaregs to ensure that the clock is in fact ticking
> before attempting to talk to the BT module.
> 

OK, so I assume with the latest u-boot (I mean after Jan 27, 2006), it
should boot up with 32KHz timer enabled, and you don't really need to
enable OSCC by default, right? Or would you be kind enough to test that
out?

You see, I'm a bit conservative to add clk support for 32KHz timer in
the kernel, as that should be started earlier, most suitable place will
be in the boot loader. If this doesn't work, we have to work it out in
another way.

>> As said, the 32K timer should really be started on the very begining,
>> I'd prefer a some kind of warning here if OSCC_OOK isn't set.
> 
> Ok, I'll fix this.
> 
>>> +
>>> +static void clk_32k_disable(struct clk *clk)
>>> +{
>>> +     OSCC &= ~OSCC_OON;
>>> +}
>>> +
>> The 32K timer cannot be disabled once started, until a power-on or
>> hardware reset occurs.
> 
> Ok, I'll take this out.
> 
> Thanks,
> jaya


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

  reply	other threads:[~2008-06-16  2:22 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12 16:59 [RFC 2.6.26-rc3 0/10] am200epd, pxafb, metronomefb changes v4 Jaya Kumar
2008-06-12 16:59 ` [RFC 2.6.26-rc3 01/10] pxafb: fix ifdef for command line option handling Jaya Kumar
     [not found]   ` <20080612203541.0baa5586.krzysztof.h1@poczta.fm>
2008-06-13  1:22     ` Eric Miao
2008-06-13  7:37   ` Russell King - ARM Linux
2008-06-12 16:59 ` [RFC 2.6.26-rc3 02/10] pxafb: cleanup and fix order of failure handling Jaya Kumar
2008-06-12 18:36   ` Krzysztof Helt
2008-06-13  1:23     ` Eric Miao
2008-06-13  7:37   ` Russell King - ARM Linux
2008-06-12 16:59 ` [RFC 2.6.26-rc3 03/10] pxafb: fix __devinit/exit annotations Jaya Kumar
2008-06-12 18:36   ` [Linux-fbdev-devel] " Krzysztof Helt
2008-06-13  1:24     ` Eric Miao
2008-06-13  7:38   ` Russell King - ARM Linux
2008-06-12 16:59 ` [RFC 2.6.26-rc3 04/10] pxafb: add exit and remove handlers Jaya Kumar
2008-06-12 18:37   ` [Linux-fbdev-devel] " Krzysztof Helt
2008-06-13  1:24   ` Eric Miao
2008-06-13  7:39   ` Russell King - ARM Linux
2008-06-12 16:59 ` [RFC 2.6.26-rc3 05/10] pxafb: add shared framebuffer interface Jaya Kumar
2008-06-15  6:26   ` [Linux-fbdev-devel] " Krzysztof Helt
2008-06-15  6:49     ` Jaya Kumar
2008-06-12 16:59 ` [RFC 2.6.26-rc3 06/10] gumstix: conversion to MFP support and add bluetooth support Jaya Kumar
2008-06-13  2:01   ` Eric Miao
2008-06-15  5:51     ` Jaya Kumar
2008-06-16  2:21       ` Eric Miao [this message]
2008-07-04  5:01         ` Jaya Kumar
2008-07-08  0:52     ` Jaya Kumar
2008-06-13  7:42   ` Russell King - ARM Linux
2008-06-15  5:54     ` Jaya Kumar
2008-07-31  9:04   ` Andrew Morton
2008-06-12 16:59 ` [RFC 2.6.26-rc3 07/10] am200epd: move am200epd to mach-pxa Jaya Kumar
2008-06-13  2:12   ` Eric Miao
2008-06-15  6:23     ` Jaya Kumar
2008-06-16  2:29       ` Eric Miao
2008-06-12 16:59 ` [RFC 2.6.26-rc3 08/10] am200epd: convert to shared fb and use gpio api Jaya Kumar
2008-06-13  2:20   ` Eric Miao
2008-06-15  6:42     ` Jaya Kumar
2008-06-16  2:35       ` Eric Miao
2008-07-08 12:43         ` Jaya Kumar
2008-06-12 16:59 ` [RFC 2.6.26-rc3 09/10] metronomefb: convert printk to dev_dbg/err messages Jaya Kumar
2008-06-13  2:22   ` Eric Miao
2008-06-12 16:59 ` [RFC 2.6.26-rc3 10/10] metronomefb: changes to use separate framebuffer Jaya Kumar
  -- strict thread matches above, loose matches on Subject: below --
2008-07-31  9:59 [RFC 2.6.26-rc3 06/10] gumstix: conversion to MFP support and add bluetooth support krzysztof.h1
2008-07-31 10:45 ` Jaya Kumar

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=4855CE39.2090702@gmail.com \
    --to=eric.y.miao@gmail.com \
    --cc=jayakumar.lkml@gmail.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=ymiao3@marvell.com \
    /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).