aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Griffis2016-12-08 13:51:35 -0600
committerBrad Griffis2016-12-08 13:51:35 -0600
commitd5876ae3b76367ae4413fb7218dee15b8dee4c61 (patch)
treedc8130478bf3a91ef8a2198f1ef0159def052ffa /am57xx_generate_pin_config_data.pl
parentd5f4df2540f0a8f30c1b0f74ec56b6d37da0cebe (diff)
downloadam57xx_uboot_pin_config-d5876ae3b76367ae4413fb7218dee15b8dee4c61.tar.gz
am57xx_uboot_pin_config-d5876ae3b76367ae4413fb7218dee15b8dee4c61.tar.xz
am57xx_uboot_pin_config-d5876ae3b76367ae4413fb7218dee15b8dee4c61.zip
Put code in numerical order
Diffstat (limited to 'am57xx_generate_pin_config_data.pl')
-rwxr-xr-xam57xx_generate_pin_config_data.pl22
1 files changed, 11 insertions, 11 deletions
diff --git a/am57xx_generate_pin_config_data.pl b/am57xx_generate_pin_config_data.pl
index 2567a6b..a3b52a5 100755
--- a/am57xx_generate_pin_config_data.pl
+++ b/am57xx_generate_pin_config_data.pl
@@ -212,24 +212,24 @@ sub operation_tiuboot2014_iopad()
212 $pull_active = $reg_dec & ( 1 << 16 ); 212 $pull_active = $reg_dec & ( 1 << 16 );
213 $compare_val = $slew_control | $input_en | $pull_up | $pull_active; 213 $compare_val = $slew_control | $input_en | $pull_up | $pull_active;
214 $compare_hex = sprintf( "0x%08x", $compare_val ); 214 $compare_hex = sprintf( "0x%08x", $compare_val );
215 if ( $compare_hex =~ /0x00010000/ ) { 215 if ( $compare_hex =~ /0x00000000/ ) {
216 $val_pull = "PIN_OUTPUT"; 216 $val_pull = "PIN_OUTPUT_PULLDOWN";
217 } elsif ( $compare_hex =~ /0x00030000/ ) { 217 } elsif ( $compare_hex =~ /0x00010000/ ) {
218 $val_pull = "PIN_OUTPUT"; 218 $val_pull = "PIN_OUTPUT";
219 } elsif ( $compare_hex =~ /0x00020000/ ) { 219 } elsif ( $compare_hex =~ /0x00020000/ ) {
220 $val_pull = "PIN_OUTPUT_PULLUP"; 220 $val_pull = "PIN_OUTPUT_PULLUP";
221 } elsif ( $compare_hex =~ /0x00000000/ ) { 221 } elsif ( $compare_hex =~ /0x00030000/ ) {
222 $val_pull = "PIN_OUTPUT_PULLDOWN"; 222 $val_pull = "PIN_OUTPUT";
223 } elsif ( $compare_hex =~ /0x00080000/ ) { 223 } elsif ( $compare_hex =~ /0x00040000/ ) {
224 $val_pull = "PIN_OUTPUT_PULLDOWN | SLEWCONTROL"; 224 $val_pull = "PIN_INPUT_PULLDOWN";
225 } elsif ( $compare_hex =~ /0x00050000/ ) { 225 } elsif ( $compare_hex =~ /0x00050000/ ) {
226 $val_pull = "PIN_INPUT"; 226 $val_pull = "PIN_INPUT";
227 } elsif ( $compare_hex =~ /0x000c0000/ ) {
228 $val_pull = "PIN_INPUT | SLEWCONTROL";
229 } elsif ( $compare_hex =~ /0x00060000/ ) { 227 } elsif ( $compare_hex =~ /0x00060000/ ) {
230 $val_pull = "PIN_INPUT_PULLUP"; 228 $val_pull = "PIN_INPUT_PULLUP";
231 } elsif ( $compare_hex =~ /0x00040000/ ) { 229 } elsif ( $compare_hex =~ /0x00080000/ ) {
232 $val_pull = "PIN_INPUT_PULLDOWN"; 230 $val_pull = "PIN_OUTPUT_PULLDOWN | SLEWCONTROL";
231 } elsif ( $compare_hex =~ /0x000c0000/ ) {
232 $val_pull = "PIN_INPUT | SLEWCONTROL";
233 } elsif ( $compare_hex =~ /0x000e0000/ ) { 233 } elsif ( $compare_hex =~ /0x000e0000/ ) {
234 $val_pull = "PIN_INPUT_PULLUP | SLEWCONTROL"; 234 $val_pull = "PIN_INPUT_PULLUP | SLEWCONTROL";
235 } 235 }