summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95db283)
raw | patch | inline | side by side (parent: 95db283)
author | Sandeep Nair <sandeep_n@ti.com> | |
Mon, 6 Jun 2011 21:13:25 +0000 (17:13 -0400) | ||
committer | Sandeep Nair <sandeep_n@ti.com> | |
Mon, 6 Jun 2011 21:13:25 +0000 (17:13 -0400) |
mad-loader/mal/malApp/build/lnk_C6616.cmd | patch | blob | history | |
mad-loader/mal/malApp/build/lnk_C6678.cmd | patch | blob | history | |
mad-loader/mal/malLib/malApis/device_C6616.h | patch | blob | history | |
mad-loader/mal/malLib/malApis/device_C6678.h | patch | blob | history | |
mad-loader/mal/malLib/malApis/mal_lib_loader.c | patch | blob | history | |
mad-loader/nmlLoader/build/Makefile | [changed mode: 0755->0644] | patch | blob | history |
mad-loader/nmlLoader/build/lnk_C6616.cmd | [changed mode: 0755->0644] | patch | blob | history |
index d8e94c8c010f087866961509550a3b82b65d87ef..72388d64003b87dc4ec96519ae3d7bb4e6bfefdc 100644 (file)
MEMORY
{
BLOB_ENTER: o = 0x80001040 l = 0x0020
- PMEM0: o = 0x80001060 l = 0x7a0c
+ PMEM0: o = 0x80001060 l = 0x7a6c
URW0: o = 0x8ffdb800 l = 0x22000
}
index 1049f6cd89e69666d44e01f3f0a8b4ee25391e5b..af0926487743565de91bbd480c762df9cb385ed5 100644 (file)
MEMORY
{
BLOB_ENTER: o = 0x80001040 l = 0x0020
- PMEM0: o = 0x80001060 l = 0x7a0c
+ PMEM0: o = 0x80001060 l = 0x7a6c
URW0: o = 0x9ffd9100 l = 0x22000
}
diff --git a/mad-loader/mal/malLib/malApis/device_C6616.h b/mad-loader/mal/malLib/malApis/device_C6616.h
index c477ddcd0c108c40477884678b5fb6b0042115e5..ff8ef7ad9d5f3bf6a4378f81467d6f1243d283f0 100644 (file)
/* Number of cores */
#define NUM_DEVICE_CORES 4
+/* Device State Control KICK registers */
+#define DSCR_KICK0 0x02620038
+#define DSCR_KICK1 0x0262003c
+
+#define DSCR_KICK0_KEY 0x83E70B13
+#define DSCR_KICK1_KEY 0x95A4F1E0
+
+
/* DSP_BOOT_ADDRx Register */
#define BOOT_ADDR_BASE 0x2620040
#define BOOT_ADDR(x) (BOOT_ADDR_BASE + (x*0x4))
diff --git a/mad-loader/mal/malLib/malApis/device_C6678.h b/mad-loader/mal/malLib/malApis/device_C6678.h
index f6ca86c47a258d6b59032a36847e5811ad1c8868..f9977a7988400ce54cedaee1cc0bea4f4f8fc2e2 100644 (file)
/* Number of cores */
#define NUM_DEVICE_CORES 8
+/* Device State Control KICK registers */
+#define DSCR_KICK0 0x02620038
+#define DSCR_KICK1 0x0262003c
+
+#define DSCR_KICK0_KEY 0x83E70B13
+#define DSCR_KICK1_KEY 0x95A4F1E0
+
+
/* DSP_BOOT_ADDRx Register */
#define BOOT_ADDR_BASE 0x2620040
#define BOOT_ADDR(x) (BOOT_ADDR_BASE + (x*4))
diff --git a/mad-loader/mal/malLib/malApis/mal_lib_loader.c b/mad-loader/mal/malLib/malApis/mal_lib_loader.c
index b1597d60eab548c4f88eed3a7c7a26fac25f06cb..0d69699c38b1df946412fe218911e0064ab7860f 100644 (file)
if (ba & 0x3ff)\r
return -1;\r
\r
+#if ((DEVICE==6678) || (DEVICE==6616))\r
+ /* Unlock the DSCR boot config */\r
+ reg = (unsigned int*)DSCR_KICK0;\r
+ *reg = DSCR_KICK0_KEY;\r
+ reg = (unsigned int*)DSCR_KICK1;\r
+ *reg = DSCR_KICK1_KEY;\r
+#endif\r
+\r
+ /* Set the Boot Address for Core */\r
reg = (unsigned int*)BOOT_ADDR(coreId);\r
#if ((DEVICE==6678) || (DEVICE==6616))\r
*reg = ba;\r
reg = (unsigned int*)BOOT_COMPLETE_ADDR;\r
*reg = (1 << coreId);\r
\r
+#if ((DEVICE==6678) || (DEVICE==6616))\r
+ /* Lock the DSCR boot config */\r
+ reg = (unsigned int*)DSCR_KICK0;\r
+ *reg = 0;\r
+ reg = (unsigned int*)DSCR_KICK1;\r
+ *reg = 0;\r
+#endif\r
+\r
/* Take the core out of reset */\r
reg = (unsigned int*)MDCTL_ADDR(mod_id);\r
*reg = (*reg & ~ MDCTL_NEXT_STATE_MASK) | MDCTL_NEXT_STATE_EN;\r
$(CC) $(C_OPTS) $(OBJS) $(LNK_OPTS) $(EXPORT_OPTS) -o $@ \r
cp $@ $@.dbg\r
$(STRIP) $@ \r
-ifeq ($(DEVICE),C6472)\r
# $(PRELINK) prelink_nml_$(DEVICE).cmd\r
-endif\r
\r
$(OBJ_DIR)/%.obj: %.c $(HEADERS) $(OBJ_DIR)/.created\r
$(CC) -c $(C_OPTS) $(INCL) $(DEFINE_TARGET) $< $(OUTPUT_FILE_OPTION) $@\r
old mode 100755 (executable)
new mode 100644 (file)
new mode 100644 (file)