cuboot-ebony.c 633 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Old U-boot compatibility for Ebony
  4. *
  5. * Author: David Gibson <[email protected]>
  6. *
  7. * Copyright 2007 David Gibson, IBM Corporatio.
  8. * Based on cuboot-83xx.c, which is:
  9. * Copyright (c) 2007 Freescale Semiconductor, Inc.
  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. ebony_init(&bd.bi_enetaddr, &bd.bi_enet1addr);
  24. }