m5206.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /***************************************************************************/
  2. /*
  3. * linux/arch/m68knommu/platform/5206/config.c
  4. *
  5. * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
  6. * Copyright (C) 2000-2001, Lineo Inc. (www.lineo.com)
  7. */
  8. /***************************************************************************/
  9. #include <linux/kernel.h>
  10. #include <linux/param.h>
  11. #include <linux/init.h>
  12. #include <linux/io.h>
  13. #include <asm/machdep.h>
  14. #include <asm/coldfire.h>
  15. #include <asm/mcfsim.h>
  16. #include <asm/mcfgpio.h>
  17. /***************************************************************************/
  18. struct mcf_gpio_chip mcf_gpio_chips[] = {
  19. MCFGPS(PP, 0, 8, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
  20. };
  21. unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);
  22. /***************************************************************************/
  23. void __init config_BSP(char *commandp, int size)
  24. {
  25. #if defined(CONFIG_NETtel)
  26. /* Copy command line from FLASH to local buffer... */
  27. memcpy(commandp, (char *) 0xf0004000, size);
  28. commandp[size-1] = 0;
  29. #endif /* CONFIG_NETtel */
  30. mach_sched_init = hw_timer_init;
  31. /* Only support the external interrupts on their primary level */
  32. mcf_mapirq2imr(25, MCFINTC_EINT1);
  33. mcf_mapirq2imr(28, MCFINTC_EINT4);
  34. mcf_mapirq2imr(31, MCFINTC_EINT7);
  35. }
  36. /***************************************************************************/