public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address
@ 2008-09-15  3:48 Cuong Dang Phu
  2008-09-15  9:27 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Cuong Dang Phu @ 2008-09-15  3:48 UTC (permalink / raw)
  To: linux-sh

Hi,

We are working for an embedded software company, for R&D purpose, we are 
porting Linux on T-Engine/SH7727 (MS7727CP02) Development Kit. The first step 
we do is: define physical memory and peripherals (in this file: \include\asm-
sh\se7727.h), but we have some difficult:
	a. We can’t understand many symbols: I show you a list I get form Linux 
kernel 2.6.22.11 for se7720:
 
#define PA_PCIC         PA_PERIPHERAL   		/* MR-SHPC-01 PCMCIA */
#define PA_MRSHPC       (PA_PERIPHERAL + 0x003fffe0)    /* MR-SHPC-01 PCMCIA 
controller */
#define PA_MRSHPC_MW1   (PA_PERIPHERAL + 0x00400000)    /* MR-SHPC-01 memory 
window base */
#define PA_MRSHPC_MW2   (PA_PERIPHERAL + 0x00500000)    /* MR-SHPC-01 attribute 
window base */
#define PA_MRSHPC_IO    (PA_PERIPHERAL + 0x00600000)    /* MR-SHPC-01 I/O 
window base */
#define MRSHPC_OPTION   (PA_MRSHPC + 6)
#define MRSHPC_CSR      (PA_MRSHPC + 8)
#define MRSHPC_ISR      (PA_MRSHPC + 10)
#define MRSHPC_ICR      (PA_MRSHPC + 12)
#define MRSHPC_CPWCR    (PA_MRSHPC + 14)
#define MRSHPC_MW0CR1   (PA_MRSHPC + 16)
#define MRSHPC_MW1CR1   (PA_MRSHPC + 18)
#define MRSHPC_IOWCR1   (PA_MRSHPC + 20)
#define MRSHPC_MW0CR2   (PA_MRSHPC + 22)
#define MRSHPC_MW1CR2   (PA_MRSHPC + 24)
#define MRSHPC_IOWCR2   (PA_MRSHPC + 26)
#define MRSHPC_CDCR     (PA_MRSHPC + 28)
#define MRSHPC_PCIC_INFO (PA_MRSHPC + 30)

#define PA_FPGA		0xB7000000 	/* FPGA base address */

#define MRSHPC_IRQ0    	14

#define FPGA_ILSR1	(PA_FPGA + 0x02)
#define FPGA_ILSR2	(PA_FPGA + 0x03)
#define FPGA_ILSR3	(PA_FPGA + 0x04)
#define FPGA_ILSR4	(PA_FPGA + 0x05)
#define FPGA_ILSR5	(PA_FPGA + 0x06)
#define FPGA_ILSR6	(PA_FPGA + 0x07)
#define FPGA_ILSR7	(PA_FPGA + 0x08)
#define FPGA_ILSR8	(PA_FPGA + 0x09)
 
	b. We don’t know how to define these sysbols.

Best regards,
Cuong Dang Phu



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit
  2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
