blob: 3057ae92e21b9fc101fbafc359af9fc48f21c386 [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer278534d2008-10-29 04:51:07 +00002
Patrick Georgid0835952010-10-05 09:07:10 +00003#include <stdint.h>
4#include "i945.h"
Stefan Reinauer53b0ea42010-03-22 11:50:52 +00005#include "raminit.h"
6
Elyes HAOUAS8273e132020-03-10 22:17:12 +01007int fixup_i945gm_errata(void)
Stefan Reinauer278534d2008-10-29 04:51:07 +00008{
9 u32 reg32;
10
11 /* Mobile Intel 945 Express only */
Angel Pons1d4044a2021-03-27 19:11:51 +010012 reg32 = mchbar_read32(FSBPMC3);
Stefan Reinauer278534d2008-10-29 04:51:07 +000013 reg32 &= ~((1 << 13) | (1 << 29));
Angel Pons1d4044a2021-03-27 19:11:51 +010014 mchbar_write32(FSBPMC3, reg32);
Stefan Reinauer278534d2008-10-29 04:51:07 +000015
16 return 0;
17}