nwztools: add DMP-Z1 to the database
This is one of those fancy gold-plated devices. Of course it breaks my scripts that were nicely expecting every device to start with NW. Change-Id: I161320f620f65f4f92c2650d192b26a9831eeb9d
This commit is contained in:
parent
e41a563b6c
commit
063ff294a2
7 changed files with 104 additions and 5 deletions
|
@ -219,6 +219,7 @@ struct nwz_model_info_t nwz_model[NWZ_MODEL_COUNT] =
|
|||
{ 0x24000006, "NW-A47" },
|
||||
{ 0x25000004, "NW-A55" },
|
||||
{ 0x25000006, "NW-A57" },
|
||||
{ 0x26000008, "DMP-Z1" },
|
||||
};
|
||||
|
||||
static int nvp_index_06a782[NWZ_NVP_COUNT] =
|
||||
|
@ -1887,6 +1888,8 @@ static unsigned long models_nw_zx300[] = { 0x23000004, 0x23000006, 0x23000007 };
|
|||
|
||||
static unsigned long models_nwz_noname[] = { 0x5010002, 0x5010004, 0x5010005 };
|
||||
|
||||
static unsigned long models_dmp_z1[] = { 0x26000008 };
|
||||
|
||||
struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] =
|
||||
{
|
||||
{ "nwz-a10", "NWZ-A10 Series", 10, models_nwz_a10, &nvp_index_92faee },
|
||||
|
@ -1928,4 +1931,5 @@ struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] =
|
|||
{ "nw-zx100", "NW-ZX100 Series", 6, models_nw_zx100, &nvp_index_92faee },
|
||||
{ "nw-zx300", "NW-ZX300 Series", 3, models_nw_zx300, &nvp_index_139d65 },
|
||||
{ "nwz-noname", "NONAME", 3, models_nwz_noname, 0 },
|
||||
{ "dmp-z1", "DMP-Z1 Series", 1, models_dmp_z1, &nvp_index_94b5fc },
|
||||
};
|
||||
|
|
|
@ -157,9 +157,9 @@ enum nwz_nvp_node_t
|
|||
/* Invalid NVP index */
|
||||
#define NWZ_NVP_INVALID -1 /* Non-existent entry */
|
||||
/* Number of models */
|
||||
#define NWZ_MODEL_COUNT 195
|
||||
#define NWZ_MODEL_COUNT 196
|
||||
/* Number of series */
|
||||
#define NWZ_SERIES_COUNT 39
|
||||
#define NWZ_SERIES_COUNT 40
|
||||
|
||||
/* NVP node info */
|
||||
struct nwz_nvp_info_t
|
||||
|
|
|
@ -46,12 +46,12 @@ with open('series.txt') as fp:
|
|||
g_hash_nvp = dict() # hash -> nvp
|
||||
g_nvp_hash = dict() # codename -> hash
|
||||
HASH_SIZE=6
|
||||
map_files = glob.glob('nvp/nw*.txt')
|
||||
map_files = glob.glob('nvp/nw*.txt') + glob.glob('nvp/dmp*.txt')
|
||||
for f in map_files:
|
||||
h = hashlib.md5()
|
||||
h.update(open(f, "rb").read())
|
||||
hash = h.hexdigest()
|
||||
codename = re.search('(nw.*)\.txt', f).group(1)
|
||||
codename = re.search('nvp/([^\.]*)\.txt', f).group(1)
|
||||
# sanity check
|
||||
if not (codename in g_series_codename):
|
||||
print("Warning: file %s does not have a match series in series.txt" % f)
|
||||
|
|
|
@ -193,3 +193,4 @@
|
|||
0x25000004,NW-A55
|
||||
0x25000006,NW-A57
|
||||
0x23000007,NW-ZX300
|
||||
0x26000008,DMP-Z1
|
||||
|
|
93
utils/nwztools/database/nvp/dmp-z1.txt
Normal file
93
utils/nwztools/database/nvp/dmp-z1.txt
Normal file
|
@ -0,0 +1,93 @@
|
|||
dbg,000
|
||||
syi,001
|
||||
ubp,002
|
||||
fup,003
|
||||
prk,004
|
||||
hld,005
|
||||
pwd,006
|
||||
mid,007
|
||||
pcd,008
|
||||
ser,009
|
||||
ufn,010
|
||||
kas,011
|
||||
shp,012
|
||||
tst,013
|
||||
gty,014
|
||||
clg,015
|
||||
se2,016
|
||||
ncp,017
|
||||
psk,018
|
||||
nvr,077
|
||||
she,084
|
||||
btc,085
|
||||
ins,089
|
||||
ctr,090
|
||||
sku,091
|
||||
bpr,019
|
||||
bfp,020
|
||||
bfd,021
|
||||
bml,022
|
||||
apd,078
|
||||
blf,079
|
||||
slp,080
|
||||
vrt,081
|
||||
fni,082
|
||||
sid,083
|
||||
mso,086
|
||||
dgs,092
|
||||
atf,023
|
||||
lyr,024
|
||||
dbv,025
|
||||
fur,026
|
||||
ums,027
|
||||
skd,028
|
||||
ups,029
|
||||
aws,030
|
||||
fvi,031
|
||||
mac,032
|
||||
fpi,033
|
||||
ssk,034
|
||||
tr1,035
|
||||
e00,036
|
||||
e01,037
|
||||
e02,038
|
||||
e03,039
|
||||
e04,040
|
||||
e05,041
|
||||
e06,042
|
||||
e07,043
|
||||
e08,044
|
||||
e09,045
|
||||
e10,046
|
||||
e11,047
|
||||
e12,048
|
||||
e13,049
|
||||
e14,050
|
||||
e15,051
|
||||
e16,052
|
||||
e17,053
|
||||
e18,054
|
||||
e19,055
|
||||
e20,056
|
||||
e21,057
|
||||
e22,058
|
||||
e23,059
|
||||
e24,060
|
||||
e25,061
|
||||
e26,062
|
||||
e27,063
|
||||
e28,064
|
||||
e29,065
|
||||
e30,066
|
||||
e31,067
|
||||
clv,068
|
||||
sps,069
|
||||
rbt,070
|
||||
edw,071
|
||||
bti,072
|
||||
hdi,073
|
||||
lbi,074
|
||||
fui,075
|
||||
eri,076
|
||||
pci,087
|
||||
dbi,088
|
|
@ -24,7 +24,7 @@ if [ "$1" = "--new-only" ]; then
|
|||
fi
|
||||
|
||||
# list interesting directories
|
||||
for dir in `find "$1" -maxdepth 1 -name "nw-*" -or -name "nwz-*"`
|
||||
for dir in `find "$1" -maxdepth 1 -name "nw-*" -or -name "nwz-*" -or -name "dmp-*"`
|
||||
do
|
||||
# extract codename
|
||||
codename=`basename "$dir"`
|
||||
|
|
|
@ -37,3 +37,4 @@ nwz-x1000,NWZ-X1000 Series,0x5000002,0x5000004,0x5000005,0x5020002,0x5040002,0x5
|
|||
nw-zx100,NW-ZX100 Series,0x1c000007,0x1c000001,0x1c000002,0x1c000004,0x1c000005,0x1c000006
|
||||
nw-zx300,NW-ZX300 Series,0x23000004,0x23000006,0x23000007
|
||||
nwz-noname,NONAME,0x5010002,0x5010004,0x5010005
|
||||
dmp-z1,DMP-Z1 Series,0x26000008
|
||||
|
|
Loading…
Reference in a new issue