am243x/am64x: hdsl: Update SysConfig to add required pins per channel
Fixes: PINDSW-7128 Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
This commit is contained in:
parent
0324024e00
commit
ac39500922
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||||
* @cliArgs --device "AM243x_ALV_beta" --package "ALV" --part "ALV" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK_AM243X@09.01.00"
|
* @cliArgs --device "AM243x_ALV_beta" --package "ALV" --part "ALV" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK@09.01.00"
|
||||||
* @versions {"tool":"1.18.0+3266"}
|
* @versions {"tool":"1.18.0+3266"}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -102,7 +102,3 @@ hdsl1.PRU_ICSSG0_PRU.GPO5.$suggestSolution = "PRG0_PRU1_GPO5";
|
|||||||
hdsl1.PRU_ICSSG0_PRU.GPO4.$suggestSolution = "PRG0_PRU1_GPO4";
|
hdsl1.PRU_ICSSG0_PRU.GPO4.$suggestSolution = "PRG0_PRU1_GPO4";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO3.$suggestSolution = "PRG0_PRU1_GPO3";
|
hdsl1.PRU_ICSSG0_PRU.GPO3.$suggestSolution = "PRG0_PRU1_GPO3";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI14.$suggestSolution = "PRG0_PRU1_GPO14";
|
hdsl1.PRU_ICSSG0_PRU.GPI14.$suggestSolution = "PRG0_PRU1_GPO14";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO8.$suggestSolution = "PRG0_PRU1_GPO8";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO12.$suggestSolution = "PRG0_PRU1_GPO12";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO6.$suggestSolution = "PRG0_PRU1_GPO6";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI11.$suggestSolution = "PRG0_PRU1_GPO11";
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||||
* @cliArgs --device "AM64x_beta" --package "ALV" --part "Default" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK_AM64X@09.01.00"
|
* @cliArgs --device "AM64x" --package "ALV" --part "Default" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK@09.01.00"
|
||||||
* @versions {"tool":"1.18.0+3266"}
|
* @versions {"tool":"1.18.0+3266"}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -75,12 +75,13 @@ mpu_armv76.baseAddr = 0x80000000;
|
|||||||
mpu_armv76.size = 31;
|
mpu_armv76.size = 31;
|
||||||
|
|
||||||
hdsl1.$name = "CONFIG_HDSL0";
|
hdsl1.$name = "CONFIG_HDSL0";
|
||||||
hdsl1.coreClk = 300000000;
|
|
||||||
hdsl1.channel_1 = true;
|
hdsl1.channel_1 = true;
|
||||||
|
hdsl1.coreClk = 300000000;
|
||||||
hdsl1.PRU_ICSSG0_PRU.$assign = "PRU_ICSSG0_PRU1";
|
hdsl1.PRU_ICSSG0_PRU.$assign = "PRU_ICSSG0_PRU1";
|
||||||
|
|
||||||
const pruicss2 = pruicss.addInstance({}, false);
|
const pruicss2 = pruicss.addInstance({}, false);
|
||||||
pruicss2.$name = "CONFIG_PRU_ICSS0";
|
pruicss2.$name = "CONFIG_PRU_ICSS0";
|
||||||
|
pruicss2.instance = scripting.forceWrite("ICSSG0");
|
||||||
hdsl1.pru = pruicss2;
|
hdsl1.pru = pruicss2;
|
||||||
pruicss2.AdditionalICSSSettings[0].$name = "CONFIG_PRU_ICSS_IO1";
|
pruicss2.AdditionalICSSSettings[0].$name = "CONFIG_PRU_ICSS_IO1";
|
||||||
|
|
||||||
@ -102,7 +103,3 @@ hdsl1.PRU_ICSSG0_PRU.GPO5.$suggestSolution = "PRG0_PRU1_GPO5";
|
|||||||
hdsl1.PRU_ICSSG0_PRU.GPO4.$suggestSolution = "PRG0_PRU1_GPO4";
|
hdsl1.PRU_ICSSG0_PRU.GPO4.$suggestSolution = "PRG0_PRU1_GPO4";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO3.$suggestSolution = "PRG0_PRU1_GPO3";
|
hdsl1.PRU_ICSSG0_PRU.GPO3.$suggestSolution = "PRG0_PRU1_GPO3";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI14.$suggestSolution = "PRG0_PRU1_GPO14";
|
hdsl1.PRU_ICSSG0_PRU.GPI14.$suggestSolution = "PRG0_PRU1_GPO14";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO8.$suggestSolution = "PRG0_PRU1_GPO8";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO12.$suggestSolution = "PRG0_PRU1_GPO12";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO6.$suggestSolution = "PRG0_PRU1_GPO6";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI11.$suggestSolution = "PRG0_PRU1_GPO11";
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||||
* @cliArgs --device "AM243x_ALV_beta" --package "ALV" --part "ALV" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK_AM243X@09.01.00"
|
* @cliArgs --device "AM243x_ALV_beta" --package "ALV" --part "ALV" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK@09.01.00"
|
||||||
* @versions {"tool":"1.18.0+3266"}
|
* @versions {"tool":"1.18.0+3266"}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -104,11 +104,3 @@ hdsl1.PRU_ICSSG0_PRU.GPO2.$suggestSolution = "PRG0_PRU1_GPO2";
|
|||||||
hdsl1.PRU_ICSSG0_PRU.GPO1.$suggestSolution = "PRG0_PRU1_GPO1";
|
hdsl1.PRU_ICSSG0_PRU.GPO1.$suggestSolution = "PRG0_PRU1_GPO1";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO0.$suggestSolution = "PRG0_PRU1_GPO0";
|
hdsl1.PRU_ICSSG0_PRU.GPO0.$suggestSolution = "PRG0_PRU1_GPO0";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI13.$suggestSolution = "PRG0_PRU1_GPO13";
|
hdsl1.PRU_ICSSG0_PRU.GPI13.$suggestSolution = "PRG0_PRU1_GPO13";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO5.$suggestSolution = "PRG0_PRU1_GPO5";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO4.$suggestSolution = "PRG0_PRU1_GPO4";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO3.$suggestSolution = "PRG0_PRU1_GPO3";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI14.$suggestSolution = "PRG0_PRU1_GPO14";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO8.$suggestSolution = "PRG0_PRU1_GPO8";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO12.$suggestSolution = "PRG0_PRU1_GPO12";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO6.$suggestSolution = "PRG0_PRU1_GPO6";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI11.$suggestSolution = "PRG0_PRU1_GPO11";
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||||
* @cliArgs --device "AM243x_ALX_beta" --package "ALX" --part "ALX" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK_AM243X@09.01.00"
|
* @cliArgs --device "AM243x_ALX_beta" --package "ALX" --part "ALX" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK@09.01.00"
|
||||||
* @versions {"tool":"1.18.0+3266"}
|
* @versions {"tool":"1.18.0+3266"}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -81,14 +81,6 @@ hdsl1.$name = "CONFIG_HDSL0";
|
|||||||
hdsl1.Booster_Pack = true;
|
hdsl1.Booster_Pack = true;
|
||||||
hdsl1.coreClk = 300000000;
|
hdsl1.coreClk = 300000000;
|
||||||
hdsl1.PRU_ICSSG0_PRU.$assign = "PRU_ICSSG0_PRU1";
|
hdsl1.PRU_ICSSG0_PRU.$assign = "PRU_ICSSG0_PRU1";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO5.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO4.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO3.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI14.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO8.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO12.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO6.$used = false;
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI11.$used = false;
|
|
||||||
|
|
||||||
hdsl1.ENC1_EN = gpio2;
|
hdsl1.ENC1_EN = gpio2;
|
||||||
gpio2.$name = "ENC1_EN";
|
gpio2.$name = "ENC1_EN";
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||||
* @cliArgs --device "AM64x" --package "ALV" --part "Default" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK_AM64X@09.01.00"
|
* @cliArgs --device "AM64x" --package "ALV" --part "Default" --context "r5fss0-0" --product "MOTOR_CONTROL_SDK@09.01.00"
|
||||||
* @versions {"tool":"1.18.0+3266"}
|
* @versions {"tool":"1.18.0+3266"}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -87,6 +87,7 @@ hdsl1.PRU_ICSSG0_PRU.$assign = "PRU_ICSSG0_PRU1";
|
|||||||
|
|
||||||
const pruicss2 = pruicss.addInstance({}, false);
|
const pruicss2 = pruicss.addInstance({}, false);
|
||||||
pruicss2.$name = "CONFIG_PRU_ICSS0";
|
pruicss2.$name = "CONFIG_PRU_ICSS0";
|
||||||
|
pruicss2.instance = scripting.forceWrite("ICSSG0");
|
||||||
hdsl1.pru = pruicss2;
|
hdsl1.pru = pruicss2;
|
||||||
pruicss2.AdditionalICSSSettings[0].$name = "CONFIG_PRU_ICSS_IO1";
|
pruicss2.AdditionalICSSSettings[0].$name = "CONFIG_PRU_ICSS_IO1";
|
||||||
|
|
||||||
@ -104,11 +105,3 @@ hdsl1.PRU_ICSSG0_PRU.GPO2.$suggestSolution = "PRG0_PRU1_GPO2";
|
|||||||
hdsl1.PRU_ICSSG0_PRU.GPO1.$suggestSolution = "PRG0_PRU1_GPO1";
|
hdsl1.PRU_ICSSG0_PRU.GPO1.$suggestSolution = "PRG0_PRU1_GPO1";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO0.$suggestSolution = "PRG0_PRU1_GPO0";
|
hdsl1.PRU_ICSSG0_PRU.GPO0.$suggestSolution = "PRG0_PRU1_GPO0";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI13.$suggestSolution = "PRG0_PRU1_GPO13";
|
hdsl1.PRU_ICSSG0_PRU.GPI13.$suggestSolution = "PRG0_PRU1_GPO13";
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO5.$suggestSolution = "PRG0_PRU1_GPO5";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO4.$suggestSolution = "PRG0_PRU1_GPO4";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO3.$suggestSolution = "PRG0_PRU1_GPO3";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI14.$suggestSolution = "PRG0_PRU1_GPO14";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO8.$suggestSolution = "PRG0_PRU1_GPO8";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO12.$suggestSolution = "PRG0_PRU1_GPO12";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPO6.$suggestSolution = "PRG0_PRU1_GPO6";
|
|
||||||
hdsl1.PRU_ICSSG0_PRU.GPI11.$suggestSolution = "PRG0_PRU1_GPO11";
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ function pinmuxRequirements(inst) {
|
|||||||
|
|
||||||
pinmux.setConfigurableDefault( pinResource, "rx", pin.rx );
|
pinmux.setConfigurableDefault( pinResource, "rx", pin.rx );
|
||||||
|
|
||||||
if(inst["Channel_0"]==true){
|
if((inst["Channel_0"]==true) || (inst["channel_0"]==true)){
|
||||||
if( (pin.pinName == "GPO2") || (pin.pinName == "GPO1") || (pin.pinName == "GPO0") || (pin.pinName == "GPI13")){
|
if( (pin.pinName == "GPO2") || (pin.pinName == "GPO1") || (pin.pinName == "GPO0") || (pin.pinName == "GPI13")){
|
||||||
pinResource.used = true;
|
pinResource.used = true;
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ function pinmuxRequirements(inst) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(inst["Channel_1"]==true){
|
if((inst["Channel_1"]==true) || (inst["channel_1"]==true)){
|
||||||
if( (pin.pinName == "GPO5") || (pin.pinName == "GPO4") || (pin.pinName == "GPO3") || (pin.pinName == "GPI14")){
|
if( (pin.pinName == "GPO5") || (pin.pinName == "GPO4") || (pin.pinName == "GPO3") || (pin.pinName == "GPI14")){
|
||||||
pinResource.used = true;
|
pinResource.used = true;
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ function pinmuxRequirements(inst) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(inst["Channel_2"]==true){
|
if((inst["Channel_2"]==true) || (inst["channel_2"]==true)){
|
||||||
if( (pin.pinName == "GPO8") || (pin.pinName == "GPO12") || (pin.pinName == "GPO6") || (pin.pinName == "GPI11")){
|
if( (pin.pinName == "GPO8") || (pin.pinName == "GPO12") || (pin.pinName == "GPO6") || (pin.pinName == "GPI11")){
|
||||||
pinResource.used = true;
|
pinResource.used = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user