From 3a5ae7dd3a2c7a74b69b83301bb29850a9601faf Mon Sep 17 00:00:00 2001 From: Johannes Rauh Date: Sat, 29 Apr 2017 18:33:45 +0200 Subject: Add support for Sony NW-A20 Add original author to CREDITS Change-Id: I7a0159635c7896e2b5521c078ef62618f568d89e --- firmware/export/config.h | 2 ++ firmware/export/config/sonynwa20.h | 16 ++++++++++++++++ rbutil/mknwzboot/mknwzboot.c | 1 + tools/configure | 25 ++++++++++++++++++++++++- tools/scramble.c | 6 ++++-- 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 firmware/export/config/sonynwa20.h diff --git a/firmware/export/config.h b/firmware/export/config.h index aa11766e63..f98ccbd853 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -590,6 +590,8 @@ Lyre prototype 1 */ #include "config/sonynwze580.h" #elif defined(SONY_NWZA10) #include "config/sonynwza10.h" +#elif defined(SONY_NWA20) +#include "config/sonynwa20.h" #elif defined(SONY_NWZE470) #include "config/sonynwze470.h" #else diff --git a/firmware/export/config/sonynwa20.h b/firmware/export/config/sonynwa20.h new file mode 100644 index 0000000000..d9f6292459 --- /dev/null +++ b/firmware/export/config/sonynwa20.h @@ -0,0 +1,16 @@ +/* + * This config file is for the Sony NW-A20 series + */ + +/* For Rolo and boot loader */ +#define MODEL_NUMBER 106 + +#define MODEL_NAME "Sony NW-A20 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 1fc105ae48..6fd20b26b4 100644 --- a/rbutil/mknwzboot/mknwzboot.c +++ b/rbutil/mknwzboot/mknwzboot.c @@ -49,6 +49,7 @@ static const struct nwz_model_desc_t nwz_models[] = { "Sony NWZ-E470 Series", "e470", 103, "nwz-e470" }, { "Sony NWZ-E580 Series", "e580", 102, "nwz-e580" }, { "Sony NWZ-A10 Series", "a10", 104, "nwz-a10" }, + { "Sony NW-A20 Series", "a20", 106, "nw-a20" }, }; #define NR_NWZ_MODELS (sizeof(nwz_models) / sizeof(nwz_models[0])) diff --git a/tools/configure b/tools/configure index 3b481e9fa8..bfc581f6c0 100755 --- a/tools/configure +++ b/tools/configure @@ -1511,7 +1511,7 @@ cat <