Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | 278534d | 2008-10-29 04:51:07 +0000 | [diff] [blame] | 2 | |
Patrick Georgi | d083595 | 2010-10-05 09:07:10 +0000 | [diff] [blame] | 3 | #include <stdint.h> |
4 | #include "i945.h" | ||||
Stefan Reinauer | 53b0ea4 | 2010-03-22 11:50:52 +0000 | [diff] [blame] | 5 | #include "raminit.h" |
6 | |||||
Elyes HAOUAS | 8273e13 | 2020-03-10 22:17:12 +0100 | [diff] [blame] | 7 | int fixup_i945gm_errata(void) |
Stefan Reinauer | 278534d | 2008-10-29 04:51:07 +0000 | [diff] [blame] | 8 | { |
9 | u32 reg32; | ||||
10 | |||||
11 | /* Mobile Intel 945 Express only */ | ||||
Angel Pons | 1d4044a | 2021-03-27 19:11:51 +0100 | [diff] [blame] | 12 | reg32 = mchbar_read32(FSBPMC3); |
Stefan Reinauer | 278534d | 2008-10-29 04:51:07 +0000 | [diff] [blame] | 13 | reg32 &= ~((1 << 13) | (1 << 29)); |
Angel Pons | 1d4044a | 2021-03-27 19:11:51 +0100 | [diff] [blame] | 14 | mchbar_write32(FSBPMC3, reg32); |
Stefan Reinauer | 278534d | 2008-10-29 04:51:07 +0000 | [diff] [blame] | 15 | |
16 | return 0; | ||||
17 | } |