summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/sonynwz
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2018-01-13 11:55:47 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2018-01-13 12:07:21 +0100
commit6c856c412abb8f42bd13b933eed86c4ed113f551 (patch)
tree51e2fb67bbf4401b99948451e3b95df8ed28c274 /firmware/target/hosted/sonynwz
parentccd612345cb8bb6f28fe1258f2d98e90de63967d (diff)
downloadrockbox-6c856c412abb8f42bd13b933eed86c4ed113f551.tar.gz
rockbox-6c856c412abb8f42bd13b933eed86c4ed113f551.tar.bz2
rockbox-6c856c412abb8f42bd13b933eed86c4ed113f551.zip
Add information for NWZ-S630 and NWZ-S730
Change-Id: I4c48c9a8d862eaf67ec27c1c13b9b7f1fb204fc0
Diffstat (limited to 'firmware/target/hosted/sonynwz')
-rw-r--r--firmware/target/hosted/sonynwz/nwz-db.c129
1 files changed, 127 insertions, 2 deletions
diff --git a/firmware/target/hosted/sonynwz/nwz-db.c b/firmware/target/hosted/sonynwz/nwz-db.c
index c216fd3a78..96a6ac41d3 100644
--- a/firmware/target/hosted/sonynwz/nwz-db.c
+++ b/firmware/target/hosted/sonynwz/nwz-db.c
@@ -217,6 +217,131 @@ struct nwz_model_info_t nwz_model[NWZ_MODEL_COUNT] =
{ 0x24000006, "NW-A47" },
};
+static int nvp_index_06a782[NWZ_NVP_COUNT] =
+{
+ [NWZ_NVP_APD] = NWZ_NVP_INVALID,
+ [NWZ_NVP_APP] = 0,
+ [NWZ_NVP_BFD] = NWZ_NVP_INVALID,
+ [NWZ_NVP_BFP] = NWZ_NVP_INVALID,
+ [NWZ_NVP_BLF] = NWZ_NVP_INVALID,
+ [NWZ_NVP_BML] = NWZ_NVP_INVALID,
+ [NWZ_NVP_BOK] = 10,
+ [NWZ_NVP_BPR] = 35,
+ [NWZ_NVP_BTC] = NWZ_NVP_INVALID,
+ [NWZ_NVP_BTI] = 1,
+ [NWZ_NVP_CL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VP_INVALID,
+ [NWZ_NVP_PTS] = NWZ_NVP_INVALID,
+ [NWZ_NVP_PWD] = NWZ_NVP_INVALID,
+ [NWZ_NVP_RBT] = NWZ_NVP_INVALID,
+ [NWZ_NVP_RND] = 28,
+ [NWZ_NVP_RTC] = 34,
+ [NWZ_NVP_SDC] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SDP] = 30,
+ [NWZ_NVP_SER] = 4,
+ [NWZ_NVP_SFI] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SHE] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SHP] = 11,
+ [NWZ_NVP_SID] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SKD] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SKT] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SKU] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SLP] = 69,
+ [NWZ_NVP_SPS] = NWZ_NVP_INVALID,
+ [NWZ_NVP_SYI] = 24,
+ [NWZ_NVP_TR0] = 14,
+ [NWZ_NVP_TR1] = 15,
+ [NWZ_NVP_TST] = 17,
+ [NWZ_NVP_UBP] = 23,
+ [NWZ_NVP_UFN] = 29,
+ [NWZ_NVP_UMS] = NWZ_NVP_INVALID,
+ [NWZ_NVP_UPS] = NWZ_NVP_INVALID,
+ [NWZ_NVP_VAR] = 25,
+ [NWZ_NVP_VRT] = NWZ_NVP_INVALID,
+};
+
static int nvp_index_0ac81d[NWZ_NVP_COUNT] =
{
[NWZ_NVP_APD] = 78,
@@ -1597,10 +1722,10 @@ struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] =
{ "nw-s10", "NW-S10 Series", 5, models_nw_s10, &nvp_index_6485c8 },
{ "nwz-s510", "NWZ-S510 Series", 2, models_nwz_s510, 0 },
{ "nwz-s610", "NWZ-S610 Series", 5, models_nwz_s610, 0 },
- { "nwz-s630", "NWZ-S630 Series", 6, models_nwz_s630, 0 },
+ { "nwz-s630", "NWZ-S630 Series", 6, models_nwz_s630, &nvp_index_06a782 },
{ "nw-s640", "NW-S640 Series", 3, models_nw_s640, &nvp_index_0ac81d },
{ "nwz-s710", "NWZ-S710 Series", 6, models_nwz_s710, 0 },
- { "nwz-s730", "NWZ-S730 Series", 6, models_nwz_s730, 0 },
+ { "nwz-s730", "NWZ-S730 Series", 6, models_nwz_s730, &nvp_index_06a782 },
{ "nwz-s740", "NWZ-S740 Series", 6, models_nwz_s740, &nvp_index_0ac81d },
{ "nwz-s750", "NWZ-S750 Series", 5, models_nwz_s750, &nvp_index_0ac81d },
{ "nwz-s760", "NWZ-S760 Series", 10, models_nwz_s760, &nvp_index_f505c8 },