sunxi_spc.h 480 B

1234567891011121314151617
  1. /*
  2. * Copyright (c) 2021 Sipeed
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef SUNXI_SPC_H
  7. #define SUNXI_SPC_H
  8. /* Get by REing stock ATF and checking initialization loop boundary */
  9. #define SUNXI_SPC_NUM_PORTS 11
  10. #define SUNXI_SPC_DECPORT_STA_REG(p) (SUNXI_SPC_BASE + 0x0000 + 0x10 * (p))
  11. #define SUNXI_SPC_DECPORT_SET_REG(p) (SUNXI_SPC_BASE + 0x0004 + 0x10 * (p))
  12. #define SUNXI_SPC_DECPORT_CLR_REG(p) (SUNXI_SPC_BASE + 0x0008 + 0x10 * (p))
  13. #endif /* SUNXI_SPC_H */