hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-iop32x/iq80321.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/arm/mach-iop32x/iq80321.c
34 *
....@@ -6,11 +7,6 @@
67 * Author: Rory Bolt <rorybolt@pacbell.net>
78 * Copyright (C) 2002 Rory Bolt
89 * Copyright (C) 2004 Intel Corp.
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License as published by the
12
- * Free Software Foundation; either version 2 of the License, or (at your
13
- * option) any later version.
1410 */
1511
1612 #include <linux/mm.h>
....@@ -23,7 +19,7 @@
2319 #include <linux/mtd/physmap.h>
2420 #include <linux/platform_device.h>
2521 #include <linux/io.h>
26
-#include <mach/hardware.h>
22
+#include <linux/gpio/machine.h>
2723 #include <asm/irq.h>
2824 #include <asm/mach/arch.h>
2925 #include <asm/mach/map.h>
....@@ -31,8 +27,9 @@
3127 #include <asm/mach/time.h>
3228 #include <asm/mach-types.h>
3329 #include <asm/page.h>
34
-#include <asm/pgtable.h>
35
-#include <mach/time.h>
30
+
31
+#include "hardware.h"
32
+#include "irqs.h"
3633 #include "gpio-iop32x.h"
3734
3835 /*
....@@ -172,6 +169,8 @@
172169 static void __init iq80321_init_machine(void)
173170 {
174171 register_iop32x_gpio();
172
+ gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup);
173
+ gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup);
175174 platform_device_register(&iop3xx_i2c0_device);
176175 platform_device_register(&iop3xx_i2c1_device);
177176 platform_device_register(&iq80321_flash_device);