sbc-ld11.c 481 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2016-2017 Socionext Inc.
  4. */
  5. #include <common.h>
  6. #include <spl.h>
  7. #include <linux/io.h>
  8. #include "../init.h"
  9. #include "sbc-regs.h"
  10. void uniphier_ld11_sbc_init(void)
  11. {
  12. uniphier_sbc_init_savepin();
  13. /* necessary for ROM boot ?? */
  14. /* system bus output enable */
  15. writel(0x17, PC0CTRL);
  16. /* pins for NAND and System Bus are multiplexed */
  17. if (spl_boot_device() != BOOT_DEVICE_NAND)
  18. uniphier_pin_init("system-bus");
  19. }