sei510.c 563 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2016 BayLibre, SAS
  4. * Author: Neil Armstrong <narmstrong@baylibre.com>
  5. */
  6. #include <common.h>
  7. #include <dm.h>
  8. #include <env.h>
  9. #include <env_internal.h>
  10. #include <init.h>
  11. #include <net.h>
  12. #include <asm/io.h>
  13. #include <asm/arch/axg.h>
  14. #include <asm/arch/sm.h>
  15. #include <asm/arch/eth.h>
  16. #include <asm/arch/mem.h>
  17. int misc_init_r(void)
  18. {
  19. meson_eth_init(PHY_INTERFACE_MODE_RMII,
  20. MESON_USE_INTERNAL_RMII_PHY);
  21. meson_generate_serial_ethaddr();
  22. env_set("serial#", "AMLG12ASEI510");
  23. return 0;
  24. }