@ 2008-09-15  9:27 ` Nobuhiro Iwamatsu
  2008-09-15 10:43 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres Cuong Dang Phu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-09-15  9:27 UTC (permalink / raw)
  To: linux-sh

Hi ,

On Mon, 15 Sep 2008 03:48:21 +0000 (UTC)
Cuong Dang Phu <cuongdp@Cybersoft-VN.com> wrote:

> Hi,
> 
> We are working for an embedded software company, for R&D purpose, we are 
> porting Linux on T-Engine/SH7727 (MS7727CP02) Development Kit. The first step 
> we do is: define physical memory and peripherals (in this file: \include\asm-
> sh\se7727.h), but we have some difficult:
> 	a. We can’t understand many symbols: I show you a list I get form Linux 
> kernel 2.6.22.11 for se7720:
>  
> #define PA_PCIC         PA_PERIPHERAL   		/* MR-SHPC-01 PCMCIA */
> #define PA_MRSHPC       (PA_PERIPHERAL + 0x003fffe0)    /* MR-SHPC-01 PCMCIA 
> controller */
> #define PA_MRSHPC_MW1   (PA_PERIPHERAL + 0x00400000)    /* MR-SHPC-01 memory 
> window base */
> #define PA_MRSHPC_MW2   (PA_PERIPHERAL + 0x00500000)    /* MR-SHPC-01 attribute 
> window base */
> #define PA_MRSHPC_IO    (PA_PERIPHERAL + 0x00600000)    /* MR-SHPC-01 I/O 
> window base */
> #define MRSHPC_OPTION   (PA_MRSHPC + 6)
> #define MRSHPC_CSR      (PA_MRSHPC + 8)
> #define MRSHPC_ISR      (PA_MRSHPC + 10)
> #define MRSHPC_ICR      (PA_MRSHPC + 12)
> #define MRSHPC_CPWCR    (PA_MRSHPC + 14)
> #define MRSHPC_MW0CR1   (PA_MRSHPC + 16)
> #define MRSHPC_MW1CR1   (PA_MRSHPC + 18)
> #define MRSHPC_IOWCR1   (PA_MRSHPC + 20)
> #define MRSHPC_MW0CR2   (PA_MRSHPC + 22)
> #define MRSHPC_MW1CR2   (PA_MRSHPC + 24)
> #define MRSHPC_IOWCR2   (PA_MRSHPC + 26)
> #define MRSHPC_CDCR     (PA_MRSHPC + 28)
> #define MRSHPC_PCIC_INFO (PA_MRSHPC + 30)

There symbols are for PCMCIA controller .
SE7727 has Marubun PCMCIA controller(MR-SHPC-01).
> 
> #define PA_FPGA		0xB7000000 	/* FPGA base address */
> 
> #define MRSHPC_IRQ0    	14
> 
> #define FPGA_ILSR1	(PA_FPGA + 0x02)
> #define FPGA_ILSR2	(PA_FPGA + 0x03)
> #define FPGA_ILSR3	(PA_FPGA + 0x04)
> #define FPGA_ILSR4	(PA_FPGA + 0x05)
> #define FPGA_ILSR5	(PA_FPGA + 0x06)
> #define FPGA_ILSR6	(PA_FPGA + 0x07)
> #define FPGA_ILSR7	(PA_FPGA + 0x08)
> #define FPGA_ILSR8	(PA_FPGA + 0x09)
>  
> 	b. We don’t know how to define these sysbols.
SE7727 has Interrput controller on FPGA.
These symbols are written in the manual. 

I think that You may not worry about these, maybe.

Best regards,
 Nobuhiro
-- 
Nobuhiro Iwamatsu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres
  2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
  2008-09-15  9:27 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
@ 2008-09-15 10:43 ` Cuong Dang Phu
  2008-09-15 10:51 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Cuong Dang Phu @ 2008-09-15 10:43 UTC (permalink / raw)
  To: linux-sh


Hi, Nobuhiro

> 
> There symbols are for PCMCIA controller .
> SE7727 has Marubun PCMCIA controller(MR-SHPC-01).
> > ........
> SE7727 has Interrput controller on FPGA.

Now, I had basic know basic knowledge about PCMCIA and FPGA

> These symbols are written in the manual. 
> .....

i have three documents: 
    SH7727 Group Hardware Manual.
    T-Kernel/SE Standard device driver for T-Engine/SH7727 Installation Manual.
    Hitachi SuperH™ RISC engine SH-3/SH-3E/SH3-DSP Programming Manual.
But i can't find those symbols. 

I’m a young man and i don’t know Japan Language, if I make mistake, please 
forgiving me and help me to understand it. Thank you very much.

Best regards,
Cuong Dang Phu





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit
  2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
  2008-09-15  9:27 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
  2008-09-15 10:43 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres Cuong Dang Phu
@ 2008-09-15 10:51 ` Nobuhiro Iwamatsu
  2008-09-16  9:53 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres Cuong Dang Phu
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-09-15 10:51 UTC (permalink / raw)
  To: linux-sh

Hi,

On Mon, 15 Sep 2008 10:43:38 +0000 (UTC)
Cuong Dang Phu <cuongdp@Cybersoft-VN.com> wrote:

> 
> Hi, Nobuhiro
> 
> > 
> > There symbols are for PCMCIA controller .
> > SE7727 has Marubun PCMCIA controller(MR-SHPC-01).
> > > ........
> > SE7727 has Interrput controller on FPGA.
> 
> Now, I had basic know basic knowledge about PCMCIA and FPGA
> 
> > These symbols are written in the manual. 
> > .....
> 
> i have three documents: 
>     SH7727 Group Hardware Manual.
>     T-Kernel/SE Standard device driver for T-Engine/SH7727 Installation Manual.
The manual of T-Engine and the manual of Solution Engine are 
different. 
Moreover, it doesn't serve as a reference so much because the kind of 
the board is also different. 

>     Hitachi SuperH™ RISC engine SH-3/SH-3E/SH3-DSP Programming Manual.
> But i can't find those symbols. 
Sorry, Manual is SE7727's manual.
These are not written in the manual of CPU. 


> 
> I’m a young man and i don’t know Japan Language, if I make mistake, please 
> forgiving me and help me to understand it. Thank you very much.
No Problem.

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres
  2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
                   ` (2 preceding siblings ...)
  2008-09-15 10:51 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
