diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-09-17 14:35:58 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-09-17 14:35:58 +0200 |
commit | 91d3c8e4594070796054395a6a7ae09eab795644 (patch) | |
tree | a581cb99f1d135206255d46040d251059df644ab | |
parent | 3d815406f49e22c492b9e0d4c18d457144fa7ca7 (diff) | |
download | rockbox-91d3c8e.tar.gz rockbox-91d3c8e.zip |
Add support for the Sony NWZ-S750
Change-Id: I9050129949809b3dbe9f4f9e816f8980c4f3a904
-rw-r--r-- | firmware/export/config.h | 2 | ||||
-rw-r--r-- | firmware/export/config/sonynwzs750.h | 17 | ||||
-rw-r--r-- | rbutil/mknwzboot/mknwzboot.c | 1 | ||||
-rw-r--r-- | tools/builds.pm | 4 | ||||
-rwxr-xr-x | tools/configure | 25 | ||||
-rw-r--r-- | tools/scramble.c | 4 |
6 files changed, 51 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index abe815d70d..0a10b59f52 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -597,6 +597,8 @@ Lyre prototype 1 */ #include "config/sonynwze470.h" #elif defined(SONY_NWZA860) #include "config/sonynwza860.h" +#elif defined(SONY_NWZS750) +#include "config/sonynwzs750.h" #else /* no known platform */ #endif diff --git a/firmware/export/config/sonynwzs750.h b/firmware/export/config/sonynwzs750.h new file mode 100644 index 0000000000..c8be74bc04 --- /dev/null +++ b/firmware/export/config/sonynwzs750.h @@ -0,0 +1,17 @@ +/* + * This config file is for the Sony NWZ-S750 series + */ + +/* For Rolo and boot loader */ +#define MODEL_NUMBER 108 + +#define MODEL_NAME "Sony NWZ-S750 Series" + +/* LCD dimensions */ +#define LCD_WIDTH 240 +#define LCD_HEIGHT 320 +/* sqrt(240^2 + 320^2) / 2 = 200 */ +#define LCD_DPI 200 + +#include "sonynwzlinux.h" + diff --git a/rbutil/mknwzboot/mknwzboot.c b/rbutil/mknwzboot/mknwzboot.c index 73792c31cc..b41692c9fd 100644 --- a/rbutil/mknwzboot/mknwzboot.c +++ b/rbutil/mknwzboot/mknwzboot.c @@ -51,6 +51,7 @@ static const struct nwz_model_desc_t nwz_models[] = { "Sony NWZ-A10 Series", "a10", 104, "nwz-a10" }, { "Sony NW-A20 Series", "a20", 106, "nw-a20" }, { "Sony NWZ-A860 Series", "a860", 107, "nwz-a860" }, + { "Sony NWZ-S750 Series", "s750", 108, "nwz-s750" }, }; #define NR_NWZ_MODELS (sizeof(nwz_models) / sizeof(nwz_models[0])) diff --git a/tools/builds.pm b/tools/builds.pm index 524ab6727f..60a584c824 100644 --- a/tools/builds.pm +++ b/tools/builds.pm @@ -390,6 +390,10 @@ $releasenotes="/wiki/ReleaseNotes314"; name => 'Sony NWZ-A860', status => 2, }, + 'sonynwzs750' => { + name => 'Sony NWZ-S750', + status => 2, + }, 'creativezenxfi' => { name => 'Creative Zen X-Fi', status => 3 diff --git a/tools/configure b/tools/configure index 52eef68008..6e44adef16 100755 --- a/tools/configure +++ b/tools/configure @@ -1513,7 +1513,7 @@ cat <<EOF 226) NWZ-A10 series ==iBasso== 227) NW-A20 series 232) DX50 228) NWZ-A860 series - 233) DX90 + 233) DX90 229) NWZ-S750 series EOF @@ -4030,6 +4030,29 @@ fi sonynwzcc ;; + 229|sonynwzs750) + application="yes" + target_id=104 + modelname="sonynwzs750" + target="SONY_NWZS750" + memory=16 + bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" + bmp2rb_native="$rootdir/tools/bmp2rb -f 4" + tool="cp" + output="rockbox.sony" + boottool="$rootdir/tools/scramble -add=s750" + bootoutput="bootloader-nwzs750.sony" + appextra="gui:recorder" + plugins="" + swcodec="yes" + toolset=$genericbitmaptools + t_cpu="hosted" + t_manufacturer="sonynwz" + t_model="nwzs750" + uname=`uname` + sonynwzcc + ;; + 230|ihifi760) target_id=92 modelname="ihifi760" diff --git a/tools/scramble.c b/tools/scramble.c index 5ff45b3e44..81a796479b 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -130,7 +130,7 @@ void usage(void) "\t 747p, x777, nn2g, m244, cli+, fuz2, hd20, hd30,\n" "\t ip6g, rk27, clzp, zxf2, zxf3, fuz+, e370, e360,\n" "\t zxfi, zmoz, zen, zenv, ypz5, zxfs, e450, e460,\n" - "\t e470,e580,a10,a20,a860)\n"); + "\t e470,e580,a10,a20,a860,s750)\n"); printf("\nNo option results in Archos standard player/recorder format.\n"); exit(1); @@ -397,6 +397,8 @@ int main (int argc, char** argv) modelnum = 106; else if (!strcmp(&argv[1][5], "a860")) /* Sony NWZ-A860 series */ modelnum = 107; + else if (!strcmp(&argv[1][5], "s750")) /* Sony NWZ-S750 series */ + modelnum = 108; else { fprintf(stderr, "unsupported model: %s\n", &argv[1][5]); return 2; |