drm/i915/ringbuffer: Simplify the ring irq refcounting
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / mach-h720x / h7202-eval.c
blobcc28b1efe0472e23e382a84ee016743f04e10995
1 /*
2 * linux/arch/arm/mach-h720x/h7202-eval.c
4 * Copyright (C) 2003 Thomas Gleixner <tglx@linutronix.de>
5 * 2003 Robert Schwebel <r.schwebel@pengutronix.de>
6 * 2004 Sascha Hauer <s.hauer@pengutronix.de>
8 * Architecture specific stuff for Hynix HMS30C7202 development board
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
16 #include <linux/init.h>
17 #include <linux/kernel.h>
18 #include <linux/types.h>
19 #include <linux/string.h>
20 #include <linux/platform_device.h>
22 #include <asm/setup.h>
23 #include <asm/types.h>
24 #include <asm/mach-types.h>
25 #include <asm/page.h>
26 #include <asm/pgtable.h>
27 #include <asm/mach/arch.h>
28 #include <mach/irqs.h>
29 #include <mach/hardware.h>
30 #include "common.h"
32 static struct resource cirrus_resources[] = {
33 [0] = {
34 .start = ETH0_PHYS + 0x300,
35 .end = ETH0_PHYS + 0x300 + 0x10,
36 .flags = IORESOURCE_MEM,
38 [1] = {
39 .start = IRQ_CHAINED_GPIOB(8),
40 .end = IRQ_CHAINED_GPIOB(8),
41 .flags = IORESOURCE_IRQ,
45 static struct platform_device cirrus_device = {
46 .name = "cirrus-cs89x0",
47 .id = -1,
48 .num_resources = ARRAY_SIZE(cirrus_resources),
49 .resource = cirrus_resources,
52 static struct platform_device *devices[] __initdata = {
53 &cirrus_device,
57 * Hardware init. This is called early in initcalls
58 * Place pin inits here. So you avoid adding ugly
59 * #ifdef stuff to common drivers.
60 * Use this only, if your bootloader is not able
61 * to initialize the pins proper.
63 static void __init init_eval_h7202(void)
65 init_hw_h7202();
66 (void) platform_add_devices(devices, ARRAY_SIZE(devices));
68 /* Enable interrupt on portb bit 8 (ethernet) */
69 CPU_REG (GPIO_B_VIRT, GPIO_POL) &= ~(1 << 8);
70 CPU_REG (GPIO_B_VIRT, GPIO_EN) |= (1 << 8);
73 MACHINE_START(H7202, "Hynix HMS30C7202")
74 /* Maintainer: Robert Schwebel, Pengutronix */
75 .boot_params = 0x40000100,
76 .map_io = h720x_map_io,
77 .init_irq = h7202_init_irq,
78 .timer = &h7202_timer,
79 .init_machine = init_eval_h7202,
80 MACHINE_END