forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/arm/mach-iop32x/em7210.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * arch/arm/mach-iop32x/em7210.c
34 *
....@@ -6,11 +7,6 @@
67 * Based on arch/arm/mach-iop32x/iq31244.c file.
78 *
89 * 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
- *
1410 */
1511
1612 #include <linux/mm.h>
....@@ -24,7 +20,7 @@
2420 #include <linux/platform_device.h>
2521 #include <linux/i2c.h>
2622 #include <linux/gpio.h>
27
-#include <mach/hardware.h>
23
+#include <linux/gpio/machine.h>
2824 #include <linux/io.h>
2925 #include <linux/irq.h>
3026 #include <asm/mach/arch.h>
....@@ -32,8 +28,10 @@
3228 #include <asm/mach/pci.h>
3329 #include <asm/mach/time.h>
3430 #include <asm/mach-types.h>
35
-#include <mach/time.h>
31
+
32
+#include "hardware.h"
3633 #include "gpio-iop32x.h"
34
+#include "irqs.h"
3735
3836 static void __init em7210_timer_init(void)
3937 {
....@@ -211,6 +209,8 @@
211209 {
212210 register_iop32x_gpio();
213211 platform_device_register(&em7210_serial_device);
212
+ gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup);
213
+ gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup);
214214 platform_device_register(&iop3xx_i2c0_device);
215215 platform_device_register(&iop3xx_i2c1_device);
216216 platform_device_register(&em7210_flash_device);