Lines Matching refs:board

34 static struct board_info board;
680 * Register a sane SPROMv2 to make the on-board
718 * return board name for /proc/cpuinfo
722 return board.name;
779 /* find board by name */
783 /* copy, board desc array is marked initdata */
784 memcpy(&board, bcm963xx_boards[i], sizeof(board));
788 /* bail out if board is not found, will complain later */
789 if (!board.name[0]) {
793 pr_err("unknown bcm963xx board: %s\n", name);
797 /* setup pin multiplexing depending on board enabled device,
803 if (board.has_pci) {
810 if (board.has_pccard) {
815 if (board.has_enet0 && !board.enet0.use_internal_phy) {
821 if (board.has_enet1 && !board.enet1.use_internal_phy) {
832 * identify on which board we're running since early printk is working
836 if (!board.name[0])
837 panic("unable to detect bcm963xx board");
838 pr_info("board name: %s\n", board.name);
841 if (bcm63xx_get_cpu_id() != board.expected_cpu_id)
842 panic("unexpected CPU for bcm963xx board");
854 * third stage init callback, register all board devices.
858 if (board.has_uart0)
861 if (board.has_uart1)
864 if (board.has_pccard)
867 if (board.has_enet0 &&
868 !bcm63xx_nvram_get_mac_address(board.enet0.mac_addr))
869 bcm63xx_enet_register(0, &board.enet0);
871 if (board.has_enet1 &&
872 !bcm63xx_nvram_get_mac_address(board.enet1.mac_addr))
873 bcm63xx_enet_register(1, &board.enet1);
875 if (board.has_enetsw &&
876 !bcm63xx_nvram_get_mac_address(board.enetsw.mac_addr))
877 bcm63xx_enetsw_register(&board.enetsw);
879 if (board.has_usbd)
880 bcm63xx_usbd_register(&board.usbd);
901 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
902 bcm63xx_led_data.leds = board.leds;
906 if (board.ephy_reset_gpio && board.ephy_reset_gpio_flags)
907 gpio_request_one(board.ephy_reset_gpio,
908 board.ephy_reset_gpio_flags, "ephy-reset");