[brcm63xx] add support for the RTA1025W_16 board (#5979)
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / files / arch / mips / bcm63xx / boards / board_bcm963xx.c
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
7 * Copyright (C) 2009 Florian Fainelli <florian@openwrt.org>
8 */
9
10 #include <linux/init.h>
11 #include <linux/kernel.h>
12 #include <linux/string.h>
13 #include <linux/platform_device.h>
14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/partitions.h>
16 #include <linux/mtd/physmap.h>
17 #include <linux/ssb/ssb.h>
18 #include <linux/gpio_buttons.h>
19 #include <asm/addrspace.h>
20 #include <bcm63xx_board.h>
21 #include <bcm63xx_cpu.h>
22 #include <bcm63xx_regs.h>
23 #include <bcm63xx_io.h>
24 #include <bcm63xx_board.h>
25 #include <bcm63xx_dev_pci.h>
26 #include <bcm63xx_dev_uart.h>
27 #include <bcm63xx_dev_wdt.h>
28 #include <bcm63xx_dev_enet.h>
29 #include <bcm63xx_dev_dsp.h>
30 #include <bcm63xx_dev_pcmcia.h>
31 #include <bcm63xx_dev_usb_ohci.h>
32 #include <bcm63xx_dev_usb_ehci.h>
33 #include <bcm63xx_dev_usb_udc.h>
34 #include <bcm63xx_dev_spi.h>
35 #include <board_bcm963xx.h>
36
37 #define PFX "board_bcm963xx: "
38
39 static struct bcm963xx_nvram nvram;
40 static unsigned int mac_addr_used = 0;
41 static struct board_info board;
42
43 /*
44 * known 6338 boards
45 */
46
47 #ifdef CONFIG_BCM63XX_CPU_6338
48 static struct board_info __initdata board_96338gw = {
49 .name = "96338GW",
50 .expected_cpu_id = 0x6338,
51
52 .has_enet0 = 1,
53 .enet0 = {
54 .force_speed_100 = 1,
55 .force_duplex_full = 1,
56 },
57
58 .has_ohci0 = 1,
59
60 .leds = {
61 {
62 .name = "adsl",
63 .gpio = 3,
64 .active_low = 1,
65 },
66 {
67 .name = "ses",
68 .gpio = 5,
69 .active_low = 1,
70 },
71 {
72 .name = "ppp-fail",
73 .gpio = 4,
74 .active_low = 1,
75 },
76 {
77 .name = "power",
78 .gpio = 0,
79 .active_low = 1,
80 .default_trigger = "default-on",
81 },
82 {
83 .name = "stop",
84 .gpio = 1,
85 .active_low = 1,
86 }
87 },
88 };
89
90 static struct board_info __initdata board_96338w = {
91 .name = "96338W",
92 .expected_cpu_id = 0x6338,
93
94 .has_enet0 = 1,
95 .enet0 = {
96 .force_speed_100 = 1,
97 .force_duplex_full = 1,
98 },
99
100 .leds = {
101 {
102 .name = "adsl",
103 .gpio = 3,
104 .active_low = 1,
105 },
106 {
107 .name = "ses",
108 .gpio = 5,
109 .active_low = 1,
110 },
111 {
112 .name = "ppp-fail",
113 .gpio = 4,
114 .active_low = 1,
115 },
116 {
117 .name = "power",
118 .gpio = 0,
119 .active_low = 1,
120 .default_trigger = "default-on",
121 },
122 {
123 .name = "stop",
124 .gpio = 1,
125 .active_low = 1,
126 },
127 },
128 };
129 #endif
130
131 /*
132 * known 6345 boards
133 */
134 #ifdef CONFIG_BCM63XX_CPU_6345
135 static struct board_info __initdata board_96345gw2 = {
136 .name = "96345GW2",
137 .expected_cpu_id = 0x6345,
138 };
139 #endif
140
141 /*
142 * known 6348 boards
143 */
144 #ifdef CONFIG_BCM63XX_CPU_6348
145 static struct board_info __initdata board_96348r = {
146 .name = "96348R",
147 .expected_cpu_id = 0x6348,
148
149 .has_enet0 = 1,
150 .has_pci = 1,
151
152 .enet0 = {
153 .has_phy = 1,
154 .use_internal_phy = 1,
155 },
156
157 .leds = {
158 {
159 .name = "adsl-fail",
160 .gpio = 2,
161 .active_low = 1,
162 },
163 {
164 .name = "ppp",
165 .gpio = 3,
166 .active_low = 1,
167 },
168 {
169 .name = "ppp-fail",
170 .gpio = 4,
171 .active_low = 1,
172 },
173 {
174 .name = "power",
175 .gpio = 0,
176 .active_low = 1,
177 .default_trigger = "default-on",
178
179 },
180 {
181 .name = "stop",
182 .gpio = 1,
183 .active_low = 1,
184 },
185 },
186 };
187
188 static struct board_info __initdata board_96348gw_10 = {
189 .name = "96348GW-10",
190 .expected_cpu_id = 0x6348,
191
192 .has_enet0 = 1,
193 .has_enet1 = 1,
194 .has_pci = 1,
195
196 .enet0 = {
197 .has_phy = 1,
198 .use_internal_phy = 1,
199 },
200 .enet1 = {
201 .force_speed_100 = 1,
202 .force_duplex_full = 1,
203 },
204
205 .has_ohci0 = 1,
206 .has_pccard = 1,
207 .has_ehci0 = 1,
208
209 .has_dsp = 1,
210 .dsp = {
211 .gpio_rst = 6,
212 .gpio_int = 34,
213 .cs = 2,
214 .ext_irq = 2,
215 },
216
217 .leds = {
218 {
219 .name = "adsl-fail",
220 .gpio = 2,
221 .active_low = 1,
222 },
223 {
224 .name = "ppp",
225 .gpio = 3,
226 .active_low = 1,
227 },
228 {
229 .name = "ppp-fail",
230 .gpio = 4,
231 .active_low = 1,
232 },
233 {
234 .name = "power",
235 .gpio = 0,
236 .active_low = 1,
237 .default_trigger = "default-on",
238 },
239 {
240 .name = "stop",
241 .gpio = 1,
242 .active_low = 1,
243 },
244 },
245 };
246
247 static struct board_info __initdata board_96348gw_11 = {
248 .name = "96348GW-11",
249 .expected_cpu_id = 0x6348,
250
251 .has_enet0 = 1,
252 .has_enet1 = 1,
253 .has_pci = 1,
254
255 .enet0 = {
256 .has_phy = 1,
257 .use_internal_phy = 1,
258 },
259
260 .enet1 = {
261 .force_speed_100 = 1,
262 .force_duplex_full = 1,
263 },
264
265
266 .has_ohci0 = 1,
267 .has_pccard = 1,
268 .has_ehci0 = 1,
269
270 .leds = {
271 {
272 .name = "adsl-fail",
273 .gpio = 2,
274 .active_low = 1,
275 },
276 {
277 .name = "ppp",
278 .gpio = 3,
279 .active_low = 1,
280 },
281 {
282 .name = "ppp-fail",
283 .gpio = 4,
284 .active_low = 1,
285 },
286 {
287 .name = "power",
288 .gpio = 0,
289 .active_low = 1,
290 .default_trigger = "default-on",
291 },
292 {
293 .name = "stop",
294 .gpio = 1,
295 .active_low = 1,
296 },
297 },
298 };
299
300 static struct board_info __initdata board_96348gw = {
301 .name = "96348GW",
302 .expected_cpu_id = 0x6348,
303
304 .has_enet0 = 1,
305 .has_enet1 = 1,
306 .has_pci = 1,
307
308 .enet0 = {
309 .has_phy = 1,
310 .use_internal_phy = 1,
311 },
312 .enet1 = {
313 .force_speed_100 = 1,
314 .force_duplex_full = 1,
315 },
316
317 .has_ohci0 = 1,
318 .has_dsp = 1,
319
320 .dsp = {
321 .gpio_rst = 6,
322 .gpio_int = 34,
323 .ext_irq = 2,
324 .cs = 2,
325 },
326
327 .leds = {
328 {
329 .name = "adsl-fail",
330 .gpio = 2,
331 .active_low = 1,
332 },
333 {
334 .name = "ppp",
335 .gpio = 3,
336 .active_low = 1,
337 },
338 {
339 .name = "ppp-fail",
340 .gpio = 4,
341 .active_low = 1,
342 },
343 {
344 .name = "power",
345 .gpio = 0,
346 .active_low = 1,
347 .default_trigger = "default-on",
348 },
349 {
350 .name = "stop",
351 .gpio = 1,
352 .active_low = 1,
353 },
354 },
355 };
356
357 static struct board_info __initdata board_FAST2404 = {
358 .name = "F@ST2404",
359 .expected_cpu_id = 0x6348,
360
361 .has_enet0 = 1,
362 .has_enet1 = 1,
363 .has_pci = 1,
364
365 .enet0 = {
366 .has_phy = 1,
367 .use_internal_phy = 1,
368 },
369
370 .enet1 = {
371 .force_speed_100 = 1,
372 .force_duplex_full = 1,
373 },
374
375
376 .has_ohci0 = 1,
377 .has_pccard = 1,
378 .has_ehci0 = 1,
379 };
380
381 static struct board_info __initdata board_DV201AMR = {
382 .name = "DV201AMR",
383 .expected_cpu_id = 0x6348,
384
385 .has_pci = 1,
386 .has_ohci0 = 1,
387 .has_udc0 = 1,
388
389 .has_enet0 = 1,
390 .has_enet1 = 1,
391 .enet0 = {
392 .has_phy = 1,
393 .use_internal_phy = 1,
394 },
395 .enet1 = {
396 .force_speed_100 = 1,
397 .force_duplex_full = 1,
398 },
399 };
400
401 static struct board_info __initdata board_96348gw_a = {
402 .name = "96348GW-A",
403 .expected_cpu_id = 0x6348,
404
405 .has_enet0 = 1,
406 .has_enet1 = 1,
407 .has_pci = 1,
408
409 .enet0 = {
410 .has_phy = 1,
411 .use_internal_phy = 1,
412 },
413 .enet1 = {
414 .force_speed_100 = 1,
415 .force_duplex_full = 1,
416 },
417
418 .has_ohci0 = 1,
419 };
420
421 static struct board_info __initdata board_rta1025w_16 = {
422 .name = "RTA1025W_16",
423 .expected_cpu_id = 0x6348,
424
425 .has_enet0 = 1,
426 .has_enet1 = 1,
427 .has_pci = 1,
428
429 .enet0 = {
430 .has_phy = 1,
431 .use_internal_phy = 1,
432 },
433 .enet1 = {
434 .force_speed_100 = 1,
435 .force_duplex_full = 1,
436 },
437 };
438 #endif
439
440 /*
441 * known 6358 boards
442 */
443 #ifdef CONFIG_BCM63XX_CPU_6358
444 static struct board_info __initdata board_96358vw = {
445 .name = "96358VW",
446 .expected_cpu_id = 0x6358,
447
448 .has_enet0 = 1,
449 .has_enet1 = 1,
450 .has_pci = 1,
451
452 .enet0 = {
453 .has_phy = 1,
454 .use_internal_phy = 1,
455 },
456
457 .enet1 = {
458 .force_speed_100 = 1,
459 .force_duplex_full = 1,
460 },
461
462
463 .has_ohci0 = 1,
464 .has_pccard = 1,
465 .has_ehci0 = 1,
466
467 .leds = {
468 {
469 .name = "adsl-fail",
470 .gpio = 15,
471 .active_low = 1,
472 },
473 {
474 .name = "ppp",
475 .gpio = 22,
476 .active_low = 1,
477 },
478 {
479 .name = "ppp-fail",
480 .gpio = 23,
481 .active_low = 1,
482 },
483 {
484 .name = "power",
485 .gpio = 4,
486 .default_trigger = "default-on",
487 },
488 {
489 .name = "stop",
490 .gpio = 5,
491 },
492 },
493 };
494
495 static struct board_info __initdata board_96358vw2 = {
496 .name = "96358VW2",
497 .expected_cpu_id = 0x6358,
498
499 .has_enet0 = 1,
500 .has_enet1 = 1,
501 .has_pci = 1,
502
503 .enet0 = {
504 .has_phy = 1,
505 .use_internal_phy = 1,
506 },
507
508 .enet1 = {
509 .force_speed_100 = 1,
510 .force_duplex_full = 1,
511 },
512
513
514 .has_ohci0 = 1,
515 .has_pccard = 1,
516 .has_ehci0 = 1,
517
518 .leds = {
519 {
520 .name = "adsl",
521 .gpio = 22,
522 .active_low = 1,
523 },
524 {
525 .name = "ppp-fail",
526 .gpio = 23,
527 },
528 {
529 .name = "power",
530 .gpio = 5,
531 .active_low = 1,
532 .default_trigger = "default-on",
533 },
534 {
535 .name = "stop",
536 .gpio = 4,
537 .active_low = 1,
538 },
539 },
540 };
541
542 static struct board_info __initdata board_AGPFS0 = {
543 .name = "AGPF-S0",
544 .expected_cpu_id = 0x6358,
545
546 .has_enet0 = 1,
547 .has_enet1 = 1,
548 .has_pci = 1,
549
550 .enet0 = {
551 .has_phy = 1,
552 .use_internal_phy = 1,
553 },
554
555 .enet1 = {
556 .force_speed_100 = 1,
557 .force_duplex_full = 1,
558 },
559
560 .has_ohci0 = 1,
561 .has_ehci0 = 1,
562 };
563
564 static struct board_info __initdata board_DWVS0 = {
565 .name = "DWV-S0",
566 .expected_cpu_id = 0x6358,
567
568 .has_enet0 = 1,
569 .has_enet1 = 1,
570 .has_pci = 1,
571
572 .enet0 = {
573 .has_phy = 1,
574 .use_internal_phy = 1,
575 },
576
577 .enet1 = {
578 .force_speed_100 = 1,
579 .force_duplex_full = 1,
580 },
581
582 .has_ohci0 = 1,
583 };
584 #endif
585
586 /*
587 * all boards
588 */
589 static const struct board_info __initdata *bcm963xx_boards[] = {
590 #ifdef CONFIG_BCM63XX_CPU_6338
591 &board_96338gw,
592 &board_96338w,
593 #endif
594 #ifdef CONFIG_BCM63XX_CPU_6345
595 &board_96345gw2,
596 #endif
597 #ifdef CONFIG_BCM63XX_CPU_6348
598 &board_96348r,
599 &board_96348gw,
600 &board_96348gw_10,
601 &board_96348gw_11,
602 &board_FAST2404,
603 &board_DV201AMR,
604 &board_96348gw_a,
605 &board_rta1025w_16,
606 #endif
607
608 #ifdef CONFIG_BCM63XX_CPU_6358
609 &board_96358vw,
610 &board_96358vw2,
611 &board_AGPFS0,
612 &board_DWVS0,
613 #endif
614 };
615
616 /*
617 * early init callback, read nvram data from flash and checksum it
618 */
619 void __init board_prom_init(void)
620 {
621 unsigned int check_len, i;
622 u8 *boot_addr, *cfe, *p;
623 char cfe_version[32];
624 u32 val;
625
626 /* read base address of boot chip select (0)
627 * 6345 does not have MPI but boots from standard
628 * MIPS Flash address */
629 if (BCMCPU_IS_6345())
630 val = 0x1fc00000;
631 else {
632 val = bcm_mpi_readl(MPI_CSBASE_REG(0));
633 val &= MPI_CSBASE_BASE_MASK;
634 }
635 boot_addr = (u8 *)KSEG1ADDR(val);
636
637 /* dump cfe version */
638 cfe = boot_addr + BCM963XX_CFE_VERSION_OFFSET;
639 if (!memcmp(cfe, "cfe-v", 5))
640 snprintf(cfe_version, sizeof(cfe_version), "%u.%u.%u-%u.%u",
641 cfe[5], cfe[6], cfe[7], cfe[8], cfe[9]);
642 else
643 strcpy(cfe_version, "unknown");
644 printk(KERN_INFO PFX "CFE version: %s\n", cfe_version);
645
646 /* extract nvram data */
647 memcpy(&nvram, boot_addr + BCM963XX_NVRAM_OFFSET, sizeof(nvram));
648
649 /* check checksum before using data */
650 if (nvram.version <= 4)
651 check_len = offsetof(struct bcm963xx_nvram, checksum_old);
652 else
653 check_len = sizeof(nvram);
654 val = 0;
655 p = (u8 *)&nvram;
656 while (check_len--)
657 val += *p;
658 if (val) {
659 printk(KERN_ERR PFX "invalid nvram checksum\n");
660 return;
661 }
662
663 /* find board by name */
664 for (i = 0; i < ARRAY_SIZE(bcm963xx_boards); i++) {
665 if (strncmp(nvram.name, bcm963xx_boards[i]->name,
666 sizeof(nvram.name)))
667 continue;
668 /* copy, board desc array is marked initdata */
669 memcpy(&board, bcm963xx_boards[i], sizeof(board));
670 break;
671 }
672
673 /* bail out if board is not found, will complain later */
674 if (!board.name[0]) {
675 char name[17];
676 memcpy(name, nvram.name, 16);
677 name[16] = 0;
678 printk(KERN_ERR PFX "unknown bcm963xx board: %s\n",
679 name);
680 return;
681 }
682
683 /* setup pin multiplexing depending on board enabled device,
684 * this has to be done this early since PCI init is done
685 * inside arch_initcall */
686 val = 0;
687 #ifdef CONFIG_PCI
688 if (board.has_pci) {
689 bcm63xx_pci_enabled = 1;
690 if (BCMCPU_IS_6348())
691 val |= GPIO_MODE_6348_G2_PCI;
692 }
693 #endif
694 if (board.has_pccard) {
695 if (BCMCPU_IS_6348())
696 val |= GPIO_MODE_6348_G1_MII_PCCARD;
697 }
698
699 if (board.has_enet0 && !board.enet0.use_internal_phy) {
700 if (BCMCPU_IS_6348())
701 val |= GPIO_MODE_6348_G3_EXT_MII |
702 GPIO_MODE_6348_G0_EXT_MII;
703 }
704
705 if (board.has_enet1 && !board.enet1.use_internal_phy) {
706 if (BCMCPU_IS_6348())
707 val |= GPIO_MODE_6348_G3_EXT_MII |
708 GPIO_MODE_6348_G0_EXT_MII;
709 }
710
711 bcm_gpio_writel(val, GPIO_MODE_REG);
712 }
713
714 /*
715 * second stage init callback, good time to panic if we couldn't
716 * identify on which board we're running since early printk is working
717 */
718 void __init board_setup(void)
719 {
720 if (!board.name[0])
721 panic("unable to detect bcm963xx board");
722 printk(KERN_INFO PFX "board name: %s\n", board.name);
723
724 /* make sure we're running on expected cpu */
725 if (bcm63xx_get_cpu_id() != board.expected_cpu_id)
726 panic("unexpected CPU for bcm963xx board");
727 }
728
729 /*
730 * return board name for /proc/cpuinfo
731 */
732 const char *board_get_name(void)
733 {
734 return board.name;
735 }
736
737 /*
738 * register & return a new board mac address
739 */
740 static int board_get_mac_address(u8 *mac)
741 {
742 u8 *p;
743 int count;
744
745 if (mac_addr_used >= nvram.mac_addr_count) {
746 printk(KERN_ERR PFX "not enough mac address\n");
747 return -ENODEV;
748 }
749
750 memcpy(mac, nvram.mac_addr_base, ETH_ALEN);
751 p = mac + ETH_ALEN - 1;
752 count = mac_addr_used;
753
754 while (count--) {
755 do {
756 (*p)++;
757 if (*p != 0)
758 break;
759 p--;
760 } while (p != mac);
761 }
762
763 if (p == mac) {
764 printk(KERN_ERR PFX "unable to fetch mac address\n");
765 return -ENODEV;
766 }
767
768 mac_addr_used++;
769 return 0;
770 }
771
772 static struct resource mtd_resources[] = {
773 {
774 .start = 0, /* filled at runtime */
775 .end = 0, /* filled at runtime */
776 .flags = IORESOURCE_MEM,
777 }
778 };
779
780 static struct platform_device mtd_dev = {
781 .name = "bcm963xx-flash",
782 .resource = mtd_resources,
783 .num_resources = ARRAY_SIZE(mtd_resources),
784 };
785
786 /*
787 * Register a sane SPROMv2 to make the on-board
788 * bcm4318 WLAN work
789 */
790 static struct ssb_sprom bcm63xx_sprom = {
791 .revision = 0x02,
792 .board_rev = 0x17,
793 .country_code = 0x0,
794 .ant_available_bg = 0x3,
795 .pa0b0 = 0x15ae,
796 .pa0b1 = 0xfa85,
797 .pa0b2 = 0xfe8d,
798 .pa1b0 = 0xffff,
799 .pa1b1 = 0xffff,
800 .pa1b2 = 0xffff,
801 .gpio0 = 0xff,
802 .gpio1 = 0xff,
803 .gpio2 = 0xff,
804 .gpio3 = 0xff,
805 .maxpwr_bg = 0x004c,
806 .itssi_bg = 0x00,
807 .boardflags_lo = 0x2848,
808 .boardflags_hi = 0x0000,
809 };
810
811 static struct resource gpiodev_resource = {
812 .start = 0xFFFFFFFF,
813 };
814
815 static struct gpio_led_platform_data bcm63xx_led_data;
816
817 static struct platform_device bcm63xx_gpio_leds = {
818 .name = "leds-gpio",
819 .id = 0,
820 .dev.platform_data = &bcm63xx_led_data,
821 };
822
823 struct gpio_buttons_platform_data bcm63xx_gpio_buttons_data = {
824 .poll_interval = 20,
825 };
826
827 struct platform_device bcm63xx_gpio_buttons_device = {
828 .name = "gpio-buttons",
829 .id = 0,
830 .dev.platform_data = &bcm63xx_gpio_buttons_data,
831 };
832
833
834 /*
835 * third stage init callback, register all board devices.
836 */
837 int __init board_register_devices(void)
838 {
839 u32 val;
840
841 bcm63xx_uart_register();
842 bcm63xx_wdt_register();
843
844 if (!BCMCPU_IS_6345())
845 bcm63xx_spi_register();
846
847 if (board.has_pccard)
848 bcm63xx_pcmcia_register();
849
850 if (board.has_enet0 &&
851 !board_get_mac_address(board.enet0.mac_addr))
852 bcm63xx_enet_register(0, &board.enet0);
853
854 if (board.has_enet1 &&
855 !board_get_mac_address(board.enet1.mac_addr))
856 bcm63xx_enet_register(1, &board.enet1);
857
858 if (board.has_ohci0)
859 bcm63xx_ohci_register();
860
861 if (board.has_ehci0)
862 bcm63xx_ehci_register();
863
864 if (board.has_udc0)
865 bcm63xx_udc_register();
866
867 if (board.has_dsp)
868 bcm63xx_dsp_register(&board.dsp);
869
870 /* Generate MAC address for WLAN and
871 * register our SPROM */
872 #ifdef CONFIG_PCI
873 if (!board_get_mac_address(bcm63xx_sprom.il0mac)) {
874 memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN);
875 memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN);
876 if (ssb_arch_set_fallback_sprom(&bcm63xx_sprom) < 0)
877 printk(KERN_ERR "failed to register fallback SPROM\n");
878 }
879 #endif
880
881 /* read base address of boot chip select (0) */
882 if (BCMCPU_IS_6345())
883 val = 0x1fc00000;
884 else {
885 val = bcm_mpi_readl(MPI_CSBASE_REG(0));
886 val &= MPI_CSBASE_BASE_MASK;
887 }
888 mtd_resources[0].start = val;
889 mtd_resources[0].end = 0x1FFFFFFF;
890
891 platform_device_register(&mtd_dev);
892
893 /* Register GPIODEV */
894 platform_device_register_simple("GPIODEV", 0, &gpiodev_resource, 1);
895
896 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
897 bcm63xx_led_data.leds = board.leds;
898
899 platform_device_register(&bcm63xx_gpio_leds);
900
901 if (board.reset_btn) {
902 bcm63xx_gpio_buttons_data.nbuttons = 1,
903 bcm63xx_gpio_buttons_data.buttons = board.reset_btn;
904
905 platform_device_register(&bcm63xx_gpio_buttons_device);
906 }
907
908 return 0;
909 }
910