Lines Matching +full:on +full:- +full:board

1 // SPDX-License-Identifier: GPL-2.0-only
34 static struct board_info board; variable
60 .default_trigger= "default-on",
85 .name = "96328avng::ppp-fail",
93 .default_trigger = "default-on",
96 .name = "96328avng::power-fail",
143 .name = "ppp-fail",
151 .default_trigger = "default-on",
185 .name = "ppp-fail",
193 .default_trigger = "default-on",
235 .name = "adsl-fail",
245 .name = "ppp-fail",
253 .default_trigger = "default-on",
265 .name = "96348GW-10",
287 .name = "adsl-fail",
297 .name = "ppp-fail",
305 .default_trigger = "default-on",
316 .name = "96348GW-11",
338 .name = "adsl-fail",
348 .name = "ppp-fail",
356 .default_trigger = "default-on",
388 .name = "adsl-fail",
398 .name = "ppp-fail",
406 .default_trigger = "default-on",
479 .name = "96348GW-A",
528 .name = "adsl-fail",
538 .name = "ppp-fail",
545 .default_trigger = "default-on",
583 .name = "ppp-fail",
590 .default_trigger = "default-on",
601 .name = "AGPF-S0",
623 .name = "DWV-S0",
680 * Register a sane SPROMv2 to make the on-board
707 if (bus->bustype == SSB_BUSTYPE_PCI) { in bcm63xx_get_fallback_sprom()
712 return -EINVAL; in bcm63xx_get_fallback_sprom()
718 * return board name for /proc/cpuinfo
722 return board.name; in board_get_name()
750 if (strstarts(cfe, "cfe-")) { in board_prom_init()
757 "%u.%u.%u-%u.%u-%u", cfe[5], cfe[6], in board_prom_init()
761 "%u.%u.%u-%u.%u", cfe[5], cfe[6], in board_prom_init()
775 board_name = hcs->filename; in board_prom_init()
779 /* find board by name */ in board_prom_init()
781 if (strncmp(board_name, bcm963xx_boards[i]->name, 16)) in board_prom_init()
783 /* copy, board desc array is marked initdata */ in board_prom_init()
784 memcpy(&board, bcm963xx_boards[i], sizeof(board)); in board_prom_init()
788 /* bail out if board is not found, will complain later */ in board_prom_init()
789 if (!board.name[0]) { in board_prom_init()
793 pr_err("unknown bcm963xx board: %s\n", name); in board_prom_init()
797 /* setup pin multiplexing depending on board enabled device, in board_prom_init()
803 if (board.has_pci) { in board_prom_init()
810 if (board.has_pccard) { in board_prom_init()
815 if (board.has_enet0 && !board.enet0.use_internal_phy) { in board_prom_init()
821 if (board.has_enet1 && !board.enet1.use_internal_phy) { in board_prom_init()
832 * identify on which board we're running since early printk is working
836 if (!board.name[0]) in board_setup()
837 panic("unable to detect bcm963xx board"); in board_setup()
838 pr_info("board name: %s\n", board.name); in board_setup()
840 /* make sure we're running on expected cpu */ in board_setup()
841 if (bcm63xx_get_cpu_id() != board.expected_cpu_id) in board_setup()
842 panic("unexpected CPU for bcm963xx board"); in board_setup()
848 .name = "leds-gpio",
854 * third stage init callback, register all board devices.
858 if (board.has_uart0) in board_register_devices()
861 if (board.has_uart1) in board_register_devices()
864 if (board.has_pccard) in board_register_devices()
867 if (board.has_enet0 && in board_register_devices()
868 !bcm63xx_nvram_get_mac_address(board.enet0.mac_addr)) in board_register_devices()
869 bcm63xx_enet_register(0, &board.enet0); in board_register_devices()
871 if (board.has_enet1 && in board_register_devices()
872 !bcm63xx_nvram_get_mac_address(board.enet1.mac_addr)) in board_register_devices()
873 bcm63xx_enet_register(1, &board.enet1); in board_register_devices()
875 if (board.has_enetsw && in board_register_devices()
876 !bcm63xx_nvram_get_mac_address(board.enetsw.mac_addr)) in board_register_devices()
877 bcm63xx_enetsw_register(&board.enetsw); in board_register_devices()
879 if (board.has_usbd) in board_register_devices()
880 bcm63xx_usbd_register(&board.usbd); in board_register_devices()
901 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); in board_register_devices()
902 bcm63xx_led_data.leds = board.leds; in board_register_devices()
906 if (board.ephy_reset_gpio && board.ephy_reset_gpio_flags) in board_register_devices()
907 gpio_request_one(board.ephy_reset_gpio, in board_register_devices()
908 board.ephy_reset_gpio_flags, "ephy-reset"); in board_register_devices()