extern PUBLIC phys_size_t get_dram_size_from_gd(void);
extern char* get_calibration_parameter(void);
extern bool is_calibration_by_uart(void);
+extern int poweron_by_calibration(void);
/**
* fdt_getprop_u32_default - Find a node and return it's property or a default
int err;
u32 tmp;
const char *path;
- uint64_t addr, size;
/* Find the "chosen" node. */
nodeoffset = fdt_path_offset (fdt, "/chosen");
{
int nodeoffset;
int err, i;
- char *str, *src, *dst;
- const char *path;
+ char *str, *dst;
+ const char *src, *path;
char *strargs;
if (!old_args || !new_args)
int fdt_fixup_lcdid(void *fdt)
{
char buf[16];
- extern uint32_t load_lcd_id_to_kernel();
+ extern uint32_t load_lcd_id_to_kernel(void);
uint32_t lcd_id = 0;
int str_len;
int ret;
//add lcd frame buffer base, length should be lcd w*h*2(RGB565)
sprintf(buf, "lcd_base=");
str_len = strlen(buf);
- sprintf(&buf[str_len], "%x",lcd_base);
+ sprintf(&buf[str_len], "%lx",(unsigned long)lcd_base);
str_len = strlen(buf);
buf[str_len] = '\0';
{
//extern unsigned int *adc_data_to_transfer;
unsigned int *adc_data = malloc(64);
- int ret = read_adc_calibration_data(adc_data,48);
+ int ret = read_adc_calibration_data((void *)adc_data,48);
if (ret)
{
char buf[64];
int str_len;
- int ret;
memset(buf, 0, 64);
if(((adc_data[2]&0xffff) < 4500 )&&((adc_data[2]&0xffff) > 3000)&&
int nodeoffset;
int err;
const char *path;
- char *strargs;
int len;
int i = 0;
- printf("fdt addr: 0x%x\n", fdt);
+ printf("fdt addr: 0x%lx\n", (unsigned long)fdt);
err = fdt_check_header(fdt);
if (err < 0) {