emac.c 402 B

123456789101112131415161718192021
  1. /*
  2. * RMOBILE EtherMAC initialization.
  3. *
  4. * Copyright (C) 2012 Renesas Solutions Corp.
  5. * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <common.h>
  10. #include <linux/errno.h>
  11. #include <netdev.h>
  12. int cpu_eth_init(bd_t *bis)
  13. {
  14. int ret = -ENODEV;
  15. #ifdef CONFIG_SH_ETHER
  16. ret = sh_eth_initialize(bis);
  17. #endif
  18. return ret;
  19. }