Guest User

iPod flashchips.c cheap adapter patch

a guest
Apr 22nd, 2025
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. diff --git a/flashchips.c b/flashchips.c
  2. index 615419de..59a31740 100644
  3. --- a/flashchips.c
  4. +++ b/flashchips.c
  5. @@ -299,6 +299,50 @@ const struct flashchip flashchips[] = {
  6. .write = 0,
  7. },
  8.  
  9. + {
  10. + .vendor = "MAMRD",
  11. + .name = "KOKOT",
  12. + .bustype = BUS_SPI,
  13. + .manufacture_id = 0x68,
  14. + .model_id = 0x4013,
  15. + .total_size = 512,
  16. + .page_size = 256,
  17. + /* supports SFDP */
  18. + /* QPI enable 0x38, disable 0xFF */
  19. + .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
  20. + .tested = TEST_UNTESTED,
  21. + .probe = PROBE_SPI_RDID,
  22. + .probe_timing = TIMING_ZERO,
  23. + .block_erasers = {
  24. + {
  25. + /* 128 * 4KB sectors */
  26. + .eraseblocks = { {4 * 1024, 128} },
  27. + .block_erase = SPI_BLOCK_ERASE_20,
  28. + }, {
  29. + /* 16 * 32KB blocks */
  30. + .eraseblocks = { {32 * 1024, 16} },
  31. + .block_erase = SPI_BLOCK_ERASE_52,
  32. + }, {
  33. + /* 8 * 64KB blocks */
  34. + .eraseblocks = { {64 * 1024, 8} },
  35. + .block_erase = SPI_BLOCK_ERASE_D8,
  36. + }, {
  37. + /* Full chip erase (0x60) */
  38. + .eraseblocks = { {512 * 1024, 1} },
  39. + .block_erase = SPI_BLOCK_ERASE_60,
  40. + }, {
  41. + /* Full chip erase (0xC7) */
  42. + .eraseblocks = { {512 * 1024, 1} },
  43. + .block_erase = SPI_BLOCK_ERASE_C7,
  44. + },
  45. + },
  46. + .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_TB_BPL,
  47. + .unlock = SPI_DISABLE_BLOCKPROTECT_BP2_SRWD,
  48. + .write = SPI_CHIP_WRITE256,
  49. + .read = SPI_CHIP_READ, /* Fast read (0x0B) and multi I/O supported */
  50. + .voltage = {2700, 3600},
  51. + },
  52. +
  53. {0}
  54. };
  55.  
  56.  
Advertisement
Add Comment
Please, Sign In to add comment