config.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /***************************************************************************/
  2. /*
  3. * linux/arch/m68knommu/platform/68328/config.c
  4. *
  5. * Copyright (C) 1993 Hamish Macdonald
  6. * Copyright (C) 1999 D. Jeff Dionne
  7. *
  8. * This file is subject to the terms and conditions of the GNU General Public
  9. * License. See the file COPYING in the main directory of this archive
  10. * for more details.
  11. *
  12. * VZ Support/Fixes Evan Stawnyczy <e@lineo.ca>
  13. */
  14. /***************************************************************************/
  15. #include <linux/types.h>
  16. #include <linux/kernel.h>
  17. #include <asm/system.h>
  18. #include <asm/machdep.h>
  19. #include <asm/MC68328.h>
  20. /***************************************************************************/
  21. void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
  22. /***************************************************************************/
  23. void m68328_reset (void)
  24. {
  25. local_irq_disable();
  26. asm volatile ("moveal #0x10c00000, %a0;\n\t"
  27. "moveb #0, 0xFFFFF300;\n\t"
  28. "moveal 0(%a0), %sp;\n\t"
  29. "moveal 4(%a0), %a0;\n\t"
  30. "jmp (%a0);");
  31. }
  32. /***************************************************************************/
  33. void config_BSP(char *command, int len)
  34. {
  35. printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
  36. printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
  37. printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
  38. mach_gettod = m68328_timer_gettod;
  39. mach_reset = m68328_reset;
  40. }
  41. /***************************************************************************/