@ 2008-09-16  9:53 ` Cuong Dang Phu
  2008-09-18  1:23 ` Nobuhiro Iwamatsu
  2008-09-18  6:41 ` Cuong Dang Phu
  5 siblings, 0 replies; 7+ messages in thread
From: Cuong Dang Phu @ 2008-09-16  9:53 UTC (permalink / raw)
  To: linux-sh

Hi, Nobuhiro

> Sorry, Manual is SE7727's manual.
> These are not written in the manual of CPU. 

I found this document: SH7727 T-Engine Board 取扱説明書(MS7727CP02), and I 
think it is manual which you told me. But it is Japan version, do you have 
English version?

Thank for you help,

Best regards,
Cuong Dang  





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres
  2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
                   ` (3 preceding siblings ...)
  2008-09-16  9:53 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres Cuong Dang Phu
@ 2008-09-18  1:23 ` Nobuhiro Iwamatsu
  2008-09-18  6:41 ` Cuong Dang Phu
  5 siblings, 0 replies; 7+ messages in thread
From: Nobuhiro Iwamatsu @ 2008-09-18  1:23 UTC (permalink / raw)
  To: linux-sh

Hi,

2008/9/16 Cuong Dang Phu <cuongdp@cybersoft-vn.com>:
> Hi, Nobuhiro
>
>> Sorry, Manual is SE7727's manual.
>> These are not written in the manual of CPU.
>
> I found this document: SH7727 T-Engine Board 取扱説明書(MS7727CP02), and I
> think it is manual which you told me. But it is Japan version, do you have
> English version?

I miss-writed.

The macro that you mind is a thing of Solution Engine 7720.
And the board which you develop is SH7727 T-Engine Board.
These are totally different boards. I think that I do not serve as a
reference very much.

If you want to know the macrocontents which you point out by the first email ,
you need get a manual of *Solution Engine 7720*.

This point doesn't write in SH7727 T-Engine Board and SH7727 CPU of manual.

Best regards,
 Nobuhiro

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres
  2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
                   ` (4 preceding siblings ...)
  2008-09-18  1:23 ` Nobuhiro Iwamatsu
@ 2008-09-18  6:41 ` Cuong Dang Phu
  5 siblings, 0 replies; 7+ messages in thread
From: Cuong Dang Phu @ 2008-09-18  6:41 UTC (permalink / raw)
  To: linux-sh


Hi Nobuhiro

 
> The macro that you mind is a thing of Solution Engine 7720.
> And the board which you develop is SH7727 T-Engine Board.
> These are totally different boards. I think that I do not serve as a
> reference very much.
> 
> If you want to know the macrocontents which you point out by the first email ,
> you need get a manual of *Solution Engine 7720*.
> 
> This point doesn't write in SH7727 T-Engine Board and SH7727 CPU of manual.
> 

You are right, the board which I develop is SH7727 T-Engine Board and we use 
Solution Engine 7720 as an example. I understood you idea, and now, I think I 
can understand things which I wrote in the first email. 

Thank you very much
Cuong Dang







^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-09-18  6:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15  3:48 Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory address Cuong Dang Phu
2008-09-15  9:27 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
2008-09-15 10:43 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres Cuong Dang Phu
2008-09-15 10:51 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit Nobuhiro Iwamatsu
2008-09-16  9:53 ` Linux 2.6.22.11 on T-Engine/SH7727 (MS7727CP02) Development Kit - Mapping physical memory addres Cuong Dang Phu
2008-09-18  1:23 ` Nobuhiro Iwamatsu
2008-09-18  6:41 ` Cuong Dang Phu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox