gesbc9312.c 1003 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #include <linux/kernel.h>
  9. #include <linux/init.h>
  10. #include <linux/platform_device.h>
  11. #include <linux/sizes.h>
  12. #include "hardware.h"
  13. #include <asm/mach-types.h>
  14. #include <asm/mach/arch.h>
  15. #include "soc.h"
  16. static struct ep93xx_eth_data __initdata gesbc9312_eth_data = {
  17. .phy_id = 1,
  18. };
  19. static void __init gesbc9312_init_machine(void)
  20. {
  21. ep93xx_init_devices();
  22. ep93xx_register_flash(4, EP93XX_CS6_PHYS_BASE, SZ_8M);
  23. ep93xx_register_eth(&gesbc9312_eth_data, 0);
  24. }
  25. MACHINE_START(GESBC9312, "Glomation GESBC-9312-sx")
  26. /* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */
  27. .atag_offset = 0x100,
  28. .map_io = ep93xx_map_io,
  29. .init_irq = ep93xx_init_irq,
  30. .init_time = ep93xx_timer_init,
  31. .init_machine = gesbc9312_init_machine,
  32. .init_late = ep93xx_init_late,
  33. .restart = ep93xx_restart,
  34. MACHINE_END