sbc-ld11.c 505 B

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