/* Use write-combining for the graphics memory, 256MB */
fbbase = IS_ENABLED(CONFIG_VIDEO_COPY) ? plat->copy_base : plat->base;
- ret = mtrr_add_request(MTRR_TYPE_WRCOMB, fbbase, 256 << 20);
- if (!ret)
- ret = mtrr_commit(true);
- if (ret && ret != -ENOSYS) {
- printf("Failed to add MTRR: Display will be slow (err %d)\n",
- ret);
- }
+ ret = mtrr_set_next_var(MTRR_TYPE_WRCOMB, fbbase, 256 << 20);
+ if (ret)
+ printf("Failed to add MTRR: Display will be slow (err %d)\n", ret);
debug("fb=%lx, size %x, display size=%d %d %d\n", plat->base,
plat->size, uc_priv->xsize, uc_priv->ysize, uc_priv->bpix);