reg_fwsram.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
  4. *
  5. * Copyright (C) 2006 Micronas GmbH
  6. */
  7. /*
  8. * Premium & Platinum register addresses/definitions seem to be
  9. * identical, so we only need to use one file for both platforms.
  10. */
  11. #ifndef _REG_FWSRAM_H_
  12. #define _REG_FWSRAM_H_
  13. #define FWSRAM_BASE 0x00030000
  14. /* Relative offsets of the register adresses */
  15. #define FWSRAM_SR_ADDR_OFFSET_OFFS 0x00002000
  16. #define FWSRAM_SR_ADDR_OFFSET(base) ((base) + FWSRAM_SR_ADDR_OFFSET_OFFS)
  17. #define FWSRAM_TOP_BOOT_LOG_OFFS 0x00002004
  18. #define FWSRAM_TOP_BOOT_LOG(base) ((base) + FWSRAM_TOP_BOOT_LOG_OFFS)
  19. #define FWSRAM_TOP_ROM_KBIST_OFFS 0x00002008
  20. #define FWSRAM_TOP_ROM_KBIST(base) ((base) + FWSRAM_TOP_ROM_KBIST_OFFS)
  21. #define FWSRAM_TOP_CID1_H_OFFS 0x0000200C
  22. #define FWSRAM_TOP_CID1_H(base) ((base) + FWSRAM_TOP_CID1_H_OFFS)
  23. #define FWSRAM_TOP_CID1_L_OFFS 0x00002010
  24. #define FWSRAM_TOP_CID1_L(base) ((base) + FWSRAM_TOP_CID1_L_OFFS)
  25. #define FWSRAM_TOP_CID2_H_OFFS 0x00002014
  26. #define FWSRAM_TOP_CID2_H(base) ((base) + FWSRAM_TOP_CID2_H_OFFS)
  27. #define FWSRAM_TOP_CID2_L_OFFS 0x00002018
  28. #define FWSRAM_TOP_CID2_L(base) ((base) + FWSRAM_TOP_CID2_L_OFFS)
  29. #define FWSRAM_TOP_TDO_CFG_OFFS 0x0000203C
  30. #define FWSRAM_TOP_TDO_CFG(base) ((base) + FWSRAM_TOP_TDO_CFG_OFFS)
  31. #define FWSRAM_TOP_GPIO2_0_CFG_OFFS 0x00002040
  32. #define FWSRAM_TOP_GPIO2_0_CFG(base) ((base) + FWSRAM_TOP_GPIO2_0_CFG_OFFS)
  33. #define FWSRAM_TOP_GPIO2_1_CFG_OFFS 0x00002044
  34. #define FWSRAM_TOP_GPIO2_1_CFG(base) ((base) + FWSRAM_TOP_GPIO2_1_CFG_OFFS)
  35. #define FWSRAM_TOP_GPIO2_2_CFG_OFFS 0x00002048
  36. #define FWSRAM_TOP_GPIO2_2_CFG(base) ((base) + FWSRAM_TOP_GPIO2_2_CFG_OFFS)
  37. #define FWSRAM_TOP_GPIO2_3_CFG_OFFS 0x0000204C
  38. #define FWSRAM_TOP_GPIO2_3_CFG(base) ((base) + FWSRAM_TOP_GPIO2_3_CFG_OFFS)
  39. #define FWSRAM_TOP_GPIO2_4_CFG_OFFS 0x00002050
  40. #define FWSRAM_TOP_GPIO2_4_CFG(base) ((base) + FWSRAM_TOP_GPIO2_4_CFG_OFFS)
  41. #define FWSRAM_TOP_GPIO2_5_CFG_OFFS 0x00002054
  42. #define FWSRAM_TOP_GPIO2_5_CFG(base) ((base) + FWSRAM_TOP_GPIO2_5_CFG_OFFS)
  43. #define FWSRAM_TOP_GPIO2_6_CFG_OFFS 0x00002058
  44. #define FWSRAM_TOP_GPIO2_6_CFG(base) ((base) + FWSRAM_TOP_GPIO2_6_CFG_OFFS)
  45. #define FWSRAM_TOP_GPIO2_7_CFG_OFFS 0x0000205C
  46. #define FWSRAM_TOP_GPIO2_7_CFG(base) ((base) + FWSRAM_TOP_GPIO2_7_CFG_OFFS)
  47. #define FWSRAM_TOP_SCL_CFG_OFFS 0x00002060
  48. #define FWSRAM_TOP_SCL_CFG(base) ((base) + FWSRAM_TOP_SCL_CFG_OFFS)
  49. #define FWSRAM_TOP_SDA_CFG_OFFS 0x00002064
  50. #define FWSRAM_TOP_SDA_CFG(base) ((base) + FWSRAM_TOP_SDA_CFG_OFFS)
  51. #define FWSRAM_NO_MCM_FLASH_OFFS 0x00002068
  52. #define FWSRAM_NO_MCM_FLASH(base) ((base) + FWSRAM_NO_MCM_FLASH_OFFS)
  53. #endif