From: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 3/6] Add USB support for SH7724
Date: Thu, 16 Apr 2009 01:12:20 +0000 [thread overview]
Message-ID: <49E685F4.2030801@renesas.com> (raw)
In-Reply-To: <uzlej1ubl.wl%morimoto.kuninori@renesas.com>
Hi Magnus-san,
Magnus Damm wrote:
> Hi again Morimoto-san,
>
> [CC Shimoda-san]
>
> On Wed, Apr 15, 2009 at 8:49 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> On Wed, Apr 15, 2009 at 11:42 AM, Kuninori Morimoto
>> <morimoto.kuninori@renesas.com> wrote:
>>> +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
>
>>> +#define UPONCR0 0xa40501d4
>>> +#define UPONCR1 0xa4050192
>>> +#define USBPOWERON 0x0600
>>> +static void __init sh7724_usb_setup(void)
>>> +{
>>> + /*
>>> + * USB initial settings
>>> + *
>>> + * The following settings are necessary
>>> + * for using the USB modules.
>>> + *
>>> + * see "USB Inital Settings" for detail
>>> + */
>>> + __raw_writew(USBPOWERON , UPONCR0);
>>> + __raw_writew(USBPOWERON , UPONCR1);
>>> +}
>> Hm... In the future we want to control the above dynamically for
>> better power savings. I guess it's ok as-is for now.
>
> Looking a bit in r8a66597.h, I wonder if USBPOWERON is similar to
> VBOUT that is present in DVSTCR on external devices?
I also think UPONCR register control port power. I think this register
differ from SH7786.
I will modify the r8a66597 driver and be able to control those registers
with r8a66597's ops. It's like a sh_mobile_lcdcfb's display_on function. :)
Thanks,
Yoshihiro Shimoda
next prev parent reply other threads:[~2009-04-16 1:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 8:25 [PATCH 3/6] Add USB support for SH7724 Kuninori Morimoto
2009-04-15 2:42 ` Kuninori Morimoto
2009-04-15 11:49 ` Magnus Damm
2009-04-15 12:12 ` Paul Mundt
2009-04-15 12:16 ` Magnus Damm
2009-04-16 0:41 ` Kuninori Morimoto
2009-04-16 1:05 ` Paul Mundt
2009-04-16 1:12 ` Yoshihiro Shimoda [this message]
2009-04-16 2:46 ` Kuninori Morimoto
2009-04-16 2:46 ` Kuninori Morimoto
2009-04-16 4:26 ` Kuninori Morimoto
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=49E685F4.2030801@renesas.com \
--to=shimoda.yoshihiro@renesas.com \
--cc=linux-sh@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