From: Piotr Dymacz Date: Fri, 23 Sep 2016 16:34:27 +0000 (+0200) Subject: Split TP-Link TL-WDR3600 and TL-WDR43x0 profiles, build separate images for them X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cda6397393547448423cabde1c7005127ee888b5;p=oweals%2Fu-boot_mod.git Split TP-Link TL-WDR3600 and TL-WDR43x0 profiles, build separate images for them --- diff --git a/Makefile b/Makefile index 722832a..4a23ceb 100644 --- a/Makefile +++ b/Makefile @@ -228,7 +228,8 @@ d-link_dir-505: dragino_v2_ms14: @$(call build,192,1,DEVICE_VENDOR=dragino) -tp-link_tl-wdr3600_tl-43x0: +tp-link_tl-wdr3600 \ +tp-link_tl-wdr43x0: @$(call build,123,1,ETH_CONFIG=_s17) unwireddevices_unwired-one: diff --git a/u-boot/Makefile b/u-boot/Makefile index 92bcbe3..458c311 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -478,9 +478,18 @@ tp-link_tl-wdr3500: ar934x_common @$(call define_add,CONFIG_PCI,1) @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240 -tp-link_tl-wdr3600_tl-43x0: ar934x_common - @$(call config_init,TP-Link TL-WDR3600/43x0,tl-wdr3600-43x0,8,16,1,QCA_AR9344_SOC) - @$(call define_add,CONFIG_FOR_TPLINK_WDR3600_WDR43X0_V1,1) +tp-link_tl-wdr3600: ar934x_common + @$(call config_init,TP-Link TL-WDR3600,tl-wdr3600,8,16,1,QCA_AR9344_SOC) + @$(call define_add,CONFIG_FOR_TPLINK_WDR3600_V1,1) + @$(call define_add,CFG_ATHRS17_PHY,1) + @$(call define_add,CFG_AG7240_NMACS,1) + @$(call define_add,CONFIG_PCI,1) + @$(call define_add,CFG_DUAL_PHY_SUPPORT,1) + @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240 + +tp-link_tl-wdr43x0: ar934x_common + @$(call config_init,TP-Link TL-WDR3600,tl-wdr43x0,8,16,1,QCA_AR9344_SOC) + @$(call define_add,CONFIG_FOR_TPLINK_WDR43X0_V1,1) @$(call define_add,CFG_ATHRS17_PHY,1) @$(call define_add,CFG_AG7240_NMACS,1) @$(call define_add,CONFIG_PCI,1) diff --git a/u-boot/include/configs/db12x.h b/u-boot/include/configs/db12x.h index c95cdfa..59846e6 100644 --- a/u-boot/include/configs/db12x.h +++ b/u-boot/include/configs/db12x.h @@ -21,7 +21,8 @@ * GPIO configuration * ================== */ -#if defined(CONFIG_FOR_TPLINK_WDR3600_WDR43X0_V1) +#if defined(CONFIG_FOR_TPLINK_WDR3600_V1) ||\ + defined(CONFIG_FOR_TPLINK_WDR43X0_V1) #define CONFIG_QCA_GPIO_MASK_LED_ACT_L GPIO11 | GPIO12 | GPIO13 |\ GPIO14 | GPIO15 @@ -77,8 +78,9 @@ * Default bootargs * ================ */ -#if defined(CONFIG_FOR_TPLINK_WDR3600_WDR43X0_V1) ||\ - defined(CONFIG_FOR_TPLINK_WDR3500_V1) +#if defined(CONFIG_FOR_TPLINK_WDR3500_V1) ||\ + defined(CONFIG_FOR_TPLINK_WDR3600_V1) ||\ + defined(CONFIG_FOR_TPLINK_WDR43X0_V1) #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\ "rootfstype=squashfs init=/sbin/init "\ @@ -146,11 +148,12 @@ */ #define CONFIG_QCA_PLL QCA_PLL_PRESET_550_400_200 -#if defined(CONFIG_FOR_TPLINK_WDR3600_WDR43X0_V1) ||\ - defined(CONFIG_FOR_TPLINK_WDR3500_V1) ||\ - defined(CONFIG_FOR_TPLINK_MR3420_V2) ||\ - defined(CONFIG_FOR_TPLINK_WR841N_V8) ||\ - defined(CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2) +#if defined(CONFIG_FOR_TPLINK_MR3420_V2) ||\ + defined(CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2) ||\ + defined(CONFIG_FOR_TPLINK_WDR3600_V1) ||\ + defined(CONFIG_FOR_TPLINK_WDR43X0_V1) ||\ + defined(CONFIG_FOR_TPLINK_WDR3500_V1) ||\ + defined(CONFIG_FOR_TPLINK_WR841N_V8) #define CONFIG_QCA_PLL_IN_FLASH_BLOCK_OFFSET 0x10000 #define CONFIG_QCA_PLL_IN_FLASH_BLOCK_SIZE 0x10000