From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro Shimoda Date: Thu, 11 Sep 2008 21:00:13 +0900 Subject: [U-Boot] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit In-Reply-To: <19429512.post@talk.nabble.com> References: <18868090.post@talk.nabble.com> <29ab51dc0808071835u6248f23fyfc55165edf63497e@mail.gmail.com> <18887349.post@talk.nabble.com> <19411908.post@talk.nabble.com> <20080910211346.c79dbdc8.iwamatsu@nigauri.org> <48C87F9C.2080202@renesas.com> <19429512.post@talk.nabble.com> Message-ID: <48C9084D.3000807@renesas.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, thaoth. thaoth wrote: > > > Yoshihiro Shimoda wrote: >> Hi, thaoth. >> >> I think that your board cannot communicate with USB device at all. >> SH7727 has EXCPGCR register. Do you set this register? >> When I used this CPU before, I did the following setting. < snip > >> > Thank you very much, You are welcome :) > > 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. > >> STCBR3 = 0x18; >> > I couldn't see this register "STCBR3 ", I only saw STBCR3. Is it correct? Oh, I am sorry. That's correct. > But UBoot didn't work, Would you please tell me more detail ? > Thank you alot :) 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. And I used my board, I set 0x1500 in PKCR. Best regards, Yoshihiro Shimoda