config.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. /***************************************************************************/
  17. void __init config_BSP(char *commandp, int size)
  18. {
  19. #if defined(CONFIG_NETtel)
  20. /* Copy command line from FLASH to local buffer... */
  21. memcpy(commandp, (char *) 0xf0004000, size);
  22. commandp[size-1] = 0;
  23. #endif /* CONFIG_NETtel */
  24. mach_sched_init = hw_timer_init;
  25. /* Only support the external interrupts on their primary level */
  26. mcf_mapirq2imr(25, MCFINTC_EINT1);
  27. mcf_mapirq2imr(28, MCFINTC_EINT4);
  28. mcf_mapirq2imr(31, MCFINTC_EINT7);
  29. }
  30. /***************************************************************************/