summaryrefslogtreecommitdiff
path: root/utils/hwstub/stub/jz4760b/target-config.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-24 15:22:27 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-24 15:22:27 +0100
commitcc2389b7a61784c229b42da4abbc238a42e5173d (patch)
tree0aa51262daad31017d8ec19124f05638469b5270 /utils/hwstub/stub/jz4760b/target-config.h
parentd7c71a3fe80150ecc1196e34b55d1fdd1323057a (diff)
downloadrockbox-cc2389b7a61784c229b42da4abbc238a42e5173d.tar.gz
rockbox-cc2389b7a61784c229b42da4abbc238a42e5173d.zip
hwstub: add jz4760b stub
The stub is quite versatile: it can be loaded using bootrom or another other means (like factory boot on Fiio X1). It relocates itself to TCSM0 and provides basic functionality (it does not recover from failed read/writes at the moment). Change-Id: Ib646a4b43fba9358d6f93f0f73a5c2e9bcd775a7
Diffstat (limited to 'utils/hwstub/stub/jz4760b/target-config.h')
-rw-r--r--utils/hwstub/stub/jz4760b/target-config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/hwstub/stub/jz4760b/target-config.h b/utils/hwstub/stub/jz4760b/target-config.h
new file mode 100644
index 0000000000..fa018c14dc
--- /dev/null
+++ b/utils/hwstub/stub/jz4760b/target-config.h
@@ -0,0 +1,11 @@
1#define CONFIG_JZ4760B
2#define TCSM0_ORIG 0xf4000000
3#define TCSM0_SIZE 0x4000
4#define CPU_MIPS
5#define STACK_SIZE 0x300
6
7/* something provides define
8 * #define mips 1
9 * which breaks paths badly
10 */
11#undef mips