sys_proto.h 814 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2009
  4. * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
  5. */
  6. #ifndef __SYS_PROTO_IMX6_
  7. #define __SYS_PROTO_IMX6_
  8. #include <asm/mach-imx/sys_proto.h>
  9. #include <asm/arch/iomux.h>
  10. #define USBPHY_PWD 0x00000000
  11. #define USBPHY_PWD_RXPWDRX (1 << 20) /* receiver block power down */
  12. #define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \
  13. USBPHY_PWD_RXPWDRX))
  14. int imx6_pcie_toggle_power(void);
  15. int imx6_pcie_toggle_reset(void);
  16. /**
  17. * iomuxc_set_rgmii_io_voltage - set voltage level of RGMII/USB pins
  18. *
  19. * @param io_vol - the voltage IO level of pins
  20. */
  21. static inline void iomuxc_set_rgmii_io_voltage(int io_vol)
  22. {
  23. __raw_writel(io_vol, IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII);
  24. }
  25. #endif /* __SYS_PROTO_IMX6_ */