forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/arm/mach-iop32x/glantank.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/arm/mach-iop32x/glantank.c
34 *
....@@ -5,11 +6,6 @@
56 *
67 * Copyright (C) 2006, 2007 Martin Michlmayr <tbm@cyrius.com>
78 * 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.
139 */
1410
1511 #include <linux/mm.h>
....@@ -25,7 +21,7 @@
2521 #include <linux/i2c.h>
2622 #include <linux/platform_device.h>
2723 #include <linux/io.h>
28
-#include <mach/hardware.h>
24
+#include <linux/gpio/machine.h>
2925 #include <asm/irq.h>
3026 #include <asm/mach/arch.h>
3127 #include <asm/mach/map.h>
....@@ -33,8 +29,10 @@
3329 #include <asm/mach/time.h>
3430 #include <asm/mach-types.h>
3531 #include <asm/page.h>
36
-#include <mach/time.h>
32
+
33
+#include "hardware.h"
3734 #include "gpio-iop32x.h"
35
+#include "irqs.h"
3836
3937 /*
4038 * GLAN Tank timer tick configuration.
....@@ -189,6 +187,8 @@
189187 static void __init glantank_init_machine(void)
190188 {
191189 register_iop32x_gpio();
190
+ gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup);
191
+ gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup);
192192 platform_device_register(&iop3xx_i2c0_device);
193193 platform_device_register(&iop3xx_i2c1_device);
194194 platform_device_register(&glantank_flash_device);