m68328.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /***************************************************************************/
  2. /*
  3. * m68328.c - 68328/68EZ328/68VZ328 specific config
  4. *
  5. * Copyright (C) 1993 Hamish Macdonald
  6. * Copyright (C) 1999 D. Jeff Dionne
  7. * Copyright (C) 2001 Georges Menie, Ken Desmet
  8. *
  9. * This file is subject to the terms and conditions of the GNU General Public
  10. * License. See the file COPYING in the main directory of this archive
  11. * for more details.
  12. *
  13. * VZ Support/Fixes Evan Stawnyczy <[email protected]>
  14. */
  15. /***************************************************************************/
  16. #include <linux/init.h>
  17. #include <linux/types.h>
  18. #include <linux/kernel.h>
  19. #include <linux/rtc.h>
  20. #include <asm/machdep.h>
  21. #if defined(CONFIG_INIT_LCD) && defined(CONFIG_M68VZ328)
  22. #include "bootlogo-vz.h"
  23. #elif defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD)
  24. #include "bootlogo.h"
  25. #endif
  26. #include "m68328.h"
  27. /***************************************************************************/
  28. static void m68328_reset(void)
  29. {
  30. local_irq_disable();
  31. asm volatile ("moveal #0x10c00000, %a0;\n\t"
  32. "moveb #0, 0xFFFFF300;\n\t"
  33. "moveal 0(%a0), %sp;\n\t"
  34. "moveal 4(%a0), %a0;\n\t"
  35. "jmp (%a0);");
  36. }
  37. /***************************************************************************/
  38. void __init config_BSP(char *command, int len)
  39. {
  40. mach_sched_init = hw_timer_init;
  41. mach_hwclk = m68328_hwclk;
  42. mach_reset = m68328_reset;
  43. #if defined(CONFIG_PILOT) && defined(CONFIG_M68328)
  44. mach_sched_init = NULL;
  45. #elif defined(CONFIG_UCSIMM)
  46. init_ucsimm(command, len);
  47. #elif defined(CONFIG_UCDIMM)
  48. init_ucsimm(command, len);
  49. #elif defined(CONFIG_DRAGEN2)
  50. init_dragen2(command, len);
  51. #endif
  52. }
  53. /***************************************************************************/