.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/mach-iop32x/em7210.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Based on arch/arm/mach-iop32x/iq31244.c file. |
---|
7 | 8 | * |
---|
8 | 9 | * Copyright (C) 2007 Arnaud Patard <arnaud.patard@rtp-net.org> |
---|
9 | | - * |
---|
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. |
---|
13 | | - * |
---|
14 | 10 | */ |
---|
15 | 11 | |
---|
16 | 12 | #include <linux/mm.h> |
---|
.. | .. |
---|
24 | 20 | #include <linux/platform_device.h> |
---|
25 | 21 | #include <linux/i2c.h> |
---|
26 | 22 | #include <linux/gpio.h> |
---|
27 | | -#include <mach/hardware.h> |
---|
| 23 | +#include <linux/gpio/machine.h> |
---|
28 | 24 | #include <linux/io.h> |
---|
29 | 25 | #include <linux/irq.h> |
---|
30 | 26 | #include <asm/mach/arch.h> |
---|
.. | .. |
---|
32 | 28 | #include <asm/mach/pci.h> |
---|
33 | 29 | #include <asm/mach/time.h> |
---|
34 | 30 | #include <asm/mach-types.h> |
---|
35 | | -#include <mach/time.h> |
---|
| 31 | + |
---|
| 32 | +#include "hardware.h" |
---|
36 | 33 | #include "gpio-iop32x.h" |
---|
| 34 | +#include "irqs.h" |
---|
37 | 35 | |
---|
38 | 36 | static void __init em7210_timer_init(void) |
---|
39 | 37 | { |
---|
.. | .. |
---|
211 | 209 | { |
---|
212 | 210 | register_iop32x_gpio(); |
---|
213 | 211 | platform_device_register(&em7210_serial_device); |
---|
| 212 | + gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup); |
---|
| 213 | + gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup); |
---|
214 | 214 | platform_device_register(&iop3xx_i2c0_device); |
---|
215 | 215 | platform_device_register(&iop3xx_i2c1_device); |
---|
216 | 216 | platform_device_register(&em7210_flash_device); |
---|