bcsr.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2009 Freescale Semiconductor, Inc.
  4. */
  5. #ifndef __BCSR_H_
  6. #define __BCSR_H_
  7. #include <common.h>
  8. /* BCSR Bit definitions*/
  9. /****************************************/
  10. /* BCSR defines */
  11. /****************************************/
  12. #define BCSR6_UPC1_EN 0x80
  13. #define BCSR6_UPC1_POS_EN 0x40
  14. #define BCSR6_UPC1_ADDR_EN 0x20
  15. #define BCSR6_UPC1_DEV2 0x10
  16. #define BCSR6_SD_CARD_1BIT 0x08
  17. #define BCSR6_SD_CARD_4BITS 0x04
  18. #define BCSR6_TDM2G_EN 0x02
  19. #define BCSR6_UCC7_RMII_EN 0x01
  20. #define BCSR7_UCC1_GETH_EN 0x80
  21. #define BCSR7_UCC1_RGMII_EN 0x40
  22. #define BCSR7_UCC1_RTBI_EN 0x20
  23. #define BCSR7_GETHRST_MRVL 0x04
  24. #define BCSR7_BRD_WRT_PROTECT 0x02
  25. #define BCSR8_UCC2_GETH_EN 0x80
  26. #define BCSR8_UCC2_RGMII_EN 0x40
  27. #define BCSR8_UCC2_RTBI_EN 0x20
  28. #define BCSR8_UEM_MARVEL_RESET 0x02
  29. #define BCSR9_UCC3_GETH_EN 0x80
  30. #define BCSR9_UCC3_RGMII_EN 0x40
  31. #define BCSR9_UCC3_RTBI_EN 0x20
  32. #define BCSR9_UCC3_RMII_EN 0x10
  33. #define BCSR9_UCC3_UEM_MICREL 0x01
  34. #define BCSR10_UCC4_GETH_EN 0x80
  35. #define BCSR10_UCC4_RGMII_EN 0x40
  36. #define BCSR10_UCC4_RTBI_EN 0x20
  37. #define BCSR11_LED0 0x40
  38. #define BCSR11_LED1 0x20
  39. #define BCSR11_LED2 0x10
  40. #define BCSR12_UCC6_RMII_EN 0x20
  41. #define BCSR12_UCC8_RMII_EN 0x20
  42. #define BCSR15_SMII6_DIS 0x08
  43. #define BCSR15_SMII8_DIS 0x04
  44. #define BCSR15_QEUART_EN 0x01
  45. #define BCSR16_UPC1_DEV2 0x02
  46. #define BCSR17_nUSBEN 0x80
  47. #define BCSR17_nUSBLOWSPD 0x40
  48. #define BCSR17_USBVCC 0x20
  49. #define BCSR17_USBMODE 0x10
  50. #define BCSR17_FLASH_nWP 0x01
  51. /*BCSR Utils functions*/
  52. void enable_8569mds_flash_write(void);
  53. void disable_8569mds_flash_write(void);
  54. void enable_8569mds_qe_uec(void);
  55. void disable_8569mds_brd_eeprom_write_protect(void);
  56. #endif /* __BCSR_H_ */