18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * arch/arm/mach-ep93xx/gesbc9312.c
48c2ecf20Sopenharmony_ci * Glomation GESBC-9312-sx support.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org>
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/kernel.h>
108c2ecf20Sopenharmony_ci#include <linux/init.h>
118c2ecf20Sopenharmony_ci#include <linux/platform_device.h>
128c2ecf20Sopenharmony_ci#include <linux/sizes.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include "hardware.h"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#include <asm/mach-types.h>
178c2ecf20Sopenharmony_ci#include <asm/mach/arch.h>
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#include "soc.h"
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_cistatic struct ep93xx_eth_data __initdata gesbc9312_eth_data = {
228c2ecf20Sopenharmony_ci	.phy_id		= 1,
238c2ecf20Sopenharmony_ci};
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistatic void __init gesbc9312_init_machine(void)
268c2ecf20Sopenharmony_ci{
278c2ecf20Sopenharmony_ci	ep93xx_init_devices();
288c2ecf20Sopenharmony_ci	ep93xx_register_flash(4, EP93XX_CS6_PHYS_BASE, SZ_8M);
298c2ecf20Sopenharmony_ci	ep93xx_register_eth(&gesbc9312_eth_data, 0);
308c2ecf20Sopenharmony_ci}
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciMACHINE_START(GESBC9312, "Glomation GESBC-9312-sx")
338c2ecf20Sopenharmony_ci	/* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */
348c2ecf20Sopenharmony_ci	.atag_offset	= 0x100,
358c2ecf20Sopenharmony_ci	.map_io		= ep93xx_map_io,
368c2ecf20Sopenharmony_ci	.init_irq	= ep93xx_init_irq,
378c2ecf20Sopenharmony_ci	.init_time	= ep93xx_timer_init,
388c2ecf20Sopenharmony_ci	.init_machine	= gesbc9312_init_machine,
398c2ecf20Sopenharmony_ci	.init_late	= ep93xx_init_late,
408c2ecf20Sopenharmony_ci	.restart	= ep93xx_restart,
418c2ecf20Sopenharmony_ciMACHINE_END
42