[linux-sh:03328] Re: new board for 2.6.8.1

[email protected] Thu, 30 Sep 2004 15:54:23 +0900
Newsgroups gmane.linux.ports.sh.general,gmane.linux.ports.sh.devel
Message-ID <E72207F23E63B946ABC48F66E52D066D01E88645@exchange1.intranet.interface.co.jp>
Dear Paul-san:
Thank you very much for checking my codes.
I appreciate your help.

>> 	* arch/sh/boards/sh03/led.c: New file.
>
>For starters, the led.c code should be made conditional on 
>CONFIG_HEARTBEAT in
>arch/sh/boards/sh03/Makefile. This then allows for 
>CONFIG_HEARTBEAT to be
>removed from the led.c code. Additionally, mach_led() can go 
>away entirely,
>since nothing is actually using it.

I modified arch/sh/boards/sh03/led.c
 and arch/sh/boards/sh03/Makefile following your instructions.

>> 	* arch/sh/boards/sh03/pci.c: New file.
>
>This should be moved to arch/sh/drivers/pci/ops-sh03.c, with 
>the proper entry
>added to arch/sh/drivers/pci/Makefile.

I moved arch/sh/boards/sh03/pci.c to arch/sh/drivers/pci/ops-sh03.c
and added it to arch/sh/drivers/pci/Makefile.

>> 	* arch/sh/drivers/pci/pci-sh7751.c: Add CTP/PCI-SH03 support.
>
>This irq routing should likewise be done in 
>arch/sh/drivers/pci/ops-sh03.c,
>implemented as pcibios_map_platform_irq(). See the RTS7751R2D 
>code for an
>example of how to do this.

I implemented the irq routing to arch/sh/drivers/pci/ops-sh03.c
 as pcibios_map_platform_irq().
Since CTP/PCI-SH03 uses dev->bus->number in the irq routing, 
I added pci_dev *dev to the parameter of pcibios_map_platform_irq()
 in #ifdef  CONFIG_SH_SH03.

>Also, please add your board to arch/sh/tools/mach-types.

I added SH03 to arch/sh/tools/mach-types.

Please refer to the following URL for the results of these changes. 
<URL:
http://www12.ocn.ne.jp/~ifpublib/sh-linux/ctp-sh03-20040930.patch.bz2>

------
Saito.K