[OpenWrt-Devel] [PATCH v2] ar71xx: Allow to use ath79_gpio_output_select on QCA955x

Steve Brown sbrown at cortland.com
Wed Jul 29 14:26:09 EDT 2015


Sven,

On Mon, 2015-07-20 at 19:10 +0200, Sven Eckelmann wrote:
> Signed-off-by: Sven Eckelmann <sven at open-mesh.com>
> ---
> v2: Rebased to fix conflict with r46207
> 
>  ...79-add-gpio-func-register-for-QCA955x-SoC.patch | 60 ++++++++++++++++++++++
>  ...79-add-gpio-func-register-for-QCA955x-SoC.patch | 60 ++++++++++++++++++++++
>  2 files changed, 120 insertions(+)
>  create mode 100644 target/linux/ar71xx/patches-3.18/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
>  create mode 100644 target/linux/ar71xx/patches-4.1/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
> 

<snip>
> ++		reg_base = AR934X_GPIO_REG_OUT_FUNC0;
> ++	} else if (soc_is_qca953x()) {
> ++		reg_base = QCA953X_GPIO_COUNT;
                 ^^^^^^^^
> ++		reg_base = QCA953X_GPIO_REG_OUT_FUNC0;
> ++	} else if (soc_is_qca955x()) {
> ++		gpio_count = QCA955X_GPIO_COUNT;
> ++		reg_base = QCA955X_GPIO_REG_OUT_FUNC0;
> ++	} else {
> ++		BUG();
<snip>

This patch gives me a compile error when building Netgear/wndr3700
claiming that gpio_base is possibly undefined. 

Should the above to be gpio_base and not reg_base?

Steve
_______________________________________________
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