summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-05-05 23:18:04 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-05-11 19:56:21 +0200
commit4fef1834e2fa06b415381ef6ac5c17b3204c9102 (patch)
tree26a16ec6cdc788ea0271192a26f71e4381652e47 /utils/regtools/qeditor/backend.cpp
parentd8071221c5a91fa51f75db9d7a53f1a82a78ffe4 (diff)
downloadrockbox-4fef1834e2fa06b415381ef6ac5c17b3204c9102.tar.gz
rockbox-4fef1834e2fa06b415381ef6ac5c17b3204c9102.tar.bz2
rockbox-4fef1834e2fa06b415381ef6ac5c17b3204c9102.zip
regtools: make qeditor aware of PP
Change-Id: I3b4fa625499aa66bb5617971445fa3c1c209134e
Diffstat (limited to 'utils/regtools/qeditor/backend.cpp')
-rw-r--r--utils/regtools/qeditor/backend.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp
index 204c160054..10ef84c6a0 100644
--- a/utils/regtools/qeditor/backend.cpp
+++ b/utils/regtools/qeditor/backend.cpp
@@ -223,6 +223,12 @@ bool HWStubDevice::Probe()
if(ret != sizeof(m_hwdev_stmp))
goto Lerr;
}
+ else if(m_hwdev_target.dID == HWSTUB_TARGET_PP)
+ {
+ ret = hwstub_get_desc(m_hwdev, HWSTUB_DT_PP, &m_hwdev_pp, sizeof(m_hwdev_pp));
+ if(ret != sizeof(m_hwdev_pp))
+ goto Lerr;
+ }
Close();
return true;
@@ -300,6 +306,14 @@ HWStubIoBackend::HWStubIoBackend(HWStubDevice *dev)
}
else if(target.dID == HWSTUB_TARGET_RK27)
m_soc = "rk27x";
+ else if(target.dID == HWSTUB_TARGET_PP)
+ {
+ struct hwstub_pp_desc_t pp = m_dev->GetPPInfo();
+ if(pp.wChipID == 0x6110 )
+ m_soc = "pp6110";
+ else
+ m_soc = QString("pp%1").arg(pp.wChipID, 4, 16, QChar('0'));
+ }
else
m_soc = target.bName;
}