550-MIPS-BCM63XX-remove-leds-and-buttons.patch 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. From 997f53b174c63153335508c22dc4493e8e5808d6 Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jogo@openwrt.org>
  3. Date: Sun, 22 Feb 2015 17:52:32 +0100
  4. Subject: [PATCH] MIPS: BCM63XX: remove leds and buttons
  5. ---
  6. arch/mips/bcm63xx/boards/board_bcm963xx.c | 262 -----------------------------
  7. 1 file changed, 262 deletions(-)
  8. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  9. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  10. @@ -47,14 +47,6 @@ static struct board_info __initdata boar
  11. .use_internal_phy = 1,
  12. },
  13. - .leds = {
  14. - {
  15. - .name = "CVG834G:green:power",
  16. - .gpio = 37,
  17. - .default_trigger= "default-on",
  18. - },
  19. - },
  20. -
  21. .ephy_reset_gpio = 36,
  22. .ephy_reset_gpio_flags = GPIO_ACTIVE_LOW,
  23. };
  24. @@ -78,35 +70,6 @@ static struct board_info __initdata boar
  25. .port_no = 0,
  26. },
  27. - .leds = {
  28. - {
  29. - .name = "96328avng::ppp-fail",
  30. - .gpio = 2,
  31. - .active_low = 1,
  32. - },
  33. - {
  34. - .name = "96328avng::power",
  35. - .gpio = 4,
  36. - .active_low = 1,
  37. - .default_trigger = "default-on",
  38. - },
  39. - {
  40. - .name = "96328avng::power-fail",
  41. - .gpio = 8,
  42. - .active_low = 1,
  43. - },
  44. - {
  45. - .name = "96328avng::wps",
  46. - .gpio = 9,
  47. - .active_low = 1,
  48. - },
  49. - {
  50. - .name = "96328avng::ppp",
  51. - .gpio = 11,
  52. - .active_low = 1,
  53. - },
  54. - },
  55. -
  56. .has_enetsw = 1,
  57. .enetsw = {
  58. @@ -445,35 +408,6 @@ static struct board_info __initdata boar
  59. },
  60. .has_ohci0 = 1,
  61. -
  62. - .leds = {
  63. - {
  64. - .name = "adsl",
  65. - .gpio = 3,
  66. - .active_low = 1,
  67. - },
  68. - {
  69. - .name = "ses",
  70. - .gpio = 5,
  71. - .active_low = 1,
  72. - },
  73. - {
  74. - .name = "ppp-fail",
  75. - .gpio = 4,
  76. - .active_low = 1,
  77. - },
  78. - {
  79. - .name = "power",
  80. - .gpio = 0,
  81. - .active_low = 1,
  82. - .default_trigger = "default-on",
  83. - },
  84. - {
  85. - .name = "stop",
  86. - .gpio = 1,
  87. - .active_low = 1,
  88. - }
  89. - },
  90. };
  91. static struct board_info __initdata board_96338w = {
  92. @@ -488,35 +422,6 @@ static struct board_info __initdata boar
  93. .force_speed_100 = 1,
  94. .force_duplex_full = 1,
  95. },
  96. -
  97. - .leds = {
  98. - {
  99. - .name = "adsl",
  100. - .gpio = 3,
  101. - .active_low = 1,
  102. - },
  103. - {
  104. - .name = "ses",
  105. - .gpio = 5,
  106. - .active_low = 1,
  107. - },
  108. - {
  109. - .name = "ppp-fail",
  110. - .gpio = 4,
  111. - .active_low = 1,
  112. - },
  113. - {
  114. - .name = "power",
  115. - .gpio = 0,
  116. - .active_low = 1,
  117. - .default_trigger = "default-on",
  118. - },
  119. - {
  120. - .name = "stop",
  121. - .gpio = 1,
  122. - .active_low = 1,
  123. - },
  124. - },
  125. };
  126. static struct board_info __initdata board_96338w2_e7t = {
  127. @@ -615,36 +520,6 @@ static struct board_info __initdata boar
  128. .has_phy = 1,
  129. .use_internal_phy = 1,
  130. },
  131. -
  132. - .leds = {
  133. - {
  134. - .name = "adsl-fail",
  135. - .gpio = 2,
  136. - .active_low = 1,
  137. - },
  138. - {
  139. - .name = "ppp",
  140. - .gpio = 3,
  141. - .active_low = 1,
  142. - },
  143. - {
  144. - .name = "ppp-fail",
  145. - .gpio = 4,
  146. - .active_low = 1,
  147. - },
  148. - {
  149. - .name = "power",
  150. - .gpio = 0,
  151. - .active_low = 1,
  152. - .default_trigger = "default-on",
  153. -
  154. - },
  155. - {
  156. - .name = "stop",
  157. - .gpio = 1,
  158. - .active_low = 1,
  159. - },
  160. - },
  161. };
  162. static struct board_info __initdata board_96348gw_10 = {
  163. @@ -679,35 +554,6 @@ static struct board_info __initdata boar
  164. .cs = 2,
  165. .ext_irq = 2,
  166. },
  167. -
  168. - .leds = {
  169. - {
  170. - .name = "adsl-fail",
  171. - .gpio = 2,
  172. - .active_low = 1,
  173. - },
  174. - {
  175. - .name = "ppp",
  176. - .gpio = 3,
  177. - .active_low = 1,
  178. - },
  179. - {
  180. - .name = "ppp-fail",
  181. - .gpio = 4,
  182. - .active_low = 1,
  183. - },
  184. - {
  185. - .name = "power",
  186. - .gpio = 0,
  187. - .active_low = 1,
  188. - .default_trigger = "default-on",
  189. - },
  190. - {
  191. - .name = "stop",
  192. - .gpio = 1,
  193. - .active_low = 1,
  194. - },
  195. - },
  196. };
  197. static struct board_info __initdata board_96348gw_11 = {
  198. @@ -736,35 +582,6 @@ static struct board_info __initdata boar
  199. .has_ohci0 = 1,
  200. .has_pccard = 1,
  201. .has_ehci0 = 1,
  202. -
  203. - .leds = {
  204. - {
  205. - .name = "adsl-fail",
  206. - .gpio = 2,
  207. - .active_low = 1,
  208. - },
  209. - {
  210. - .name = "ppp",
  211. - .gpio = 3,
  212. - .active_low = 1,
  213. - },
  214. - {
  215. - .name = "ppp-fail",
  216. - .gpio = 4,
  217. - .active_low = 1,
  218. - },
  219. - {
  220. - .name = "power",
  221. - .gpio = 0,
  222. - .active_low = 1,
  223. - .default_trigger = "default-on",
  224. - },
  225. - {
  226. - .name = "stop",
  227. - .gpio = 1,
  228. - .active_low = 1,
  229. - },
  230. - },
  231. };
  232. @@ -890,35 +707,6 @@ static struct board_info __initdata boar
  233. .ext_irq = 2,
  234. .cs = 2,
  235. },
  236. -
  237. - .leds = {
  238. - {
  239. - .name = "adsl-fail",
  240. - .gpio = 2,
  241. - .active_low = 1,
  242. - },
  243. - {
  244. - .name = "ppp",
  245. - .gpio = 3,
  246. - .active_low = 1,
  247. - },
  248. - {
  249. - .name = "ppp-fail",
  250. - .gpio = 4,
  251. - .active_low = 1,
  252. - },
  253. - {
  254. - .name = "power",
  255. - .gpio = 0,
  256. - .active_low = 1,
  257. - .default_trigger = "default-on",
  258. - },
  259. - {
  260. - .name = "stop",
  261. - .gpio = 1,
  262. - .active_low = 1,
  263. - },
  264. - },
  265. };
  266. static struct board_info __initdata board_gw6200 = {
  267. @@ -1255,33 +1043,6 @@ static struct board_info __initdata boar
  268. .has_ohci0 = 1,
  269. .has_pccard = 1,
  270. .has_ehci0 = 1,
  271. -
  272. - .leds = {
  273. - {
  274. - .name = "adsl-fail",
  275. - .gpio = 15,
  276. - .active_low = 1,
  277. - },
  278. - {
  279. - .name = "ppp",
  280. - .gpio = 22,
  281. - .active_low = 1,
  282. - },
  283. - {
  284. - .name = "ppp-fail",
  285. - .gpio = 23,
  286. - .active_low = 1,
  287. - },
  288. - {
  289. - .name = "power",
  290. - .gpio = 4,
  291. - .default_trigger = "default-on",
  292. - },
  293. - {
  294. - .name = "stop",
  295. - .gpio = 5,
  296. - },
  297. - },
  298. };
  299. static struct board_info __initdata board_96358vw2 = {
  300. @@ -1311,29 +1072,6 @@ static struct board_info __initdata boar
  301. .has_pccard = 1,
  302. .has_ehci0 = 1,
  303. .num_usbh_ports = 2,
  304. -
  305. - .leds = {
  306. - {
  307. - .name = "adsl",
  308. - .gpio = 22,
  309. - .active_low = 1,
  310. - },
  311. - {
  312. - .name = "ppp-fail",
  313. - .gpio = 23,
  314. - },
  315. - {
  316. - .name = "power",
  317. - .gpio = 5,
  318. - .active_low = 1,
  319. - .default_trigger = "default-on",
  320. - },
  321. - {
  322. - .name = "stop",
  323. - .gpio = 4,
  324. - .active_low = 1,
  325. - },
  326. - },
  327. };
  328. static struct board_info __initdata board_CPVA642 = {