drm/nouveau/bios: Add rammap support for version 1.0
authorRoy Spliet <rspliet@eclipso.eu>
Fri, 12 Sep 2014 16:00:12 +0000 (18:00 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Sep 2014 12:25:13 +0000 (22:25 +1000)
Signed-off-by: Roy Spliet <rspliet@eclipso.eu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c

index 8b0dda5de9e041c97c8c83d6396f7e7f8a6dbf3f..ae3d956aec997e61c56e0df1477d460b890f5256 100644 (file)
@@ -84,6 +84,10 @@ nvbios_rammapEp(struct nouveau_bios *bios, int idx,
        p->rammap_ver = *ver;
        p->rammap_hdr = *hdr;
        switch (!!data * *ver) {
+       case 0x10:
+               p->rammap_min      =  nv_ro16(bios, data + 0x00);
+               p->rammap_max      =  nv_ro16(bios, data + 0x02);
+               break;
        case 0x11:
                p->rammap_min      =  nv_ro16(bios, data + 0x00);
                p->rammap_max      =  nv_ro16(bios, data + 0x02);