[PATCH 10/10] ARM: mvebu: clearfog: add Clearfog Base serdes configuration

Stefan Roese sr at denx.de
Mon Jan 13 08:30:12 CET 2020


On 25.11.19 11:30, Baruch Siach wrote:
> Clearfog Base carrier uses serdes lane #5 as USB host. Use EEPROM stored
> device identification to configure the serdes accordingly when
> available.
> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
>   board/solidrun/clearfog/clearfog.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
> index 70bea1e8dc65..f407f744bf0a 100644
> --- a/board/solidrun/clearfog/clearfog.c
> +++ b/board/solidrun/clearfog/clearfog.c
> @@ -198,6 +198,12 @@ static void read_tlv_data(void)
>   		board_serdes_map[0].serdes_speed = SERDES_SPEED_5_GBPS;
>   		board_serdes_map[0].serdes_mode = PEX_ROOT_COMPLEX_X1;
>   	}
> +
> +	if (sr_product_is("Clearfog Base")) {
> +		board_serdes_map[4].serdes_type = USB3_HOST0;
> +		board_serdes_map[4].serdes_speed = SERDES_SPEED_5_GBPS;
> +		board_serdes_map[4].serdes_mode = SERDES_DEFAULT_MODE;
> +	}
>   }
>   
>   struct mv_ddr_topology_map *mv_ddr_topology_map_get(void)
> 

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list