mcf8390.c 918 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * mcf8390.c -- platform support for 8390 ethernet on many boards
  3. *
  4. * (C) Copyright 2012, Greg Ungerer <gerg@uclinux.org>
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file COPYING in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/module.h>
  12. #include <linux/init.h>
  13. #include <linux/resource.h>
  14. #include <linux/platform_device.h>
  15. #include <asm/mcf8390.h>
  16. static struct resource mcf8390_resources[] = {
  17. {
  18. .start = NE2000_ADDR,
  19. .end = NE2000_ADDR + NE2000_ADDRSIZE - 1,
  20. .flags = IORESOURCE_MEM,
  21. },
  22. {
  23. .start = NE2000_IRQ_VECTOR,
  24. .end = NE2000_IRQ_VECTOR,
  25. .flags = IORESOURCE_IRQ,
  26. },
  27. };
  28. static int __init mcf8390_platform_init(void)
  29. {
  30. platform_device_register_simple("mcf8390", -1, mcf8390_resources,
  31. ARRAY_SIZE(mcf8390_resources));
  32. return 0;
  33. }
  34. arch_initcall(mcf8390_platform_init);