Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with dram_standby.c #1

Open
ratin3 opened this issue Mar 25, 2014 · 0 comments
Open

Problems with dram_standby.c #1

ratin3 opened this issue Mar 25, 2014 · 0 comments

Comments

@ratin3
Copy link

ratin3 commented Mar 25, 2014

https://github.com/hno/allwinner-boot/blob/lichee-a20-dev/boot1/core/standby/dram_standby.c

It has neumerous issues during compilation, first off its got patch outputs in the C file so compilers complain. Also this segment:

static __s32 backup_dram_cal_val(int standby_mode)
{
#ifdef SAVE_SDR_ZQSR_TO_RTC
@@ -474,17 +477,17 @@
#else
#error "super standby has not save SDR_ZQSR"
#endif
__s32 dram_power_save_process(boot_dram_para_t* standby_dram_para)

{

is weird, one c prototype declaration inside another one.

Also in :

__u32 dram_power_up_process(boot_dram_para_t* standby_dram_para)
{
__u32 i;
__u32 reg_val;

    init_DRAM(standby_dram_para);

}

init_DRAM is not declared in this section of code, but rather in boot0/drv/init_dram
and with different kind of parameter

boot0/drv/init_dram/init_DRAM.h: extern int init_DRAM(int type);

not boot_dram_para_t* parameter as called with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant