m68328.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /***************************************************************************/
  2. /*
  3. * m68328.c - 68328 specific config
  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/init.h>
  16. #include <linux/types.h>
  17. #include <linux/kernel.h>
  18. #include <linux/rtc.h>
  19. #include <asm/machdep.h>
  20. #include <asm/MC68328.h>
  21. #if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD)
  22. #include "bootlogo.h"
  23. #endif
  24. /***************************************************************************/
  25. int m68328_hwclk(int set, struct rtc_time *t);
  26. /***************************************************************************/
  27. void m68328_reset (void)
  28. {
  29. local_irq_disable();
  30. asm volatile ("moveal #0x10c00000, %a0;\n\t"
  31. "moveb #0, 0xFFFFF300;\n\t"
  32. "moveal 0(%a0), %sp;\n\t"
  33. "moveal 4(%a0), %a0;\n\t"
  34. "jmp (%a0);");
  35. }
  36. /***************************************************************************/
  37. void __init config_BSP(char *command, int len)
  38. {
  39. printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
  40. printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
  41. printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
  42. mach_hwclk = m68328_hwclk;
  43. mach_reset = m68328_reset;
  44. }
  45. /***************************************************************************/