tb100.c 421 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2014 Pierrick Hascoet, Abilis Systems
  4. */
  5. #include <common.h>
  6. #include <cpu_func.h>
  7. #include <net.h>
  8. #include <netdev.h>
  9. #include <asm/io.h>
  10. void reset_cpu(ulong addr)
  11. {
  12. #define CRM_SWRESET 0xff101044
  13. writel(0x1, (void *)CRM_SWRESET);
  14. }
  15. int board_eth_init(struct bd_info *bis)
  16. {
  17. if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)
  18. return 1;
  19. return 0;
  20. }