/* * Initialize TMU device * * @return int value, 0 for success */ int tmu_init(struct tmu_info *info) { info->tmu_state = TMU_STATUS_INIT; tmu_setup_parameters(info); info->tmu_state = TMU_STATUS_NORMAL; return 0; }
/* * Initialize TMU device * * @param blob FDT blob * @return int value, 0 for success */ int tmu_init(const void *blob) { gbl_info.tmu_state = TMU_STATUS_INIT; if (get_tmu_fdt_values(&gbl_info, blob) < 0) return -1; tmu_setup_parameters(&gbl_info); gbl_info.tmu_state = TMU_STATUS_NORMAL; return 0; }