public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: thaoth <thaoth@cybersoft-vn.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit
Date: Thu, 11 Sep 2008 22:46:00 -0700 (PDT)	[thread overview]
Message-ID: <19449833.post@talk.nabble.com> (raw)
In-Reply-To: <48C9084D.3000807@renesas.com>


Hi,

> 
> Following your instruction, I did
> int usb_board_init(void)
> {
>     printf("usb_board_init\n");
> 
>     outw(0x18, STBCR3);
>     outw(0x18, SRSTR);
>     udelay(10);
> 
>     outw(0x28, EXCPGCR);
>     udelay(10);
> 	
>     outw(0x00, STBCR3);
>     outw(0x00, SRSTR);
>     return 0;
> }

>> These registers are 8-bit width. So please use outb() macro.
They are the same. It is still problem.

> I am sorry, my explanation was short. This EXCPGCR value was for an
> another board.
> In the case of your board, it may be necessary to make it a defferent
> value.
As specification of SH7727, value of EXCPGCR is 0x28 and this means

""
The SH7727 has an on-chip USB interface (USB) which requires a fixed 48-MHz
clock source.

The extend clock pulse generator (EXCPG) generates a divided clock from the
internal clock (I?),
the bus clock (B?), or the external clock (UCLK).

Because the clock sources, which can be a candidate to be used by EXCPG,
vary from CPG
setting or external clock source, user of SH7727 must adjust the divided
clock, carefully to be 48
MHz.
""
* Bits 5 to 3?Clock Select (USBCKSEL2 to USBCKSEL0):
000: Peripheral Clock (P?) (Initial value)
100: Internal Clock (I?)
101: Bus Clock (B?)
110: External clock (UCLK)
***: Another value Reserved (setting prohibited)

* Bits 2 to 0?: Divider Select (USBDIVSEL2 to USBDIVSEL0):
000: 1/1 -> Dividing Ratio Selection
001: 1/2
010: 1/3
1**: Internal clock (I?), bus clock (B?), external clock (UCLK) halted

0x28: 00101000 -> 00 101 000 -> 
* 101: Using bus clock
* 000: Dividing Ratio Selection is 1/1

I know 
* Internal clock: 96Mhz
* Peripheral Clock: 24Mhz
* CPU Block: 144Mhz

http://www.nabble.com/file/p19449833/a.JPG a.JPG 

Please let me know the correct value of EXCPGCR ? Is 0x28 correct initialize
value of USB clock?

> And I used my board, I set 0x1500 in PKCR.
I don't understand PKCR - Port control register so I don't know correct
initialize value of this register.

0x1500 = 0001 0101 0000 0000
-> PK6 is port output
-> PK5 is port output
-> PK4 is port output
I don't know this value could be set for my board - TEngine/SH7727.

I am appreciating your helping :)

-- 
View this message in context: http://www.nabble.com/-T-Engine--UBoot-configuration-for-T-Engine-SH7727-MS7727CP02-DevKit-tp18868090p19449833.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

  reply	other threads:[~2008-09-12  5:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07 11:03 [U-Boot-Users] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit thaoth
2008-08-08  1:35 ` Nobuhiro Iwamatsu
2008-08-08  7:51   ` thaoth
2008-08-08  8:59     ` Nobuhiro Iwamatsu
2008-08-20  4:02       ` [U-Boot] " thaoth
2008-08-20  7:40         ` Nobuhiro Iwamatsu
2008-08-21  7:26           ` thaoth
2008-08-21  9:54             ` thaoth
2008-08-21 11:27               ` thaoth
2008-09-03  3:48           ` thaoth
2008-09-10 11:51       ` thaoth
2008-09-10 12:13         ` Nobuhiro Iwamatsu
2008-09-11  2:17           ` Yoshihiro Shimoda
2008-09-11  7:41             ` thaoth
2008-09-11 12:00               ` Yoshihiro Shimoda
2008-09-12  5:46                 ` thaoth [this message]
2008-09-12  6:44                   ` Yoshihiro Shimoda
2008-09-12 10:05                     ` thaoth
2008-09-12 10:53                       ` Yoshihiro Shimoda
2008-09-12 10:58                         ` thaoth

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=19449833.post@talk.nabble.com \
    --to=thaoth@cybersoft-vn.com \
    --cc=u-boot@lists.denx.de \
    /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