*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
|
||||
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
|
||||
|
||||
# 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
|
||||
recovery_initrd_filename=ramdisk-recovery.img
|
||||
hardware=sun50iw1p1
|
||||
|
||||
debug=off
|
||||
# INFO:
|
||||
# To enable one of below options,
|
||||
# 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);
|
||||
strcpy(debug_flag,getenv("debug"));
|
||||
printf("Test %s \n",debug_flag);
|
||||
if (strcmp(debug_flag,"on") == 0) {
|
||||
enabled = 1;
|
||||
if (strcmp(debug_flag,"off") == 0) {
|
||||
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;
|
||||
} else {
|
||||
|
||||
if (enabled == 0 ) {
|
||||
ret1 = gpio_write_one_pin_value(gpio_hd, 1, "debug_en_gpio");
|
||||
}
|
||||
if (enabled == 1 ) {
|
||||
ret1 = gpio_write_one_pin_value(gpio_hd, 0, "debug_en_gpio");
|
||||
// sprite_debug();
|
||||
}
|
||||
if (enabled ==0){
|
||||
ret1 = gpio_write_one_pin_value(gpio_hd, 1, "debug_en_gpio");
|
||||
if(!ret1) {
|
||||
|
||||
|
||||
printf("reuqest gpio for headphone debug set to 1\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user