sg_init.c 338 B

123456789101112131415161718
  1. /*
  2. * Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <linux/io.h>
  7. #include <mach/sg-regs.h>
  8. void sg_init(void)
  9. {
  10. u32 tmp;
  11. /* Input ports must be enabled before deasserting reset of cores */
  12. tmp = readl(SG_IECTRL);
  13. tmp |= 0x1;
  14. writel(tmp, SG_IECTRL);
  15. }