board_bcm963xx.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef BOARD_BCM963XX_H_
  2. #define BOARD_BCM963XX_H_
  3. #include <linux/types.h>
  4. #include <linux/gpio.h>
  5. #include <linux/leds.h>
  6. #include <bcm63xx_dev_enet.h>
  7. #include <bcm63xx_dev_usb_usbd.h>
  8. #include <bcm63xx_dev_dsp.h>
  9. /*
  10. * flash mapping
  11. */
  12. #define BCM963XX_CFE_VERSION_OFFSET 0x570
  13. #define BCM963XX_NVRAM_OFFSET 0x580
  14. /*
  15. * board definition
  16. */
  17. struct board_info {
  18. u8 name[16];
  19. unsigned int expected_cpu_id;
  20. /* enabled feature/device */
  21. unsigned int has_enet0:1;
  22. unsigned int has_enet1:1;
  23. unsigned int has_enetsw:1;
  24. unsigned int has_pci:1;
  25. unsigned int has_pccard:1;
  26. unsigned int has_ohci0:1;
  27. unsigned int has_ehci0:1;
  28. unsigned int has_usbd:1;
  29. unsigned int has_dsp:1;
  30. unsigned int has_uart0:1;
  31. unsigned int has_uart1:1;
  32. /* ethernet config */
  33. struct bcm63xx_enet_platform_data enet0;
  34. struct bcm63xx_enet_platform_data enet1;
  35. struct bcm63xx_enetsw_platform_data enetsw;
  36. /* USB config */
  37. struct bcm63xx_usbd_platform_data usbd;
  38. /* DSP config */
  39. struct bcm63xx_dsp_platform_data dsp;
  40. /* GPIO LEDs */
  41. struct gpio_led leds[5];
  42. /* External PHY reset GPIO */
  43. unsigned int ephy_reset_gpio;
  44. /* External PHY reset GPIO flags from gpio.h */
  45. unsigned long ephy_reset_gpio_flags;
  46. };
  47. #endif /* ! BOARD_BCM963XX_H_ */