cuboot-bamboo.c 540 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Old U-boot compatibility for Bamboo
  4. *
  5. * Author: Josh Boyer <jwboyer@linux.vnet.ibm.com>
  6. *
  7. * Copyright 2007 IBM Corporation
  8. *
  9. * Based on cuboot-ebony.c
  10. */
  11. #include "ops.h"
  12. #include "stdio.h"
  13. #include "44x.h"
  14. #include "cuboot.h"
  15. #define TARGET_4xx
  16. #define TARGET_44x
  17. #include "ppcboot.h"
  18. static bd_t bd;
  19. void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
  20. unsigned long r6, unsigned long r7)
  21. {
  22. CUBOOT_INIT();
  23. bamboo_init(&bd.bi_enetaddr, &bd.bi_enet1addr);
  24. }