Browse Source

remove SGMII module, add HiSpeed module

Signed-off-by: qshi <123456@qq.com>
master
qshi 6 years ago
parent
commit
dcf3df9fb2
  1. 1
      packages/vsky/libdsp/.gitignore
  2. 7
      packages/vsky/libdsp/HiSpeed.c
  3. 2
      packages/vsky/libdsp/HiSpeed.xdc
  4. 1
      packages/vsky/libdsp/HiSpeed.xs
  5. 3
      packages/vsky/libdsp/package.bld
  6. 2
      packages/vsky/libdsp/package.xdc
  7. 3
      packages/vsky/libdsp/package.xs

1
packages/vsky/libdsp/.gitignore

@ -0,0 +1 @@
HiSpeed.h

7
packages/vsky/libdsp/SGMII.c → packages/vsky/libdsp/HiSpeed.c

@ -3,15 +3,16 @@
#include "inc/tsc.h"
#include "inc/sgmii.h"
#include "hispeed/resource_mgr.h"
#include "package/internal/SGMII.xdc.h"
#include "package/internal/HiSpeed.xdc.h"
Int SGMII_Module_startup(Int state)
Int HiSpeed_Module_startup(Int state)
{
sgmii_serdes_init();
return Startup_DONE;
}
Void SGMII_resInit()
Void HiSpeed_resInit()
{
resource_mgr_init();
}

2
packages/vsky/libdsp/SGMII.xdc → packages/vsky/libdsp/HiSpeed.xdc

@ -1,5 +1,5 @@
@ModuleStartup
module SGMII {
module HiSpeed {
/*
*
*/

1
packages/vsky/libdsp/SGMII.xs → packages/vsky/libdsp/HiSpeed.xs

@ -6,6 +6,7 @@ function module$use()
{
xdc.loadPackage('ti.drv.cppi');
xdc.loadPackage('ti.drv.qmss');
xdc.useModule('ti.drv.srio');
xdc.useModule('ti.drv.pa.Settings');
xdc.useModule('ti.ndk.config.Global');
xdc.useModule('ti.sysbios.knl.Task');

3
packages/vsky/libdsp/package.bld

@ -12,6 +12,7 @@ Pkg.otherFiles = [
"board.xdt",
"Serial.xdc",
"Printer.xdc",
"HiSpeed.xdc",
"lua/5.3.5/lua.h",
"lua/5.3.5/lauxlib.h",
"lua/5.3.5/lualib.h",
@ -87,7 +88,7 @@ var xdcFiles = [
"Serial.c",
"Printer.c",
"GPIO.c",
"SGMII.c",
"HiSpeed.c",
];
var luaFiles = [

2
packages/vsky/libdsp/package.xdc

@ -13,6 +13,6 @@ package vsky.libdsp [0, 9, 9, 0] {
module NorFlash;
module GPIO;
module Board;
module SGMII;
module HiSpeed;
}

3
packages/vsky/libdsp/package.xs

@ -11,10 +11,11 @@ function close()
Program.sectMap[".qmss"] = sectName;
Program.sectMap[".cppi"] = sectName;;
Program.sectMap[".nimu_eth_ll2"] = sectName;
Program.sectMap[".srioSharedMem"] = sectName;
Program.sectMap[".far:taskStackSection"] = sectName;
Program.sectMap[".resmgr_memregion"] = {loadSegment: sectName, loadAlign: 128}; /* QMSS descriptors region */
Program.sectMap[".resmgr_handles"] = {loadSegment: sectName, loadAlign: 16}; /* CPPI/QMSS/PA Handles */
Program.sectMap[".resmgr_pa"] = {loadSegment: sectName, loadAlign: 8}; /* PA Memory */
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: sectName, loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: sectName, loadAlign: 128};
}
}

Loading…
Cancel
Save