337-MIPS-BCM63XX-widen-cpuid-field.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From f1477f6e3551fd6beecfee5368fed1325dcd421f Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jogo@openwrt.org>
  3. Date: Sat, 7 Dec 2013 14:54:51 +0100
  4. Subject: [PATCH 47/53] MIPS: BCM63XX: widen cpuid field
  5. ---
  6. arch/mips/bcm63xx/cpu.c | 2 +-
  7. arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | 8 ++++----
  8. 2 files changed, 5 insertions(+), 5 deletions(-)
  9. --- a/arch/mips/bcm63xx/cpu.c
  10. +++ b/arch/mips/bcm63xx/cpu.c
  11. @@ -24,7 +24,7 @@ EXPORT_SYMBOL(bcm63xx_regs_base);
  12. const int *bcm63xx_irqs;
  13. EXPORT_SYMBOL(bcm63xx_irqs);
  14. -u16 bcm63xx_cpu_id __read_mostly;
  15. +u32 bcm63xx_cpu_id __read_mostly;
  16. EXPORT_SYMBOL(bcm63xx_cpu_id);
  17. static u32 bcm63xx_cpu_variant __read_mostly;
  18. @@ -127,7 +127,7 @@ unsigned int bcm63xx_get_memory_size(voi
  19. static unsigned int detect_cpu_clock(void)
  20. {
  21. - u16 cpu_id = bcm63xx_get_cpu_id();
  22. + u32 cpu_id = bcm63xx_get_cpu_id();
  23. switch (cpu_id) {
  24. case BCM3368_CPU_ID:
  25. --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
  26. +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
  27. @@ -27,7 +27,7 @@ u32 bcm63xx_get_cpu_variant(void);
  28. u8 bcm63xx_get_cpu_rev(void);
  29. unsigned int bcm63xx_get_cpu_freq(void);
  30. -static inline u16 __pure __bcm63xx_get_cpu_id(const u16 cpu_id)
  31. +static inline u32 __pure __bcm63xx_get_cpu_id(const u32 cpu_id)
  32. {
  33. switch (cpu_id) {
  34. #ifdef CONFIG_BCM63XX_CPU_3368
  35. @@ -69,11 +69,11 @@ static inline u16 __pure __bcm63xx_get_c
  36. return cpu_id;
  37. }
  38. -extern u16 bcm63xx_cpu_id;
  39. +extern u32 bcm63xx_cpu_id;
  40. -static inline u16 __pure bcm63xx_get_cpu_id(void)
  41. +static inline u32 __pure bcm63xx_get_cpu_id(void)
  42. {
  43. - const u16 cpu_id = bcm63xx_cpu_id;
  44. + const u32 cpu_id = bcm63xx_cpu_id;
  45. return __bcm63xx_get_cpu_id(cpu_id);
  46. }