diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2018-01-07 23:23:24 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2018-01-07 23:24:58 +0100 |
commit | 0d794c0c06570decf030fae7e42993bc53c5ab57 (patch) | |
tree | 80b980bbb2f369b703117e128fbd99c3546f55bc | |
parent | 896c828152f758f569426db1013a59d4854bc291 (diff) | |
download | rockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.tar.gz rockbox-0d794c0c06570decf030fae7e42993bc53c5ab57.zip |
sonynwz: Add NVP information for NWZ-A810
Change-Id: I37671ddf15ee1a4b469f97fe06ec86249ff9ce60
-rw-r--r-- | firmware/target/hosted/sonynwz/nwz-db.c | 127 | ||||
-rw-r--r-- | utils/nwztools/database/nvp/nwz-a810.txt | 35 | ||||
-rwxr-xr-x | utils/nwztools/database/nvp/parse_all_nvp_headers.sh | 20 |
3 files changed, 179 insertions, 3 deletions
diff --git a/firmware/target/hosted/sonynwz/nwz-db.c b/firmware/target/hosted/sonynwz/nwz-db.c index 550f6f9d30..c216fd3a78 100644 --- a/firmware/target/hosted/sonynwz/nwz-db.c +++ b/firmware/target/hosted/sonynwz/nwz-db.c | |||
@@ -592,6 +592,131 @@ static int nvp_index_28dc2c[NWZ_NVP_COUNT] = | |||
592 | [NWZ_NVP_VRT] = 81, | 592 | [NWZ_NVP_VRT] = 81, |
593 | }; | 593 | }; |
594 | 594 | ||
595 | static int nvp_index_342a18[NWZ_NVP_COUNT] = | ||
596 | { | ||
597 | [NWZ_NVP_APD] = NWZ_NVP_INVALID, | ||
598 | [NWZ_NVP_APP] = 0, | ||
599 | [NWZ_NVP_BFD] = NWZ_NVP_INVALID, | ||
600 | [NWZ_NVP_BFP] = NWZ_NVP_INVALID, | ||
601 | [NWZ_NVP_BLF] = NWZ_NVP_INVALID, | ||
602 | [NWZ_NVP_BML] = NWZ_NVP_INVALID, | ||
603 | [NWZ_NVP_BOK] = 10, | ||
604 | [NWZ_NVP_BPR] = NWZ_NVP_INVALID, | ||
605 | [NWZ_NVP_BTC] = NWZ_NVP_INVALID, | ||
606 | [NWZ_NVP_BTI] = 1, | ||
607 | [NWZ_NVP_CLG] = NWZ_NVP_INVALID, | ||
608 | [NWZ_NVP_CLV] = NWZ_NVP_INVALID, | ||
609 | [NWZ_NVP_CNG] = 3, | ||
610 | [NWZ_NVP_CTR] = NWZ_NVP_INVALID, | ||
611 | [NWZ_NVP_DBA] = 12, | ||
612 | [NWZ_NVP_DBG] = NWZ_NVP_INVALID, | ||
613 | [NWZ_NVP_DBI] = NWZ_NVP_INVALID, | ||
614 | [NWZ_NVP_DBS] = 27, | ||
615 | [NWZ_NVP_DBV] = 13, | ||
616 | [NWZ_NVP_DCC] = 7, | ||
617 | [NWZ_NVP_DG0] = 5, | ||
618 | [NWZ_NVP_DG1] = 6, | ||
619 | [NWZ_NVP_DOR] = 21, | ||
620 | [NWZ_NVP_E00] = NWZ_NVP_INVALID, | ||
621 | [NWZ_NVP_E01] = NWZ_NVP_INVALID, | ||
622 | [NWZ_NVP_E02] = NWZ_NVP_INVALID, | ||
623 | [NWZ_NVP_E03] = NWZ_NVP_INVALID, | ||
624 | [NWZ_NVP_E04] = NWZ_NVP_INVALID, | ||
625 | [NWZ_NVP_E05] = NWZ_NVP_INVALID, | ||
626 | [NWZ_NVP_E06] = NWZ_NVP_INVALID, | ||
627 | [NWZ_NVP_E07] = NWZ_NVP_INVALID, | ||
628 | [NWZ_NVP_E08] = NWZ_NVP_INVALID, | ||
629 | [NWZ_NVP_E09] = NWZ_NVP_INVALID, | ||
630 | [NWZ_NVP_E10] = NWZ_NVP_INVALID, | ||
631 | [NWZ_NVP_E11] = NWZ_NVP_INVALID, | ||
632 | [NWZ_NVP_E12] = NWZ_NVP_INVALID, | ||
633 | [NWZ_NVP_E13] = NWZ_NVP_INVALID, | ||
634 | [NWZ_NVP_E14] = NWZ_NVP_INVALID, | ||
635 | [NWZ_NVP_E15] = NWZ_NVP_INVALID, | ||
636 | [NWZ_NVP_E16] = NWZ_NVP_INVALID, | ||
637 | [NWZ_NVP_E17] = NWZ_NVP_INVALID, | ||
638 | [NWZ_NVP_E18] = NWZ_NVP_INVALID, | ||
639 | [NWZ_NVP_E19] = NWZ_NVP_INVALID, | ||
640 | [NWZ_NVP_E20] = NWZ_NVP_INVALID, | ||
641 | [NWZ_NVP_E21] = NWZ_NVP_INVALID, | ||
642 | [NWZ_NVP_E22] = NWZ_NVP_INVALID, | ||
643 | [NWZ_NVP_E23] = NWZ_NVP_INVALID, | ||
644 | [NWZ_NVP_E24] = NWZ_NVP_INVALID, | ||
645 | [NWZ_NVP_E25] = NWZ_NVP_INVALID, | ||
646 | [NWZ_NVP_E26] = NWZ_NVP_INVALID, | ||
647 | [NWZ_NVP_E27] = NWZ_NVP_INVALID, | ||
648 | [NWZ_NVP_E28] = NWZ_NVP_INVALID, | ||
649 | [NWZ_NVP_E29] = NWZ_NVP_INVALID, | ||
650 | [NWZ_NVP_E30] = NWZ_NVP_INVALID, | ||
651 | [NWZ_NVP_E31] = NWZ_NVP_INVALID, | ||
652 | [NWZ_NVP_EDW] = 22, | ||
653 | [NWZ_NVP_EP0] = NWZ_NVP_INVALID, | ||
654 | [NWZ_NVP_EP1] = NWZ_NVP_INVALID, | ||
655 | [NWZ_NVP_EP2] = NWZ_NVP_INVALID, | ||
656 | [NWZ_NVP_EP3] = NWZ_NVP_INVALID, | ||
657 | [NWZ_NVP_ERI] = NWZ_NVP_INVALID, | ||
658 | [NWZ_NVP_EXM] = NWZ_NVP_INVALID, | ||
659 | [NWZ_NVP_FMP] = NWZ_NVP_INVALID, | ||
660 | [NWZ_NVP_FNI] = NWZ_NVP_INVALID, | ||
661 | [NWZ_NVP_FPI] = NWZ_NVP_INVALID, | ||
662 | [NWZ_NVP_FUI] = 19, | ||
663 | [NWZ_NVP_FUP] = 9, | ||
664 | [NWZ_NVP_FUR] = NWZ_NVP_INVALID, | ||
665 | [NWZ_NVP_FVI] = NWZ_NVP_INVALID, | ||
666 | [NWZ_NVP_GTY] = 18, | ||
667 | [NWZ_NVP_HDI] = 2, | ||
668 | [NWZ_NVP_HLD] = NWZ_NVP_INVALID, | ||
669 | [NWZ_NVP_INS] = NWZ_NVP_INVALID, | ||
670 | [NWZ_NVP_IPT] = NWZ_NVP_INVALID, | ||
671 | [NWZ_NVP_KAS] = 32, | ||
672 | [NWZ_NVP_LBI] = 20, | ||
673 | [NWZ_NVP_LYR] = NWZ_NVP_INVALID, | ||
674 | [NWZ_NVP_MAC] = NWZ_NVP_INVALID, | ||
675 | [NWZ_NVP_MCR] = NWZ_NVP_INVALID, | ||
676 | [NWZ_NVP_MDK] = NWZ_NVP_INVALID, | ||
677 | [NWZ_NVP_MDL] = 8, | ||
678 | [NWZ_NVP_MID] = 16, | ||
679 | [NWZ_NVP_MLK] = NWZ_NVP_INVALID, | ||
680 | [NWZ_NVP_MSC] = NWZ_NVP_INVALID, | ||
681 | [NWZ_NVP_MSO] = NWZ_NVP_INVALID, | ||
682 | [NWZ_NVP_MTM] = NWZ_NVP_INVALID, | ||
683 | [NWZ_NVP_MUK] = NWZ_NVP_INVALID, | ||
684 | [NWZ_NVP_NCP] = 31, | ||
685 | [NWZ_NVP_NVR] = NWZ_NVP_INVALID, | ||
686 | [NWZ_NVP_PCD] = 26, | ||
687 | [NWZ_NVP_PCI] = NWZ_NVP_INVALID, | ||
688 | [NWZ_NVP_PNC] = 33, | ||
689 | [NWZ_NVP_PRK] = NWZ_NVP_INVALID, | ||
690 | [NWZ_NVP_PSK] = NWZ_NVP_INVALID, | ||
691 | [NWZ_NVP_PTS] = NWZ_NVP_INVALID, | ||
692 | [NWZ_NVP_PWD] = NWZ_NVP_INVALID, | ||
693 | [NWZ_NVP_RBT] = NWZ_NVP_INVALID, | ||
694 | [NWZ_NVP_RND] = 28, | ||
695 | [NWZ_NVP_RTC] = 34, | ||
696 | [NWZ_NVP_SDC] = NWZ_NVP_INVALID, | ||
697 | [NWZ_NVP_SDP] = 30, | ||
698 | [NWZ_NVP_SER] = 4, | ||
699 | [NWZ_NVP_SFI] = NWZ_NVP_INVALID, | ||
700 | [NWZ_NVP_SHE] = NWZ_NVP_INVALID, | ||
701 | [NWZ_NVP_SHP] = 11, | ||
702 | [NWZ_NVP_SID] = NWZ_NVP_INVALID, | ||
703 | [NWZ_NVP_SKD] = NWZ_NVP_INVALID, | ||
704 | [NWZ_NVP_SKT] = NWZ_NVP_INVALID, | ||
705 | [NWZ_NVP_SKU] = NWZ_NVP_INVALID, | ||
706 | [NWZ_NVP_SLP] = NWZ_NVP_INVALID, | ||
707 | [NWZ_NVP_SPS] = NWZ_NVP_INVALID, | ||
708 | [NWZ_NVP_SYI] = 24, | ||
709 | [NWZ_NVP_TR0] = 14, | ||
710 | [NWZ_NVP_TR1] = 15, | ||
711 | [NWZ_NVP_TST] = 17, | ||
712 | [NWZ_NVP_UBP] = 23, | ||
713 | [NWZ_NVP_UFN] = 29, | ||
714 | [NWZ_NVP_UMS] = NWZ_NVP_INVALID, | ||
715 | [NWZ_NVP_UPS] = NWZ_NVP_INVALID, | ||
716 | [NWZ_NVP_VAR] = 25, | ||
717 | [NWZ_NVP_VRT] = NWZ_NVP_INVALID, | ||
718 | }; | ||
719 | |||
595 | static int nvp_index_398250[NWZ_NVP_COUNT] = | 720 | static int nvp_index_398250[NWZ_NVP_COUNT] = |
596 | { | 721 | { |
597 | [NWZ_NVP_APD] = 78, | 722 | [NWZ_NVP_APD] = 78, |
@@ -1453,7 +1578,7 @@ struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] = | |||
1453 | { "nw-a30", "NW-A30 Series", 3, models_nw_a30, &nvp_index_398250 }, | 1578 | { "nw-a30", "NW-A30 Series", 3, models_nw_a30, &nvp_index_398250 }, |
1454 | { "nw-a40", "NW-A40 Series", 3, models_nw_a40, &nvp_index_139d65 }, | 1579 | { "nw-a40", "NW-A40 Series", 3, models_nw_a40, &nvp_index_139d65 }, |
1455 | { "nwz-a720", "NWZ-A720 Series", 6, models_nwz_a720, 0 }, | 1580 | { "nwz-a720", "NWZ-A720 Series", 6, models_nwz_a720, 0 }, |
1456 | { "nwz-a810", "NWZ-A810 Series", 3, models_nwz_a810, 0 }, | 1581 | { "nwz-a810", "NWZ-A810 Series", 3, models_nwz_a810, &nvp_index_342a18 }, |
1457 | { "nwz-a820", "NWZ-A820 Series", 6, models_nwz_a820, 0 }, | 1582 | { "nwz-a820", "NWZ-A820 Series", 6, models_nwz_a820, 0 }, |
1458 | { "nwz-a840", "NWZ-A840 Series", 6, models_nwz_a840, &nvp_index_0ac81d }, | 1583 | { "nwz-a840", "NWZ-A840 Series", 6, models_nwz_a840, &nvp_index_0ac81d }, |
1459 | { "nwz-a850", "NWZ-A850 Series", 3, models_nwz_a850, &nvp_index_0ac81d }, | 1584 | { "nwz-a850", "NWZ-A850 Series", 3, models_nwz_a850, &nvp_index_0ac81d }, |
diff --git a/utils/nwztools/database/nvp/nwz-a810.txt b/utils/nwztools/database/nvp/nwz-a810.txt new file mode 100644 index 0000000000..53e02ab77f --- /dev/null +++ b/utils/nwztools/database/nvp/nwz-a810.txt | |||
@@ -0,0 +1,35 @@ | |||
1 | app,0 | ||
2 | bti,1 | ||
3 | hdi,2 | ||
4 | cng,3 | ||
5 | ser,4 | ||
6 | dg0,5 | ||
7 | dg1,6 | ||
8 | dcc,7 | ||
9 | mdl,8 | ||
10 | fup,9 | ||
11 | bok,10 | ||
12 | shp,11 | ||
13 | dba,12 | ||
14 | dbv,13 | ||
15 | tr0,14 | ||
16 | tr1,15 | ||
17 | mid,16 | ||
18 | tst,17 | ||
19 | gty,18 | ||
20 | fui,19 | ||
21 | lbi,20 | ||
22 | dor,21 | ||
23 | edw,22 | ||
24 | ubp,23 | ||
25 | syi,24 | ||
26 | var,25 | ||
27 | pcd,26 | ||
28 | dbs,27 | ||
29 | rnd,28 | ||
30 | ufn,29 | ||
31 | sdp,30 | ||
32 | ncp,31 | ||
33 | kas,32 | ||
34 | pnc,33 | ||
35 | rtc,34 | ||
diff --git a/utils/nwztools/database/nvp/parse_all_nvp_headers.sh b/utils/nwztools/database/nvp/parse_all_nvp_headers.sh index 331016b045..2af5e83cdc 100755 --- a/utils/nwztools/database/nvp/parse_all_nvp_headers.sh +++ b/utils/nwztools/database/nvp/parse_all_nvp_headers.sh | |||
@@ -7,9 +7,20 @@ | |||
7 | # where <kernel> must be of the form | 7 | # where <kernel> must be of the form |
8 | # linux-kernel-*.tgz | 8 | # linux-kernel-*.tgz |
9 | # | 9 | # |
10 | if [ "$#" -lt 1 ]; then | 10 | function usage |
11 | >&2 echo "usage: parse_all_nvp_header.sh /path/to/directory" | 11 | { |
12 | >&2 echo "usage: parse_all_nvp_header.sh [--new-only] /path/to/directory" | ||
12 | exit 1 | 13 | exit 1 |
14 | } | ||
15 | |||
16 | if [ "$#" -lt 1 ]; then | ||
17 | usage | ||
18 | fi | ||
19 | |||
20 | new_only="no" | ||
21 | if [ "$1" = "--new-only" ]; then | ||
22 | shift | ||
23 | new_only="yes" | ||
13 | fi | 24 | fi |
14 | 25 | ||
15 | # list interesting directories | 26 | # list interesting directories |
@@ -22,6 +33,11 @@ do | |||
22 | #echo "$codename: not linux based" | 33 | #echo "$codename: not linux based" |
23 | continue | 34 | continue |
24 | fi | 35 | fi |
36 | # skip if not new | ||
37 | if [ $new_only = "yes" ] && [ -e $codename.txt ]; then | ||
38 | echo "Skip $codename: already exists" | ||
39 | continue | ||
40 | fi | ||
25 | # check if we can find a kernel | 41 | # check if we can find a kernel |
26 | kernel_tgz=`find "$dir" -maxdepth 1 -name "linux-kernel-*.tgz"` | 42 | kernel_tgz=`find "$dir" -maxdepth 1 -name "linux-kernel-*.tgz"` |
27 | if [ "$kernel_tgz" == "" ]; then | 43 | if [ "$kernel_tgz" == "" ]; then |