m5307.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /***************************************************************************/
  2. /*
  3. * linux/arch/m68knommu/platform/5307/config.c
  4. *
  5. * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
  6. * Copyright (C) 2000, Lineo (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/mcfwdebug.h>
  17. /***************************************************************************/
  18. /*
  19. * Some platforms need software versions of the GPIO data registers.
  20. */
  21. unsigned short ppdata;
  22. unsigned char ledbank = 0xff;
  23. /***************************************************************************/
  24. void __init config_BSP(char *commandp, int size)
  25. {
  26. #if defined(CONFIG_NETtel) || \
  27. defined(CONFIG_SECUREEDGEMP3) || defined(CONFIG_CLEOPATRA)
  28. /* Copy command line from FLASH to local buffer... */
  29. memcpy(commandp, (char *) 0xf0004000, size);
  30. commandp[size-1] = 0;
  31. #endif
  32. mach_sched_init = hw_timer_init;
  33. /* Only support the external interrupts on their primary level */
  34. mcf_mapirq2imr(25, MCFINTC_EINT1);
  35. mcf_mapirq2imr(27, MCFINTC_EINT3);
  36. mcf_mapirq2imr(29, MCFINTC_EINT5);
  37. mcf_mapirq2imr(31, MCFINTC_EINT7);
  38. #ifdef CONFIG_BDM_DISABLE
  39. /*
  40. * Disable the BDM clocking. This also turns off most of the rest of
  41. * the BDM device. This is good for EMC reasons. This option is not
  42. * incompatible with the memory protection option.
  43. */
  44. wdebug(MCFDEBUG_CSR, MCFDEBUG_CSR_PSTCLK);
  45. #endif
  46. }
  47. /***************************************************************************/