[OpenWrt-Devel] [PATCH] b53: hardcode reset GPIO for Linksys WRT300N 1.1

Álvaro Fernández Rojas noltari at gmail.com
Sun Jul 6 07:21:36 EDT 2014


Wouldn't it be better to use the same return?

case BCM47XX_BOARD_LINKSYS_WRT300NV11:
case BCM47XX_BOARD_LINKSYS_WRT310NV1:
	return 8;

Regards,
Álvaro.

El 06/07/2014 12:58, Rafał Miłecki escribió:
> According to the thread https://forum.openwrt.org/viewtopic.php?id=48281
> b53 uses GPIO 7:
> [    4.470000] b53_common: [DBG] b53_switch_reset_gpio using 7
> and causes device to self-reboot. GPIO 8 was found in CFE boot log:
> "Reset switch via GPIO 8 ..."
> 
> Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
> ---
>  target/linux/generic/files/drivers/net/phy/b53/b53_priv.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
> index ce5b530..d28e118 100644
> --- a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
> +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
> @@ -308,6 +308,8 @@ static inline int b53_switch_get_reset_gpio(struct b53_device *dev)
>  	enum bcm47xx_board board = bcm47xx_board_get();
>  
>  	switch (board) {
> +	case BCM47XX_BOARD_LINKSYS_WRT300NV11:
> +		return 8;
>  	case BCM47XX_BOARD_LINKSYS_WRT310NV1:
>  		return 8;
>  	default:
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list