.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/mach-iop32x/glantank.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright (C) 2006, 2007 Martin Michlmayr <tbm@cyrius.com> |
---|
7 | 8 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify it |
---|
10 | | - * under the terms of the GNU General Public License as published by the |
---|
11 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
12 | | - * option) any later version. |
---|
13 | 9 | */ |
---|
14 | 10 | |
---|
15 | 11 | #include <linux/mm.h> |
---|
.. | .. |
---|
25 | 21 | #include <linux/i2c.h> |
---|
26 | 22 | #include <linux/platform_device.h> |
---|
27 | 23 | #include <linux/io.h> |
---|
28 | | -#include <mach/hardware.h> |
---|
| 24 | +#include <linux/gpio/machine.h> |
---|
29 | 25 | #include <asm/irq.h> |
---|
30 | 26 | #include <asm/mach/arch.h> |
---|
31 | 27 | #include <asm/mach/map.h> |
---|
.. | .. |
---|
33 | 29 | #include <asm/mach/time.h> |
---|
34 | 30 | #include <asm/mach-types.h> |
---|
35 | 31 | #include <asm/page.h> |
---|
36 | | -#include <mach/time.h> |
---|
| 32 | + |
---|
| 33 | +#include "hardware.h" |
---|
37 | 34 | #include "gpio-iop32x.h" |
---|
| 35 | +#include "irqs.h" |
---|
38 | 36 | |
---|
39 | 37 | /* |
---|
40 | 38 | * GLAN Tank timer tick configuration. |
---|
.. | .. |
---|
189 | 187 | static void __init glantank_init_machine(void) |
---|
190 | 188 | { |
---|
191 | 189 | register_iop32x_gpio(); |
---|
| 190 | + gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup); |
---|
| 191 | + gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup); |
---|
192 | 192 | platform_device_register(&iop3xx_i2c0_device); |
---|
193 | 193 | platform_device_register(&iop3xx_i2c1_device); |
---|
194 | 194 | platform_device_register(&glantank_flash_device); |
---|