Path: blob/master/arch/mips/vr41xx/casio-e55/setup.c
10818 views
/*1* setup.c, Setup for the CASIO CASSIOPEIA E-11/15/55/65.2*3* Copyright (C) 2002-2006 Yoichi Yuasa <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#include <linux/init.h>20#include <linux/ioport.h>2122#include <asm/io.h>2324#define E55_ISA_IO_BASE 0x1400c00025#define E55_ISA_IO_SIZE 0x03ff400026#define E55_ISA_IO_START 027#define E55_ISA_IO_END (E55_ISA_IO_SIZE - 1)28#define E55_IO_PORT_BASE KSEG1ADDR(E55_ISA_IO_BASE)2930static int __init casio_e55_setup(void)31{32set_io_port_base(E55_IO_PORT_BASE);33ioport_resource.start = E55_ISA_IO_START;34ioport_resource.end = E55_ISA_IO_END;3536return 0;37}3839arch_initcall(casio_e55_setup);404142