.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/mach-iop32x/iq31244.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Copyright (C) 2002 Rory Bolt |
---|
8 | 9 | * Copyright 2003 (c) MontaVista, Software, Inc. |
---|
9 | 10 | * Copyright (C) 2004 Intel Corp. |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify it |
---|
12 | | - * under the terms of the GNU General Public License as published by the |
---|
13 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
14 | | - * option) any later version. |
---|
15 | 11 | */ |
---|
16 | 12 | |
---|
17 | 13 | #include <linux/mm.h> |
---|
.. | .. |
---|
26 | 22 | #include <linux/mtd/physmap.h> |
---|
27 | 23 | #include <linux/platform_device.h> |
---|
28 | 24 | #include <linux/io.h> |
---|
29 | | -#include <mach/hardware.h> |
---|
| 25 | +#include <linux/gpio/machine.h> |
---|
30 | 26 | #include <asm/cputype.h> |
---|
31 | 27 | #include <asm/irq.h> |
---|
32 | 28 | #include <asm/mach/arch.h> |
---|
.. | .. |
---|
35 | 31 | #include <asm/mach/time.h> |
---|
36 | 32 | #include <asm/mach-types.h> |
---|
37 | 33 | #include <asm/page.h> |
---|
38 | | -#include <asm/pgtable.h> |
---|
39 | | -#include <mach/time.h> |
---|
| 34 | + |
---|
| 35 | +#include "hardware.h" |
---|
| 36 | +#include "irqs.h" |
---|
40 | 37 | #include "gpio-iop32x.h" |
---|
41 | 38 | |
---|
42 | 39 | /* |
---|
.. | .. |
---|
285 | 282 | static void __init iq31244_init_machine(void) |
---|
286 | 283 | { |
---|
287 | 284 | register_iop32x_gpio(); |
---|
| 285 | + gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup); |
---|
| 286 | + gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup); |
---|
288 | 287 | platform_device_register(&iop3xx_i2c0_device); |
---|
289 | 288 | platform_device_register(&iop3xx_i2c1_device); |
---|
290 | 289 | platform_device_register(&iq31244_flash_device); |
---|