board_bcm963xx.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_dsp.h>
  8. /*
  9. * flash mapping
  10. */
  11. #define BCM963XX_CFE_VERSION_OFFSET 0x570
  12. #define BCM963XX_NVRAM_OFFSET 0x580
  13. /*
  14. * nvram structure
  15. */
  16. struct bcm963xx_nvram {
  17. u32 version;
  18. u8 reserved1[256];
  19. u8 name[16];
  20. u32 main_tp_number;
  21. u32 psi_size;
  22. u32 mac_addr_count;
  23. u8 mac_addr_base[6];
  24. u8 reserved2[2];
  25. u32 checksum_old;
  26. u8 reserved3[720];
  27. u32 checksum_high;
  28. };
  29. /*
  30. * board definition
  31. */
  32. struct board_info {
  33. u8 name[16];
  34. unsigned int expected_cpu_id;
  35. /* enabled feature/device */
  36. unsigned int has_enet0:1;
  37. unsigned int has_enet1:1;
  38. unsigned int has_pci:1;
  39. unsigned int has_pccard:1;
  40. unsigned int has_ohci0:1;
  41. unsigned int has_ehci0:1;
  42. unsigned int has_dsp:1;
  43. /* ethernet config */
  44. struct bcm63xx_enet_platform_data enet0;
  45. struct bcm63xx_enet_platform_data enet1;
  46. /* DSP config */
  47. struct bcm63xx_dsp_platform_data dsp;
  48. /* GPIO LEDs */
  49. struct gpio_led leds[5];
  50. };
  51. #endif /* ! BOARD_BCM963XX_H_ */