cuboot-amigaone.c 868 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Old U-boot compatibility for AmigaOne
  3. *
  4. * Author: Gerhard Pircher (gerhard_pircher@gmx.net)
  5. *
  6. * Based on cuboot-83xx.c
  7. * Copyright (c) 2007 Freescale Semiconductor, Inc.
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License version 2 as published
  11. * by the Free Software Foundation.
  12. */
  13. #include "ops.h"
  14. #include "stdio.h"
  15. #include "cuboot.h"
  16. #include "ppcboot.h"
  17. static bd_t bd;
  18. static void platform_fixups(void)
  19. {
  20. dt_fixup_memory(bd.bi_memstart, bd.bi_memsize);
  21. dt_fixup_cpu_clocks(bd.bi_intfreq, bd.bi_busfreq / 4, bd.bi_busfreq);
  22. }
  23. void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
  24. unsigned long r6, unsigned long r7)
  25. {
  26. CUBOOT_INIT();
  27. fdt_init(_dtb_start);
  28. serial_console_init();
  29. platform_ops.fixups = platform_fixups;
  30. }