[U-Boot] [PATCHv2 5/5] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards

Jorge Ramirez jorge.ramirez-ortiz at linaro.org
Mon May 8 09:30:45 UTC 2017


On 05/08/2017 10:56 AM, Jorge Ramirez-Ortiz wrote:
> +static inline void usb2_phy_write(u32 val)
> +{
> +	writel(val, PERI_CTRL_USB0);
> +	clrsetbits_le32(PERI_CTRL_USB0, BIT(21), BIT(20) | BIT(22));

Just noticed that the write below is unnecessary
will remove this inline function and fix it on v3

> +	writel(val, PERI_CTRL_USB0);
> +
> +	udelay(20);
> +}
> +
> +static void usb2_phy_config(void)
> +{
> +	const u32 config[] = {
> +		/* close EOP pre-emphasis. open data pre-emphasis */
> +		0xa1001c,
> +		/* Rcomp = 150mW, increase DC level */
> +		0xa00607,
> +		/* keep Rcomp working */
> +		0xa10700,
> +		/* Icomp = 212mW, increase current drive */
> +		0xa00aab,
> +		/* EMI fix: rx_active not stay 1 when error packets received */
> +		0xa11140,
> +		/* Comp mode select */
> +		0xa11041,
> +		/* adjust eye diagram */
> +		0xa0098c,
> +		/* adjust eye diagram */
> +		0xa10a0a,
> +	};
> +	int i;
> +
> +	for (i = 0; i < ARRAY_SIZE(config); i++)
> +	



More information about the U-Boot mailing list