| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | /* |
| 3 | * arch/arm/mach-ep93xx/gesbc9312.c |
| 4 | * Glomation GESBC-9312-sx support. |
| 5 | * |
| 6 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> |
| 7 | */ |
| 8 | |
| 9 | #include <linux/kernel.h> |
| 10 | #include <linux/init.h> |
| 11 | #include <linux/platform_device.h> |
| 12 | #include <linux/sizes.h> |
| 13 | |
| 14 | #include "hardware.h" |
| 15 | |
| 16 | #include <asm/mach-types.h> |
| 17 | #include <asm/mach/arch.h> |
| 18 | |
| 19 | #include "soc.h" |
| 20 | |
| 21 | static struct ep93xx_eth_data __initdata gesbc9312_eth_data = { |
| 22 | .phy_id = 1, |
| 23 | }; |
| 24 | |
| 25 | static void __init gesbc9312_init_machine(void) |
| 26 | { |
| 27 | ep93xx_init_devices(); |
| 28 | ep93xx_register_flash(4, EP93XX_CS6_PHYS_BASE, SZ_8M); |
| 29 | ep93xx_register_eth(&gesbc9312_eth_data, 0); |
| 30 | } |
| 31 | |
| 32 | MACHINE_START(GESBC9312, "Glomation GESBC-9312-sx") |
| 33 | /* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */ |
| 34 | .atag_offset = 0x100, |
| 35 | .map_io = ep93xx_map_io, |
| 36 | .init_irq = ep93xx_init_irq, |
| 37 | .init_time = ep93xx_timer_init, |
| 38 | .init_machine = gesbc9312_init_machine, |
| 39 | .init_late = ep93xx_init_late, |
| 40 | .restart = ep93xx_restart, |
| 41 | MACHINE_END |