From 127e6bbfddab60039085d4ad74a8baae18372717 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 17 Sep 2017 22:32:13 +0200 Subject: [PATCH] Add support for the NWZ-E350 Strangely it has the SAME encryption key as the E450. Either they didn't bother changing it or more likely they have exactly the same internals and a slightly different case. Change-Id: I39ab88845b3e40db34160c2e61dde421f391df44 --- firmware/export/config.h | 2 ++ firmware/export/config/sonynwze350.h | 16 ++++++++++ rbutil/mknwzboot/mknwzboot.c | 1 + tools/configure | 45 +++++++++++++++++++++------- tools/scramble.c | 4 ++- utils/nwztools/upgtools/upg.c | 1 + 6 files changed, 57 insertions(+), 12 deletions(-) create mode 100644 firmware/export/config/sonynwze350.h diff --git a/firmware/export/config.h b/firmware/export/config.h index 0a10b59f52..51e0f7a17b 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -599,6 +599,8 @@ Lyre prototype 1 */ #include "config/sonynwza860.h" #elif defined(SONY_NWZS750) #include "config/sonynwzs750.h" +#elif defined(SONY_NWZE350) +#include "config/sonynwze350.h" #else /* no known platform */ #endif diff --git a/firmware/export/config/sonynwze350.h b/firmware/export/config/sonynwze350.h new file mode 100644 index 0000000000..d779052f6d --- /dev/null +++ b/firmware/export/config/sonynwze350.h @@ -0,0 +1,16 @@ +/* + * This config file is for the Sony NWZ-E350 series + */ + +/* For Rolo and boot loader */ +#define MODEL_NUMBER 109 + +#define MODEL_NAME "Sony NWZ-E350 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 2e574a94d7..22885674d8 100644 --- a/rbutil/mknwzboot/mknwzboot.c +++ b/rbutil/mknwzboot/mknwzboot.c @@ -45,6 +45,7 @@ struct nwz_model_desc_t static const struct nwz_model_desc_t nwz_models[] = { + { "Sony NWZ-E350 Series", "e350", 109, "nwz-e350" }, { "Sony NWZ-E450 Series", "e450", 100, "nwz-e450" }, { "Sony NWZ-E460 Series", "e460", 101, "nwz-e460" }, { "Sony NWZ-E470 Series", "e470", 103, "nwz-e470" }, diff --git a/tools/configure b/tools/configure index 6e44adef16..bd5fba6607 100755 --- a/tools/configure +++ b/tools/configure @@ -1504,17 +1504,17 @@ cat <