int ar7240_mem_config(void) { /* Default tap values for starting the tap_init*/ ar7240_reg_wr(AR7240_DDR_TAP_CONTROL0, CFG_DDR_TAP0_VAL); ar7240_reg_wr(AR7240_DDR_TAP_CONTROL1, CFG_DDR_TAP1_VAL); ar7240_gpio_config(); ar7240_all_led_off(); // TODO: check if this is necessary for USB initialization //ar7240_usb_initial_config(); //ar7240_usb_otp_config(); hornet_ddr_tap_init(); // return memory size return (ar7240_ddr_find_size()); }
int ar7240_mem_config(void){ #ifndef CONFIG_SKIP_LOWLEVEL_INIT #ifndef COMPRESSED_UBOOT hornet_ddr_init(); #endif /* Default tap values for starting the tap_init*/ ar7240_reg_wr(AR7240_DDR_TAP_CONTROL0, CFG_DDR_TAP0_VAL); ar7240_reg_wr(AR7240_DDR_TAP_CONTROL1, CFG_DDR_TAP1_VAL); #endif gpio_config(); all_led_off(); #ifndef CONFIG_SKIP_LOWLEVEL_INIT hornet_ddr_tap_init(); #endif // return memory size return(ar7240_ddr_find_size()); }
int ar7240_mem_config(void){ #ifndef COMPRESSED_UBOOT ar7240_ddr_initial_config(CFG_DDR_REFRESH_VAL); #endif /* Default tap values for starting the tap_init*/ ar7240_reg_wr(AR7240_DDR_TAP_CONTROL0, CFG_DDR_TAP0_VAL); ar7240_reg_wr(AR7240_DDR_TAP_CONTROL1, CFG_DDR_TAP1_VAL); gpio_config(); all_led_off(); #ifndef COMPRESSED_UBOOT ar7240_ddr_tap_init(); #else hornet_ddr_tap_init(); #endif // return memory size return(ar7240_ddr_find_size()); }