300-add-ac49x-platform.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --- a/arch/mips/ar7/Platform
  2. +++ b/arch/mips/ar7/Platform
  3. @@ -3,4 +3,9 @@
  4. #
  5. platform-$(CONFIG_AR7) += ar7/
  6. cflags-$(CONFIG_AR7) += -I$(srctree)/arch/mips/include/asm/mach-ar7
  7. -load-$(CONFIG_AR7) += 0xffffffff94100000
  8. +load-$(CONFIG_AR7_TI) += 0xffffffff94100000
  9. +
  10. +#
  11. +# AudioCodes AC49x
  12. +#
  13. +load-$(CONFIG_AR7_AC49X) += 0xffffffff945ca000
  14. --- a/arch/mips/ar7/setup.c
  15. +++ b/arch/mips/ar7/setup.c
  16. @@ -69,6 +69,10 @@ const char *get_system_type(void)
  17. return "TI AR7 (TNETV1056)";
  18. case TITAN_CHIP_1060:
  19. return "TI AR7 (TNETV1060)";
  20. + case TITAN_CHIP_AC495:
  21. + return "AudioCodes AC495";
  22. + case TITAN_CHIP_AC496:
  23. + return "AudioCodes AC496";
  24. }
  25. default:
  26. return "TI AR7 (unknown)";
  27. --- a/arch/mips/include/asm/mach-ar7/ar7.h
  28. +++ b/arch/mips/include/asm/mach-ar7/ar7.h
  29. @@ -92,6 +92,8 @@
  30. #define TITAN_CHIP_1055 0x0e
  31. #define TITAN_CHIP_1056 0x0d
  32. #define TITAN_CHIP_1060 0x07
  33. +#define TITAN_CHIP_AC495 0x00
  34. +#define TITAN_CHIP_AC496 0x02
  35. /* Interrupts */
  36. #define AR7_IRQ_UART0 15
  37. --- a/arch/mips/Kconfig
  38. +++ b/arch/mips/Kconfig
  39. @@ -94,7 +94,7 @@ config AR7
  40. select HAVE_CLK
  41. help
  42. Support for the Texas Instruments AR7 System-on-a-Chip
  43. - family: TNETD7100, 7200 and 7300.
  44. + family: TI TNETD7100, 7200, 7300 and AudioCodes AC49x.
  45. config ATH79
  46. bool "Atheros AR71XX/AR724X/AR913X based boards"
  47. @@ -835,6 +835,7 @@ config MIPS_PARAVIRT
  48. endchoice
  49. source "arch/mips/alchemy/Kconfig"
  50. +source "arch/mips/ar7/Kconfig"
  51. source "arch/mips/ath79/Kconfig"
  52. source "arch/mips/bcm47xx/Kconfig"
  53. source "arch/mips/bcm63xx/Kconfig"
  54. --- /dev/null
  55. +++ b/arch/mips/ar7/Kconfig
  56. @@ -0,0 +1,26 @@
  57. +if AR7
  58. +
  59. +config AR7_TI
  60. + bool
  61. +
  62. +config AR7_AC49X
  63. + bool
  64. +
  65. +choice
  66. + prompt "AR7 SoC family selection"
  67. + default AR7_TYPE_TI
  68. + depends on AR7
  69. + help
  70. + Select AR7 MIPS SoC implementation.
  71. +
  72. + config AR7_TYPE_TI
  73. + bool "Texas Instruments AR7"
  74. + select AR7_TI
  75. +
  76. + config AR7_TYPE_AC49X
  77. + bool "AudioCodes AC49X"
  78. + select AR7_AC49X
  79. +
  80. +endchoice
  81. +
  82. +endif