|
@@ -72,6 +72,21 @@ nvbios_rammapEe(struct nvkm_bios *bios, int idx,
|
|
|
return 0x0000;
|
|
|
}
|
|
|
|
|
|
+/* Pretend a performance mode is also a rammap entry, helps coalesce entries
|
|
|
+ * later on */
|
|
|
+u32
|
|
|
+nvbios_rammapEp_from_perf(struct nvkm_bios *bios, u32 data, u8 size,
|
|
|
+ struct nvbios_ramcfg *p)
|
|
|
+{
|
|
|
+ memset(p, 0x00, sizeof(*p));
|
|
|
+
|
|
|
+ p->rammap_00_16_20 = (nv_ro08(bios, data + 0x16) & 0x20) >> 5;
|
|
|
+ p->rammap_00_16_40 = (nv_ro08(bios, data + 0x16) & 0x40) >> 6;
|
|
|
+ p->rammap_00_17_02 = (nv_ro08(bios, data + 0x17) & 0x02) >> 1;
|
|
|
+
|
|
|
+ return data;
|
|
|
+}
|
|
|
+
|
|
|
u32
|
|
|
nvbios_rammapEp(struct nvkm_bios *bios, int idx,
|
|
|
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p)
|