samsung.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2008-2010 Samsung Electronics
  4. * Kyungmin Park <[email protected]>
  5. */
  6. #ifndef __SAMSUNG_ONENAND_H__
  7. #define __SAMSUNG_ONENAND_H__
  8. /*
  9. * OneNAND Controller
  10. */
  11. #define MEM_CFG_OFFSET 0x0000
  12. #define BURST_LEN_OFFSET 0x0010
  13. #define MEM_RESET_OFFSET 0x0020
  14. #define INT_ERR_STAT_OFFSET 0x0030
  15. #define INT_ERR_MASK_OFFSET 0x0040
  16. #define INT_ERR_ACK_OFFSET 0x0050
  17. #define ECC_ERR_STAT_OFFSET 0x0060
  18. #define MANUFACT_ID_OFFSET 0x0070
  19. #define DEVICE_ID_OFFSET 0x0080
  20. #define DATA_BUF_SIZE_OFFSET 0x0090
  21. #define BOOT_BUF_SIZE_OFFSET 0x00A0
  22. #define BUF_AMOUNT_OFFSET 0x00B0
  23. #define TECH_OFFSET 0x00C0
  24. #define FBA_WIDTH_OFFSET 0x00D0
  25. #define FPA_WIDTH_OFFSET 0x00E0
  26. #define FSA_WIDTH_OFFSET 0x00F0
  27. #define TRANS_SPARE_OFFSET 0x0140
  28. #define DBS_DFS_WIDTH_OFFSET 0x0160
  29. #define INT_PIN_ENABLE_OFFSET 0x01A0
  30. #define ACC_CLOCK_OFFSET 0x01C0
  31. #define FLASH_VER_ID_OFFSET 0x01F0
  32. #define FLASH_AUX_CNTRL_OFFSET 0x0300 /* s3c64xx only */
  33. #define ONENAND_MEM_RESET_HOT 0x3
  34. #define ONENAND_MEM_RESET_COLD 0x2
  35. #define ONENAND_MEM_RESET_WARM 0x1
  36. #define CACHE_OP_ERR (1 << 13)
  37. #define RST_CMP (1 << 12)
  38. #define RDY_ACT (1 << 11)
  39. #define INT_ACT (1 << 10)
  40. #define UNSUP_CMD (1 << 9)
  41. #define LOCKED_BLK (1 << 8)
  42. #define BLK_RW_CMP (1 << 7)
  43. #define ERS_CMP (1 << 6)
  44. #define PGM_CMP (1 << 5)
  45. #define LOAD_CMP (1 << 4)
  46. #define ERS_FAIL (1 << 3)
  47. #define PGM_FAIL (1 << 2)
  48. #define INT_TO (1 << 1)
  49. #define LD_FAIL_ECC_ERR (1 << 0)
  50. #define TSRF (1 << 0)
  51. #endif