sg_init.c 367 B

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