/* Detect the type of the SoC, this is done by reading the PHYCFG_OFS register, this register should contain non-zero value and it exists only in the 65 nano devices, when reading it from older devices we get 0.  */
static bool soc_is_65n(struct mv_host_priv *hpriv)
/* Detect the type of the SoC, this is done by reading the PHYCFG_OFS register, this register should contain non-zero value and it exists only in the 65 nano devices, when reading it from older devices we get 0.  */
static bool soc_is_65n(struct mv_host_priv *hpriv)
{
	void __iomem *port0_mmio = mv_port_base(hpriv->base, 0);
	if (readl(port0_mmio + PHYCFG_OFS))
		return true;
	return false;
}