sunxi_def.h 643 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef SUNXI_DEF_H
  7. #define SUNXI_DEF_H
  8. /* Clock configuration */
  9. #define SUNXI_OSC24M_CLK_IN_HZ 24000000
  10. /* UART configuration */
  11. #define SUNXI_UART0_BAUDRATE 115200
  12. #define SUNXI_UART0_CLK_IN_HZ SUNXI_OSC24M_CLK_IN_HZ
  13. #define SUNXI_SOC_A64 0x1689
  14. #define SUNXI_SOC_H5 0x1718
  15. #define SUNXI_SOC_H6 0x1728
  16. #define SUNXI_SOC_H616 0x1823
  17. #define SUNXI_SOC_R329 0x1851
  18. #define SUNXI_VER_BITS_MASK 0xffU
  19. #define JEDEC_ALLWINNER_BKID 9U
  20. #define JEDEC_ALLWINNER_MFID 0x9eU
  21. #endif /* SUNXI_DEF_H */