config.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /***************************************************************************/
  2. /*
  3. * linux/arch/m68knommu/platform/520x/config.c
  4. *
  5. * Copyright (C) 2005, Freescale (www.freescale.com)
  6. * Copyright (C) 2005, Intec Automation (mike@steroidmicros.com)
  7. * Copyright (C) 1999-2003, Greg Ungerer (gerg@snapgear.com)
  8. * Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com)
  9. */
  10. /***************************************************************************/
  11. #include <linux/kernel.h>
  12. #include <linux/param.h>
  13. #include <asm/machdep.h>
  14. #include <asm/dma.h>
  15. /***************************************************************************/
  16. /*
  17. * DMA channel base address table.
  18. */
  19. unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS];
  20. unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
  21. /***************************************************************************/
  22. void coldfire_pit_tick(void);
  23. void coldfire_pit_init(irqreturn_t (*handler)(int, void *, struct pt_regs *));
  24. unsigned long coldfire_pit_offset(void);
  25. void coldfire_trap_init(void);
  26. void coldfire_reset(void);
  27. /***************************************************************************/
  28. /*
  29. * Program the vector to be an auto-vectored.
  30. */
  31. void mcf_autovector(unsigned int vec)
  32. {
  33. /* Everything is auto-vectored on the 520x devices */
  34. }
  35. /***************************************************************************/
  36. void config_BSP(char *commandp, int size)
  37. {
  38. #ifdef CONFIG_BOOTPARAM
  39. strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
  40. commandp[size-1] = 0;
  41. #else
  42. memset(commandp, 0, size);
  43. #endif
  44. mach_sched_init = coldfire_pit_init;
  45. mach_tick = coldfire_pit_tick;
  46. mach_gettimeoffset = coldfire_pit_offset;
  47. mach_trap_init = coldfire_trap_init;
  48. mach_reset = coldfire_reset;
  49. }
  50. /***************************************************************************/