*Headphone debug disabled by default
*Fixed logic error in env_set_debug
This commit is contained in:
parent
580596baf1
commit
1776756a63
@ -5,6 +5,8 @@
|
|||||||
# set_cmdline
|
# set_cmdline
|
||||||
setenv bootargs "console=${console} enforcing=${enforcing} cma=${cma} ${optargs} androidboot.serialno=${sunxi_serial} androidboot.hardware=${hardware} androidboot.selinux=${selinux} earlyprintk=sunxi-uart,0x01c28000 loglevel=8 root=${root} eth0_speed=${eth0_speed}"
|
setenv bootargs "console=${console} enforcing=${enforcing} cma=${cma} ${optargs} androidboot.serialno=${sunxi_serial} androidboot.hardware=${hardware} androidboot.selinux=${selinux} earlyprintk=sunxi-uart,0x01c28000 loglevel=8 root=${root} eth0_speed=${eth0_speed}"
|
||||||
|
|
||||||
|
env_set_debug
|
||||||
|
|
||||||
run load_dtb
|
run load_dtb
|
||||||
|
|
||||||
# set display resolution from uEnv.txt or other environment file
|
# set display resolution from uEnv.txt or other environment file
|
||||||
|
Binary file not shown.
@ -94,7 +94,7 @@ kernel_filename=a64/Image
|
|||||||
initrd_filename=initrd.img
|
initrd_filename=initrd.img
|
||||||
recovery_initrd_filename=ramdisk-recovery.img
|
recovery_initrd_filename=ramdisk-recovery.img
|
||||||
hardware=sun50iw1p1
|
hardware=sun50iw1p1
|
||||||
|
debug=off
|
||||||
# INFO:
|
# INFO:
|
||||||
# To enable one of below options,
|
# To enable one of below options,
|
||||||
# uncomment them by removing # in front of name
|
# uncomment them by removing # in front of name
|
||||||
|
@ -122,8 +122,9 @@ int do_env_set_debug(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
|||||||
// nodeoffset = fdt_path_offset(working_fdt,FDT_PATH_HDEBUG);
|
// nodeoffset = fdt_path_offset(working_fdt,FDT_PATH_HDEBUG);
|
||||||
strcpy(debug_flag,getenv("debug"));
|
strcpy(debug_flag,getenv("debug"));
|
||||||
printf("Test %s \n",debug_flag);
|
printf("Test %s \n",debug_flag);
|
||||||
if (strcmp(debug_flag,"on") == 0) {
|
if (strcmp(debug_flag,"off") == 0) {
|
||||||
enabled = 1;
|
enabled = 0;
|
||||||
|
printf("Enabled %s \n",debug_flag);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,16 +146,17 @@ int do_env_set_debug(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (enabled == 0 ) {
|
if (enabled ==0){
|
||||||
ret1 = gpio_write_one_pin_value(gpio_hd, 1, "debug_en_gpio");
|
ret1 = gpio_write_one_pin_value(gpio_hd, 1, "debug_en_gpio");
|
||||||
}
|
if(!ret1) {
|
||||||
if (enabled == 1 ) {
|
|
||||||
ret1 = gpio_write_one_pin_value(gpio_hd, 0, "debug_en_gpio");
|
|
||||||
// sprite_debug();
|
printf("reuqest gpio for headphone debug set to 1\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user