Skip to content

Commit 29940ba

Browse files
committed
Phison: update o=>v4, fd 77.3
1 parent c4fc847 commit 29940ba

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

FlashDetector/sf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "FlashDetector",
3-
"version": "2",
3+
"version": "3",
44
"api": 6,
55
"description": "Universal NAND Flash Part Number Decoder",
66
"author": "iTX Technologies",

FlashDetector/src/iTXTech/FlashDetector/Decoder/Phison.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class Phison extends Decoder {
9797
"Y" => ["B47R", 3]
9898
],
9999
Constants::VENDOR_SKHYNIX => [
100-
"P" => ["16nm", 3]
100+
"P" => ["16nm", 3],
101+
"O" => ["3DV4", 3]
101102
],
102103
Constants::VENDOR_YANGTZE => [
103104
"O" => ["JGS", 3]
@@ -118,7 +119,7 @@ public static function check(string $partNumber): bool {
118119
}
119120

120121
public static function decode(string $partNumber): FlashInfo {
121-
$flashInfo = (new FlashInfo($partNumber))->setVendor(self::getName())
122+
$flashInfo = (new FlashInfo($partNumber))->setVendor(self::getName())->setType(Constants::NAND_TYPE_NAND)
122123
->setExtraInfo([Constants::ORIGINAL_VENDOR => ($vendor = self::getOrDefault(self::shiftChars($partNumber, 1), self::REBRAND_VENDOR))])
123124
->setPackage(self::getOrDefault(self::shiftChars($partNumber, 1), self::PACKAGE));
124125
$clz = self::getOrDefault(self::shiftChars($partNumber, 1), self::CLASSIFICATION, [-1, -1]);

0 commit comments

Comments
 (0)