sbc-pxs2.c 402 B

1234567891011121314151617181920212223
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2016-2017 Socionext Inc.
  4. */
  5. #include <linux/io.h>
  6. #include "../init.h"
  7. #include "sbc-regs.h"
  8. void uniphier_pxs2_sbc_init(void)
  9. {
  10. if (!uniphier_sbc_is_enabled())
  11. return;
  12. uniphier_sbc_init_savepin();
  13. /* necessary for ROM boot ?? */
  14. /* system bus output enable */
  15. writel(0x17, PC0CTRL);
  16. uniphier_pin_init("system-bus"); /* PXs3 */
  17. }