blob: c4219d94e32da3cda75f6b29d7883ee080525bc7 [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>
Elyes Haouas1a847a12022-10-07 10:41:42 +02004
Patrick Georgid0835952010-10-05 09:07:10 +00005#include "i945.h"
Stefan Reinauer53b0ea42010-03-22 11:50:52 +00006#include "raminit.h"
7
Elyes HAOUAS8273e132020-03-10 22:17:12 +01008int fixup_i945gm_errata(void)
Stefan Reinauer278534d2008-10-29 04:51:07 +00009{
10 u32 reg32;
11
12 /* Mobile Intel 945 Express only */
Angel Pons1d4044a2021-03-27 19:11:51 +010013 reg32 = mchbar_read32(FSBPMC3);
Stefan Reinauer278534d2008-10-29 04:51:07 +000014 reg32 &= ~((1 << 13) | (1 << 29));
Angel Pons1d4044a2021-03-27 19:11:51 +010015 mchbar_write32(FSBPMC3, reg32);
Stefan Reinauer278534d2008-10-29 04:51:07 +000016
17 return 0;
18}