xmc4xxx: Add XMC4700 support
Tested with EES-AA revision chips on Relax Kit for 5V Shields and Relax Lite Kit. Change-Id: I17d4479657bad0516d4c10c2ad7e745d59e678b7 Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/3136 Tested-by: jenkins Reviewed-by: Jeff Ciesielski <jeffciesielski@gmail.com> Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
parent
cf49e04429
commit
849f69b2e9
|
@ -181,7 +181,7 @@
|
|||
|
||||
/* Flash controller configuration values */
|
||||
#define FLASH_ID_XMC4500 0xA2
|
||||
#define FLASH_ID_XMC4800 0x92
|
||||
#define FLASH_ID_XMC4700_4800 0x92
|
||||
#define FLASH_ID_XMC4100_4200 0x9C
|
||||
#define FLASH_ID_XMC4400 0x9F
|
||||
|
||||
|
@ -381,9 +381,9 @@ static int xmc4xxx_probe(struct flash_bank *bank)
|
|||
bank->num_sectors = 12;
|
||||
LOG_DEBUG("XMC4xxx: XMC4500 detected.");
|
||||
break;
|
||||
case FLASH_ID_XMC4800:
|
||||
case FLASH_ID_XMC4700_4800:
|
||||
bank->num_sectors = 16;
|
||||
LOG_DEBUG("XMC4xxx: XMC4800 detected.");
|
||||
LOG_DEBUG("XMC4xxx: XMC4700/4800 detected.");
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("XMC4xxx: Unexpected flash ID. got %02" PRIx8,
|
||||
|
@ -983,6 +983,15 @@ static int xmc4xxx_get_info_command(struct flash_bank *bank, char *buf, int buf_
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case 0x700:
|
||||
dev_str = "XMC4700";
|
||||
|
||||
switch (rev_id) {
|
||||
case 0x1:
|
||||
rev_str = "EES-AA";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 0x800:
|
||||
dev_str = "XMC4800";
|
||||
|
||||
|
|
Loading…
Reference in New Issue