-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sh: Add SH7785 Highlander board support (R7785RP).
This adds preliminary support for the SH7785-based Highlander board. Some of the Highlander support code is reordered so that most of it can be reused directly. This also plugs in missing SH7785 checks in the places that need it, as this is the first board to support the CPU. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
- Loading branch information
Paul Mundt
authored and
Paul Mundt
committed
May 7, 2007
1 parent
be782df
commit 32351a2
Showing
27 changed files
with
1,896 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
if SH_R7780RP | ||
if SH_HIGHLANDER | ||
|
||
menu "R7780RP options" | ||
choice | ||
prompt "Highlander options" | ||
default SH_R7780MP | ||
|
||
config SH_R7780RP | ||
bool "R7780RP-1 board support" | ||
select CPU_SUBTYPE_SH7780 | ||
|
||
config SH_R7780MP | ||
bool "R7780MP board support" | ||
default y | ||
select CPU_SUBTYPE_SH7780 | ||
help | ||
Selecting this option will enable support for the mass-production | ||
version of the R7780RP. If in doubt, say Y. | ||
|
||
endmenu | ||
config SH_R7785RP | ||
bool "R7785RP board support" | ||
select CPU_SUBTYPE_SH7785 | ||
|
||
endchoice | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# Makefile for the R7780RP-1 specific parts of the kernel | ||
# | ||
|
||
obj-y := setup.o irq.o | ||
|
||
irqinit-y := irq-r7780rp.o | ||
irqinit-$(CONFIG_SH_R7785RP) := irq-r7785rp.o | ||
obj-$(CONFIG_PUSH_SWITCH) += psw.o | ||
obj-y := setup.o irq.o $(irqinit-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Renesas Solutions Highlander R7780RP-1 Support. | ||
* | ||
* Copyright (C) 2002 Atom Create Engineering Co., Ltd. | ||
* Copyright (C) 2006 Paul Mundt | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#include <linux/init.h> | ||
#include <asm/io.h> | ||
#include <asm/r7780rp.h> | ||
|
||
void __init highlander_init_irq(void) | ||
{ | ||
int i; | ||
|
||
for (i = 0; i < 15; i++) | ||
make_r7780rp_irq(i); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Renesas Solutions Highlander R7780RP-1 Support. | ||
* | ||
* Copyright (C) 2002 Atom Create Engineering Co., Ltd. | ||
* Copyright (C) 2006 Paul Mundt | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#include <linux/init.h> | ||
#include <asm/io.h> | ||
#include <asm/r7780rp.h> | ||
|
||
void __init highlander_init_irq(void) | ||
{ | ||
ctrl_outw(0x0000, PA_IRLSSR1); /* FPGA IRLSSR1(CF_CD clear) */ | ||
|
||
/* Setup the FPGA IRL */ | ||
ctrl_outw(0x0000, PA_IRLPRA); /* FPGA IRLA */ | ||
ctrl_outw(0xe598, PA_IRLPRB); /* FPGA IRLB */ | ||
ctrl_outw(0x7060, PA_IRLPRC); /* FPGA IRLC */ | ||
ctrl_outw(0x0000, PA_IRLPRD); /* FPGA IRLD */ | ||
ctrl_outw(0x4321, PA_IRLPRE); /* FPGA IRLE */ | ||
ctrl_outw(0x0000, PA_IRLPRF); /* FPGA IRLF */ | ||
|
||
make_r7780rp_irq(1); /* CF card */ | ||
make_r7780rp_irq(10); /* On-board ethernet */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.