sbc-ld4.c 424 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2011-2015 Panasonic Corporation
  4. * Copyright (C) 2015-2017 Socionext Inc.
  5. */
  6. #include <linux/io.h>
  7. #include "../init.h"
  8. #include "sbc-regs.h"
  9. void uniphier_ld4_sbc_init(void)
  10. {
  11. u32 tmp;
  12. if (!uniphier_sbc_is_enabled())
  13. return;
  14. uniphier_sbc_init_savepin();
  15. /* system bus output enable */
  16. tmp = readl(PC0CTRL);
  17. tmp &= 0xfffffcff;
  18. writel(tmp, PC0CTRL);
  19. }