102-jedec_pmc_39lvxxx_chips.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --- a/drivers/mtd/chips/jedec_probe.c
  2. +++ b/drivers/mtd/chips/jedec_probe.c
  3. @@ -115,6 +115,10 @@
  4. #define UPD29F064115 0x221C
  5. /* PMC */
  6. +#define PM39LV512 0x001B
  7. +#define PM39LV010 0x001C
  8. +#define PM39LV020 0x003D
  9. +#define PM39LV040 0x003E
  10. #define PM49FL002 0x006D
  11. #define PM49FL004 0x006E
  12. #define PM49FL008 0x006A
  13. @@ -1259,6 +1263,54 @@ static const struct amd_flash_info jedec
  14. ERASEINFO(0x02000,2),
  15. ERASEINFO(0x04000,1),
  16. }
  17. + }, {
  18. + .mfr_id = CFI_MFR_PMC,
  19. + .dev_id = PM39LV512,
  20. + .name = "PMC Pm39LV512",
  21. + .devtypes = CFI_DEVICETYPE_X8,
  22. + .uaddr = MTD_UADDR_0x0555_0x02AA,
  23. + .dev_size = SIZE_64KiB,
  24. + .cmd_set = P_ID_AMD_STD,
  25. + .nr_regions = 1,
  26. + .regions = {
  27. + ERASEINFO(0x01000,16),
  28. + }
  29. + }, {
  30. + .mfr_id = CFI_MFR_PMC,
  31. + .dev_id = PM39LV010,
  32. + .name = "PMC Pm39LV010",
  33. + .devtypes = CFI_DEVICETYPE_X8,
  34. + .uaddr = MTD_UADDR_0x0555_0x02AA,
  35. + .dev_size = SIZE_128KiB,
  36. + .cmd_set = P_ID_AMD_STD,
  37. + .nr_regions = 1,
  38. + .regions = {
  39. + ERASEINFO(0x01000,32),
  40. + }
  41. + }, {
  42. + .mfr_id = CFI_MFR_PMC,
  43. + .dev_id = PM39LV020,
  44. + .name = "PMC Pm39LV020",
  45. + .devtypes = CFI_DEVICETYPE_X8,
  46. + .uaddr = MTD_UADDR_0x0555_0x02AA,
  47. + .dev_size = SIZE_256KiB,
  48. + .cmd_set = P_ID_AMD_STD,
  49. + .nr_regions = 1,
  50. + .regions = {
  51. + ERASEINFO(0x01000,64),
  52. + }
  53. + }, {
  54. + .mfr_id = CFI_MFR_PMC,
  55. + .dev_id = PM39LV040,
  56. + .name = "PMC Pm39LV040",
  57. + .devtypes = CFI_DEVICETYPE_X8,
  58. + .uaddr = MTD_UADDR_0x0555_0x02AA,
  59. + .dev_size = SIZE_512KiB,
  60. + .cmd_set = P_ID_AMD_STD,
  61. + .nr_regions = 1,
  62. + .regions = {
  63. + ERASEINFO(0x01000,128),
  64. + }
  65. }, {
  66. .mfr_id = CFI_MFR_PMC,
  67. .dev_id = PM49FL002,