config.c 1.6 KB

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