| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/mach-iop32x/iq80321.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * Author: Rory Bolt <rorybolt@pacbell.net> |
|---|
| 7 | 8 | * Copyright (C) 2002 Rory Bolt |
|---|
| 8 | 9 | * 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. |
|---|
| 14 | 10 | */ |
|---|
| 15 | 11 | |
|---|
| 16 | 12 | #include <linux/mm.h> |
|---|
| .. | .. |
|---|
| 23 | 19 | #include <linux/mtd/physmap.h> |
|---|
| 24 | 20 | #include <linux/platform_device.h> |
|---|
| 25 | 21 | #include <linux/io.h> |
|---|
| 26 | | -#include <mach/hardware.h> |
|---|
| 22 | +#include <linux/gpio/machine.h> |
|---|
| 27 | 23 | #include <asm/irq.h> |
|---|
| 28 | 24 | #include <asm/mach/arch.h> |
|---|
| 29 | 25 | #include <asm/mach/map.h> |
|---|
| .. | .. |
|---|
| 31 | 27 | #include <asm/mach/time.h> |
|---|
| 32 | 28 | #include <asm/mach-types.h> |
|---|
| 33 | 29 | #include <asm/page.h> |
|---|
| 34 | | -#include <asm/pgtable.h> |
|---|
| 35 | | -#include <mach/time.h> |
|---|
| 30 | + |
|---|
| 31 | +#include "hardware.h" |
|---|
| 32 | +#include "irqs.h" |
|---|
| 36 | 33 | #include "gpio-iop32x.h" |
|---|
| 37 | 34 | |
|---|
| 38 | 35 | /* |
|---|
| .. | .. |
|---|
| 172 | 169 | static void __init iq80321_init_machine(void) |
|---|
| 173 | 170 | { |
|---|
| 174 | 171 | register_iop32x_gpio(); |
|---|
| 172 | + gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup); |
|---|
| 173 | + gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup); |
|---|
| 175 | 174 | platform_device_register(&iop3xx_i2c0_device); |
|---|
| 176 | 175 | platform_device_register(&iop3xx_i2c1_device); |
|---|
| 177 | 176 | platform_device_register(&iq80321_flash_device); |
|---|