Guest User

iPod cheap adapter flash chip flashchips.c snippet

a guest
Apr 22nd, 2025
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.24 KB | None | 0 0
  1. {
  2.         .vendor     = "IDK",
  3.         .name       = "UNKNOWNFLASH",
  4.         .bustype    = BUS_SPI,
  5.         .manufacture_id = 0x68,
  6.         .model_id   = 0x4013,
  7.         .total_size = 512,
  8.         .page_size  = 256,
  9.         /* supports SFDP */
  10.         /* QPI enable 0x38, disable 0xFF */
  11.         .feature_bits   = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
  12.         .tested     = TEST_UNTESTED,
  13.         .probe      = PROBE_SPI_RDID,
  14.         .probe_timing   = TIMING_ZERO,
  15.         .block_erasers  = {
  16.             {
  17.                 /* 128 * 4KB sectors */
  18.                 .eraseblocks = { {4 * 1024, 128} },
  19.                 .block_erase = SPI_BLOCK_ERASE_20,
  20.             }, {
  21.                 /* 16 * 32KB blocks */
  22.                 .eraseblocks = { {32 * 1024, 16} },
  23.                 .block_erase = SPI_BLOCK_ERASE_52,
  24.             }, {
  25.                 /* 8 * 64KB blocks  */
  26.                 .eraseblocks = { {64 * 1024, 8} },
  27.                 .block_erase = SPI_BLOCK_ERASE_D8,
  28.             }, {
  29.                 /* Full chip erase (0x60)  */
  30.                 .eraseblocks = { {512 * 1024, 1} },
  31.                 .block_erase = SPI_BLOCK_ERASE_60,
  32.             }, {
  33.                 /* Full chip erase (0xC7)  */
  34.                 .eraseblocks = { {512 * 1024, 1} },
  35.                 .block_erase = SPI_BLOCK_ERASE_C7,
  36.             },
  37.         },
  38.         .printlock  = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_TB_BPL,
  39.         .unlock     = SPI_DISABLE_BLOCKPROTECT_BP2_SRWD,
  40.         .write      = SPI_CHIP_WRITE256,
  41.         .read       = SPI_CHIP_READ, /* Fast read (0x0B) and multi I/O supported */
  42.         .voltage    = {2700, 3600},
  43.     },
Advertisement
Add Comment
Please, Sign In to add comment