Skip to content

Commit

Permalink
SKHynix: update voltage and rename SKHynix25 to SKHynix3D
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Oct 27, 2019
1 parent 9810819 commit 977de92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SKHynix extends Decoder{
"L" => "2.7V",
"S" => "1.8V",
"J" => "2.7V~3.6V/1.2V",
"Q" => "Vcc: 3.3V, VccQ: 1.8V (Full speed)/ 3.3V"
"Q" => "Vcc: 2.7V~3.6V, VccQ: 1.7V~1.95V/2.7V~3.6V"
];
protected const DENSITY = [
"64" => 64,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use iTXTech\FlashDetector\Property\FlashInterface;
use iTXTech\SimpleFramework\Util\StringUtil;

class SKHynix25 extends SKHynix{
class SKHynix3D extends SKHynix{
public static function check(string $partNumber) : bool{
if(StringUtil::startsWith($partNumber, "H25")){
return true;
Expand All @@ -40,7 +40,7 @@ public static function decode(string $partNumber) : FlashInfo{
//B => ToggleDDR 4.0, Q => ToggleDDR 2.0 | maybe voltage
$flashInfo->setExtraInfo([
"toggle" => self::getOrDefault(self::shiftChars($partNumber, 1), ["B" => "4.0", "Q" => "2.0"])
])->setVoltage("Vcc: 2.7V ~ 3.6V, VccQ: 1.7V ~ 1.95V/1.14V~1.26V");
])->setVoltage("Vcc: 2.7V~3.6V, VccQ: 1.7V~1.95V/1.14V~1.26V");
self::shiftChars($partNumber, 1);//E, F ???
$flashInfo->setCellLevel($level = self::getOrDefault(self::shiftChars($partNumber, 1), [
"M" => 2,
Expand Down
4 changes: 2 additions & 2 deletions FlashDetector/src/iTXTech/FlashDetector/FlashDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use iTXTech\FlashDetector\Decoder\SanDisk;
use iTXTech\FlashDetector\Decoder\SanDiskShortCode;
use iTXTech\FlashDetector\Decoder\SKHynix;
use iTXTech\FlashDetector\Decoder\SKHynix25;
use iTXTech\FlashDetector\Decoder\SKHynix3D;
use iTXTech\FlashDetector\Decoder\SKHynixLegacy;
use iTXTech\FlashDetector\Decoder\SpecTek;
use iTXTech\FlashDetector\Decoder\Toshiba;
Expand Down Expand Up @@ -98,7 +98,7 @@ public static function loadDatabase(){

public static function init(string $lang = "eng", string $fallbackLang = "eng"){
self::registerDecoder(Micron::class);
self::registerDecoder(SKHynix25::class);
self::registerDecoder(SKHynix3D::class);
self::registerDecoder(SKHynix::class);
self::registerDecoder(SKHynixLegacy::class);
self::registerDecoder(Toshiba::class);
Expand Down

0 comments on commit 977de92

Please sign in to comment.