Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36299
b: refs/heads/master
c: 51e22e7
h: refs/heads/master
i:
  36297: abdf48d
  36295: cf90f20
v: v3
  • Loading branch information
Takashi YOSHII authored and Paul Mundt committed Sep 27, 2006
1 parent 2c96dd4 commit 47ef910
Show file tree
Hide file tree
Showing 8 changed files with 900 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5723e0eeb2dc16629e86d66785024ead9169000
refs/heads/master: 51e22e7a05c1c6f2e38ac7459d3404e32e543b75
8 changes: 7 additions & 1 deletion trunk/arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ config SH_TITAN
Select Titan if you are configuring for a Nimble Microsystems
NetEngine NP51R.

config SH_SHMIN
bool "SHMIN"
select CPU_SUBTYPE_SH7706
help
Select SHMIN if configureing for the SHMIN board

config SH_UNKNOWN
bool "BareCPU"
help
Expand Down Expand Up @@ -295,7 +301,7 @@ config SH_RTC
bool
depends on !SH_DREAMCAST && !SH_SATURN && !SH_7300_SOLUTION_ENGINE && \
!SH_73180_SOLUTION_ENGINE && !SH_LANDISK && \
!SH_R7780RP
!SH_R7780RP && !SH_SHMIN
default y
help
Selecting this option will allow the Linux kernel to emulate
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ machdir-$(CONFIG_SH_R7780RP) := renesas/r7780rp
machdir-$(CONFIG_SH_SH4202_MICRODEV) := superh/microdev
machdir-$(CONFIG_SH_LANDISK) := landisk
machdir-$(CONFIG_SH_TITAN) := titan
machdir-$(CONFIG_SH_SHMIN) := shmin
machdir-$(CONFIG_SH_UNKNOWN) := unknown

incdir-y := $(notdir $(machdir-y))
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/sh/boards/shmin/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for the SHMIN board.
#

obj-y := setup.o
49 changes: 49 additions & 0 deletions trunk/arch/sh/boards/shmin/setup.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* arch/sh/boards/shmin/setup.c
*
* Copyright (C) 2006 Takashi YOSHII
*
* SHMIN Support.
*/
#include <linux/init.h>
#include <asm/machvec.h>
#include <asm/shmin/shmin.h>
#include <asm/clock.h>
#include <asm/irq.h>
#include <asm/io.h>

#define PFC_PHCR 0xa400010e

const char *get_system_type(void)
{
return "SHMIN";
}

static void __init init_shmin_irq(void)
{
ctrl_outw(0x2a00, PFC_PHCR); // IRQ0-3=IRQ
ctrl_outw(0x0aaa, INTC_ICR1); // IRQ0-3=IRQ-mode,Low-active.
}

void __init platform_setup(void)
{
}

static void __iomem *shmin_ioport_map(unsigned long port, unsigned int size)
{
static int dummy;

if ((port & ~0x1f) == SHMIN_NE_BASE)
return (void __iomem *)(SHMIN_IO_BASE + port);

dummy = 0;

return &dummy;

}

struct sh_machine_vector mv_shmin __initmv = {
.mv_init_irq = init_shmin_irq,
.mv_ioport_map = shmin_ioport_map,
};
ALIAS_MV(shmin)
Loading

0 comments on commit 47ef910

Please sign in to comment.