config.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 <linux/interrupt.h>
  14. #include <asm/machdep.h>
  15. #include <asm/dma.h>
  16. /***************************************************************************/
  17. /*
  18. * DMA channel base address table.
  19. */
  20. unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS];
  21. unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
  22. /***************************************************************************/
  23. void coldfire_pit_tick(void);
  24. void coldfire_pit_init(irq_handler_t handler);
  25. unsigned long coldfire_pit_offset(void);
  26. void coldfire_trap_init(void);
  27. void coldfire_reset(void);
  28. /***************************************************************************/
  29. /*
  30. * Program the vector to be an auto-vectored.
  31. */
  32. void mcf_autovector(unsigned int vec)
  33. {
  34. /* Everything is auto-vectored on the 520x devices */
  35. }
  36. /***************************************************************************/
  37. void config_BSP(char *commandp, int size)
  38. {
  39. #ifdef CONFIG_BOOTPARAM
  40. strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
  41. commandp[size-1] = 0;
  42. #else
  43. memset(commandp, 0, size);
  44. #endif
  45. mach_sched_init = coldfire_pit_init;
  46. mach_tick = coldfire_pit_tick;
  47. mach_gettimeoffset = coldfire_pit_offset;
  48. mach_trap_init = coldfire_trap_init;
  49. mach_reset = coldfire_reset;
  50. }
  51. /***************************************************************************/