cpu_init.c 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * (C) Copyright 2001
  3. * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. /*
  8. * cpu_init.c - low level cpu init
  9. *
  10. * there's really nothing going on here yet. future work area?
  11. */
  12. #include <common.h>
  13. #include <74xx_7xx.h>
  14. /*
  15. * Breath some life into the CPU...
  16. *
  17. * there's basically nothing to do here since the memory controller
  18. * isn't on the CPU in this case.
  19. */
  20. void
  21. cpu_init_f (void)
  22. {
  23. switch (get_cpu_type()) {
  24. case CPU_7450:
  25. case CPU_7455:
  26. case CPU_7457:
  27. case CPU_7447A:
  28. case CPU_7448:
  29. /* enable the timebase bit in HID0 */
  30. set_hid0(get_hid0() | 0x4000000);
  31. break;
  32. default:
  33. /* do nothing */
  34. break;
  35. }
  36. }
  37. /*
  38. * initialize higher level parts of CPU like timers
  39. */
  40. int cpu_init_r (void)
  41. {
  42. return (0);
  43. }