emac.c 399 B

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