board_bcm963xx.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. * nvram structure
  16. */
  17. struct bcm963xx_nvram {
  18. u32 version;
  19. u8 reserved1[256];
  20. u8 name[16];
  21. u32 main_tp_number;
  22. u32 psi_size;
  23. u32 mac_addr_count;
  24. u8 mac_addr_base[6];
  25. u8 reserved2[2];
  26. u32 checksum_old;
  27. u8 reserved3[720];
  28. u32 checksum_high;
  29. };
  30. /*
  31. * board definition
  32. */
  33. struct board_info {
  34. u8 name[16];
  35. unsigned int expected_cpu_id;
  36. /* enabled feature/device */
  37. unsigned int has_enet0:1;
  38. unsigned int has_enet1:1;
  39. unsigned int has_pci:1;
  40. unsigned int has_pccard:1;
  41. unsigned int has_ohci0:1;
  42. unsigned int has_ehci0:1;
  43. unsigned int has_usbd:1;
  44. unsigned int has_dsp:1;
  45. unsigned int has_uart0:1;
  46. unsigned int has_uart1:1;
  47. /* ethernet config */
  48. struct bcm63xx_enet_platform_data enet0;
  49. struct bcm63xx_enet_platform_data enet1;
  50. /* USB config */
  51. struct bcm63xx_usbd_platform_data usbd;
  52. /* DSP config */
  53. struct bcm63xx_dsp_platform_data dsp;
  54. /* GPIO LEDs */
  55. struct gpio_led leds[5];
  56. };
  57. #endif /* ! BOARD_BCM963XX_H_ */