From 8f0084983c93108b7901861b4176d5b21ee4edc8 Mon Sep 17 00:00:00 2001 From: Ivan Pang Date: Fri, 25 May 2012 10:06:21 -0400 Subject: [PATCH 1/1] Added 6657 support for pcie linux loader --- .../pcie/linux_host_loader/pciedemo.c | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/boot_loader/examples/pcie/linux_host_loader/pciedemo.c b/boot_loader/examples/pcie/linux_host_loader/pciedemo.c index 9be0aea..e5ab281 100644 --- a/boot_loader/examples/pcie/linux_host_loader/pciedemo.c +++ b/boot_loader/examples/pcie/linux_host_loader/pciedemo.c @@ -25,6 +25,7 @@ * added PCIE over EDMA throughput measurement * - 1.4: Add a DSP local reset demo; fix pushData() to handle cases when * sections within different memory regions in a header file + * - 1.5: Support 6657 boot ***************************************************************************************/ #include @@ -54,7 +55,8 @@ MODULE_LICENSE("GPL v2"); /* Must select a platform */ #define EVMC6678L 1 #define EVMC6670L 0 - +#define EVMC6657L 0 + #if BIG_ENDIAN #define myIoread32 ioread32be #define myIowrite32 iowrite32be @@ -71,6 +73,10 @@ MODULE_LICENSE("GPL v2"); #define MAGIC_ADDR 0x008FFFFC #endif +#if EVMC6657L +#define MAGIC_ADDR 0x008FFFFC +#endif + /* Include header array */ #if HELLO_WORLD_DEMO @@ -84,6 +90,11 @@ MODULE_LICENSE("GPL v2"); #include "pcieBootCode_6670.h" /* "Hello world" boot example */ #endif +#if EVMC6657L +#include "pcieDdrInit_6657.h" /* DDR init */ +#include "pcieBootCode_6657.h" /* "Hello world" boot example */ +#endif + #endif #if POST_DEMO @@ -96,6 +107,10 @@ MODULE_LICENSE("GPL v2"); #include "post_6670.h" /* POST boot example */ #endif +#if EVMC6657L +#include "post_6657.h" /* POST boot example */ +#endif + #endif #if EDMA_INTC_DEMO @@ -957,6 +972,10 @@ uint32_t writeDSPMemory(uint32_t coreNum, uint32_t DSPMemAddr, uint32_t *buffer, case 1: case 2: case 3: +#endif +#if EVMC6657L + case 0: + case 1: #endif DSPMemAddr &= 0x00FFFFFF; tempReg = ioread32(ptrReg + IB_OFFSET(1)/4); @@ -1041,6 +1060,10 @@ uint32_t readDSPMemory(uint32_t coreNum, uint32_t DSPMemAddr, uint32_t *buffer, case 1: case 2: case 3: +#endif +#if EVMC6657L + case 0: + case 1: #endif DSPMemAddr &= 0x00FFFFFF; tempReg = ioread32(ptrReg + IB_OFFSET(1)/4); -- 2.39.2