Path: blob/master/arch/mn10300/unit-asb2303/smc91111.c
10817 views
/* ASB2303 initialisation1*2* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/1011#include <linux/kernel.h>12#include <linux/param.h>13#include <linux/init.h>14#include <linux/platform_device.h>1516#include <asm/io.h>17#include <asm/timex.h>18#include <asm/processor.h>19#include <asm/intctl-regs.h>20#include <unit/smc91111.h>2122static struct resource smc91c111_resources[] = {23[0] = {24.start = SMC91111_BASE,25.end = SMC91111_BASE_END,26.flags = IORESOURCE_MEM,27},28[1] = {29.start = SMC91111_IRQ,30.end = SMC91111_IRQ,31.flags = IORESOURCE_IRQ,32},33};3435static struct platform_device smc91c111_device = {36.name = "smc91x",37.id = 0,38.num_resources = ARRAY_SIZE(smc91c111_resources),39.resource = smc91c111_resources,40};4142/*43* add platform devices44*/45static int __init unit_device_init(void)46{47platform_device_register(&smc91c111_device);48return 0;49}5051device_initcall(unit_device_init);525354