You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sh: SHMIN board support.
This adds support for the SHMIN SH7706 board. Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
committed by
Paul Mundt
parent
e5723e0eeb
commit
51e22e7a05
+7
-1
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Makefile for the SHMIN board.
|
||||
#
|
||||
|
||||
obj-y := setup.o
|
||||
@@ -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)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -29,3 +29,4 @@ LANDISK SH_LANDISK
|
||||
R7780RP SH_R7780RP
|
||||
R7780MP SH_R7780MP
|
||||
TITAN SH_TITAN
|
||||
SHMIN SH_SHMIN
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef __ASM_SH_SHMIN_H
|
||||
#define __ASM_SH_SHMIN_H
|
||||
|
||||
#define SHMIN_IO_BASE 0xb0000000UL
|
||||
|
||||
#define SHMIN_NE_IRQ IRQ2_IRQ
|
||||
#define SHMIN_NE_BASE 0x300
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user