Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef BOARD_BCM963XX_H_
0003 #define BOARD_BCM963XX_H_
0004 
0005 #include <linux/types.h>
0006 #include <linux/gpio.h>
0007 #include <linux/leds.h>
0008 #include <bcm63xx_dev_enet.h>
0009 #include <bcm63xx_dev_usb_usbd.h>
0010 
0011 /*
0012  * flash mapping
0013  */
0014 #define BCM963XX_CFE_VERSION_OFFSET 0x570
0015 #define BCM963XX_NVRAM_OFFSET       0x580
0016 
0017 /*
0018  * board definition
0019  */
0020 struct board_info {
0021     u8      name[16];
0022     unsigned int    expected_cpu_id;
0023 
0024     /* enabled feature/device */
0025     unsigned int    has_enet0:1;
0026     unsigned int    has_enet1:1;
0027     unsigned int    has_enetsw:1;
0028     unsigned int    has_pci:1;
0029     unsigned int    has_pccard:1;
0030     unsigned int    has_ohci0:1;
0031     unsigned int    has_ehci0:1;
0032     unsigned int    has_usbd:1;
0033     unsigned int    has_uart0:1;
0034     unsigned int    has_uart1:1;
0035 
0036     /* ethernet config */
0037     struct bcm63xx_enet_platform_data enet0;
0038     struct bcm63xx_enet_platform_data enet1;
0039     struct bcm63xx_enetsw_platform_data enetsw;
0040 
0041     /* USB config */
0042     struct bcm63xx_usbd_platform_data usbd;
0043 
0044     /* GPIO LEDs */
0045     struct gpio_led leds[5];
0046 
0047     /* External PHY reset GPIO */
0048     unsigned int ephy_reset_gpio;
0049 
0050     /* External PHY reset GPIO flags from gpio.h */
0051     unsigned long ephy_reset_gpio_flags;
0052 };
0053 
0054 #endif /* ! BOARD_BCM963XX_H_ */