board.h 934 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * board.h
  3. *
  4. * TI AM335x boards information header
  5. *
  6. * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. */
  10. #ifndef _BOARD_H_
  11. #define _BOARD_H_
  12. typedef struct _BSP_VS_HWPARAM // v1.0
  13. {
  14. uint32_t Magic;
  15. uint32_t HwRev;
  16. uint32_t SerialNumber;
  17. char PrdDate[11]; // as a string ie. "01.01.2006"
  18. uint16_t SystemId;
  19. uint8_t MAC1[6]; // internal EMAC
  20. uint8_t MAC2[6]; // SMSC9514
  21. uint8_t MAC3[6]; // WL1271 WLAN
  22. } __attribute__ ((packed)) BSP_VS_HWPARAM;
  23. /*
  24. * We have three pin mux functions that must exist. We must be able to enable
  25. * uart0, for initial output and i2c0 to read the main EEPROM. We then have a
  26. * main pinmux function that can be overridden to enable all other pinmux that
  27. * is required on the board.
  28. */
  29. void enable_uart0_pin_mux(void);
  30. void enable_i2c1_pin_mux(void);
  31. void enable_board_pin_mux(void);
  32. #endif