samsung.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (C) 2008-2010 Samsung Electronics
  3. * Kyungmin Park <kyungmin.park@samsung.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __SAMSUNG_ONENAND_H__
  10. #define __SAMSUNG_ONENAND_H__
  11. /*
  12. * OneNAND Controller
  13. */
  14. #define MEM_CFG_OFFSET 0x0000
  15. #define BURST_LEN_OFFSET 0x0010
  16. #define MEM_RESET_OFFSET 0x0020
  17. #define INT_ERR_STAT_OFFSET 0x0030
  18. #define INT_ERR_MASK_OFFSET 0x0040
  19. #define INT_ERR_ACK_OFFSET 0x0050
  20. #define ECC_ERR_STAT_OFFSET 0x0060
  21. #define MANUFACT_ID_OFFSET 0x0070
  22. #define DEVICE_ID_OFFSET 0x0080
  23. #define DATA_BUF_SIZE_OFFSET 0x0090
  24. #define BOOT_BUF_SIZE_OFFSET 0x00A0
  25. #define BUF_AMOUNT_OFFSET 0x00B0
  26. #define TECH_OFFSET 0x00C0
  27. #define FBA_WIDTH_OFFSET 0x00D0
  28. #define FPA_WIDTH_OFFSET 0x00E0
  29. #define FSA_WIDTH_OFFSET 0x00F0
  30. #define TRANS_SPARE_OFFSET 0x0140
  31. #define DBS_DFS_WIDTH_OFFSET 0x0160
  32. #define INT_PIN_ENABLE_OFFSET 0x01A0
  33. #define ACC_CLOCK_OFFSET 0x01C0
  34. #define FLASH_VER_ID_OFFSET 0x01F0
  35. #define FLASH_AUX_CNTRL_OFFSET 0x0300 /* s3c64xx only */
  36. #define ONENAND_MEM_RESET_HOT 0x3
  37. #define ONENAND_MEM_RESET_COLD 0x2
  38. #define ONENAND_MEM_RESET_WARM 0x1
  39. #define CACHE_OP_ERR (1 << 13)
  40. #define RST_CMP (1 << 12)
  41. #define RDY_ACT (1 << 11)
  42. #define INT_ACT (1 << 10)
  43. #define UNSUP_CMD (1 << 9)
  44. #define LOCKED_BLK (1 << 8)
  45. #define BLK_RW_CMP (1 << 7)
  46. #define ERS_CMP (1 << 6)
  47. #define PGM_CMP (1 << 5)
  48. #define LOAD_CMP (1 << 4)
  49. #define ERS_FAIL (1 << 3)
  50. #define PGM_FAIL (1 << 2)
  51. #define INT_TO (1 << 1)
  52. #define LD_FAIL_ECC_ERR (1 << 0)
  53. #define TSRF (1 << 0)
  54. #endif