mt7621.h 908 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. *
  4. * Copyright (C) 2015 John Crispin <[email protected]>
  5. */
  6. #ifndef _MT7621_REGS_H_
  7. #define _MT7621_REGS_H_
  8. #define IOMEM(x) ((void __iomem *)(KSEG1ADDR(x)))
  9. #define MT7621_PALMBUS_BASE 0x1C000000
  10. #define MT7621_PALMBUS_SIZE 0x03FFFFFF
  11. #define MT7621_SYSC_BASE IOMEM(0x1E000000)
  12. #define SYSC_REG_CHIP_NAME0 0x00
  13. #define SYSC_REG_CHIP_NAME1 0x04
  14. #define SYSC_REG_CHIP_REV 0x0c
  15. #define SYSC_REG_SYSTEM_CONFIG0 0x10
  16. #define SYSC_REG_SYSTEM_CONFIG1 0x14
  17. #define CHIP_REV_PKG_MASK 0x1
  18. #define CHIP_REV_PKG_SHIFT 16
  19. #define CHIP_REV_VER_MASK 0xf
  20. #define CHIP_REV_VER_SHIFT 8
  21. #define CHIP_REV_ECO_MASK 0xf
  22. #define MT7621_LOWMEM_BASE 0x0
  23. #define MT7621_LOWMEM_MAX_SIZE 0x1C000000
  24. #define MT7621_HIGHMEM_BASE 0x20000000
  25. #define MT7621_HIGHMEM_SIZE 0x4000000
  26. #define MT7621_CHIP_NAME0 0x3637544D
  27. #define MT7621_CHIP_NAME1 0x20203132
  28. #endif