config.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /***************************************************************************/
  2. /*
  3. * linux/arch/m68knommu/platform/528x/config.c
  4. *
  5. * Sub-architcture dependant initialization code for the Motorola
  6. * 5280 and 5282 CPUs.
  7. *
  8. * Copyright (C) 1999-2003, Greg Ungerer (gerg@snapgear.com)
  9. * Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com)
  10. */
  11. /***************************************************************************/
  12. #include <linux/kernel.h>
  13. #include <linux/param.h>
  14. #include <linux/init.h>
  15. #include <linux/interrupt.h>
  16. #include <asm/dma.h>
  17. #include <asm/machdep.h>
  18. #include <asm/coldfire.h>
  19. #include <asm/mcfsim.h>
  20. #include <asm/mcfdma.h>
  21. /***************************************************************************/
  22. void coldfire_reset(void);
  23. /***************************************************************************/
  24. /*
  25. * DMA channel base address table.
  26. */
  27. unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
  28. MCF_MBAR + MCFDMA_BASE0,
  29. };
  30. unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
  31. /***************************************************************************/
  32. void mcf_disableall(void)
  33. {
  34. *((volatile unsigned long *) (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH)) = 0xffffffff;
  35. *((volatile unsigned long *) (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRL)) = 0xffffffff;
  36. }
  37. /***************************************************************************/
  38. void mcf_autovector(unsigned int vec)
  39. {
  40. /* Everything is auto-vectored on the 5272 */
  41. }
  42. /***************************************************************************/
  43. void config_BSP(char *commandp, int size)
  44. {
  45. mcf_disableall();
  46. mach_reset = coldfire_reset;
  47. }
  48. /***************************************************************************/