<div dir="ltr"><div style="font-size:12.8px">From: Graham Fairweather <<a href="mailto:xotic750@gmail.com" target="_blank">xotic750@gmail.com</a>></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This patch fixes the logged detected CPU ID when an equivalent is used, like in the case where we have a bcm6369 and configuration for a bcm6368 is used. More info can be found at:</div><div style="font-size:12.8px"><a href="https://forum.openwrt.org/viewtopic.php?id=64621" target="_blank">https://forum.openwrt.org/viewtopic.php?id=64621</a></div><div style="font-size:12.8px"><a href="https://github.com/Xotic750/openwrt/tree/fix_logged_cpu_id_bcm63xx" target="_blank">https://github.com/Xotic750/openwrt/tree/fix_logged_cpu_id_bcm63xx</a></div><div style="font-size:12.8px">v2 fixes an issue where the 4.4 kernel uses 'pr_info' rather than 'printk'. Missed the problem in my initial attempts with 'quilt'. <br></div><div style="font-size:12.8px">Signed-off-by: Graham Fairweather <<a href="mailto:xotic750@gmail.com" target="_blank">xotic750@gmail.com</a>></div><div style="font-size:12.8px">---</div><div style="font-size:12.8px"> target/linux/brcm63xx/patches-4.1/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch | 9 +++++++++</div><div style="font-size:12.8px"> target/linux/brcm63xx/patches-4.4/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch | 9 +++++++++</div><div style="font-size:12.8px"> 2 files changed, 18 insertions(+)</div><div style="font-size:12.8px">diff --git a/target/linux/brcm63xx/patches-4.1/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch b/target/linux/brcm63xx/patches-4.1/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch</div><div style="font-size:12.8px">index 661abf6..23491aa 100644</div><div style="font-size:12.8px">--- a/target/linux/brcm63xx/patches-4.1/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch</div><div style="font-size:12.8px">+++ b/target/linux/brcm63xx/patches-4.1/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch</div><div style="font-size:12.8px">@@ -41,6 +41,15 @@ Subject: [PATCH 40/53] MIPS: BCM63XX: add a new cpu variant helper</div><div style="font-size:12.8px">  <span style="white-space:pre-wrap">    </span>bcm63xx_cpu_rev = (tmp & REV_REVID_MASK) >> REV_REVID_SHIFT;</div><div style="font-size:12.8px">  </div><div style="font-size:12.8px">  <span style="white-space:pre-wrap">      </span>switch (bcm63xx_cpu_id) {</div><div style="font-size:12.8px">+@@ -377,7 +387,7 @@ void __init bcm63xx_cpu_init(void)</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap"> </span>bcm63xx_memory_size = detect_memory_size();</div><div style="font-size:12.8px">+ </div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">   </span>printk(KERN_INFO "Detected Broadcom 0x%04x CPU revision %02x\n",</div><div style="font-size:12.8px">+-<span style="white-space:pre-wrap">  </span>       bcm63xx_cpu_id, bcm63xx_cpu_rev);</div><div style="font-size:12.8px">++<span style="white-space:pre-wrap">        </span>       bcm63xx_cpu_variant, bcm63xx_cpu_rev);</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">  </span>printk(KERN_INFO "CPU frequency is %u MHz\n",</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">    </span>       bcm63xx_cpu_freq / 1000000);</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">    </span>printk(KERN_INFO "%uMB of RAM installed\n",</div><div style="font-size:12.8px"> --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h</div><div style="font-size:12.8px"> +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h</div><div style="font-size:12.8px"> @@ -19,6 +19,7 @@</div><div style="font-size:12.8px">diff --git a/target/linux/brcm63xx/patches-4.4/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch b/target/linux/brcm63xx/patches-4.4/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch</div><div style="font-size:12.8px">index 661abf6..330a9e6 100644</div><div style="font-size:12.8px">--- a/target/linux/brcm63xx/patches-4.4/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch</div><div style="font-size:12.8px">+++ b/target/linux/brcm63xx/patches-4.4/330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch</div><div style="font-size:12.8px">@@ -41,6 +41,15 @@ Subject: [PATCH 40/53] MIPS: BCM63XX: add a new cpu variant helper</div><div style="font-size:12.8px">  <span style="white-space:pre-wrap">        </span>bcm63xx_cpu_rev = (tmp & REV_REVID_MASK) >> REV_REVID_SHIFT;</div><div style="font-size:12.8px">  </div><div style="font-size:12.8px">  <span style="white-space:pre-wrap">      </span>switch (bcm63xx_cpu_id) {</div><div style="font-size:12.8px">+@@ -377,7 +387,7 @@ void __init bcm63xx_cpu_init(void)</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap"> </span>bcm63xx_memory_size = detect_memory_size();</div><div style="font-size:12.8px">+ </div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">   </span>pr_info("Detected Broadcom 0x%04x CPU revision %02x\n",</div><div style="font-size:12.8px">+-<span style="white-space:pre-wrap">           </span>bcm63xx_cpu_id, bcm63xx_cpu_rev);</div><div style="font-size:12.8px">++<span style="white-space:pre-wrap">           </span>bcm63xx_cpu_variant, bcm63xx_cpu_rev);</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">     </span>pr_info("CPU frequency is %u MHz\n",</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">             </span>bcm63xx_cpu_freq / 1000000);</div><div style="font-size:12.8px">+ <span style="white-space:pre-wrap">       </span>pr_info("%uMB of RAM installed\n",</div><div style="font-size:12.8px"> --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h</div><div style="font-size:12.8px"> +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h</div><div style="font-size:12.8px"> @@ -19,6 +19,7 @@</div></div>