Stefan Reinauer
42fa7fe28b
run uart_init() from console_init, just like the other console initialization functions.
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6531 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 20:54:07 +00:00
Sven Schnelle
d8129f92c0
Add Lenovo ThinkPad T60
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6530 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 09:12:17 +00:00
Sven Schnelle
ea3b58532a
PC87384: remove unused init function
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6529 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 09:05:37 +00:00
Sven Schnelle
81725b2eff
pci1x2x: remove latency/bridge control/cacheline size settings
...
Those settings should be handled by the generic PCI/Cardbus code,
and not by the driver itself.
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6528 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 08:58:38 +00:00
Sven Schnelle
5c72a8752b
pci1x2x: use cardbus_read_resources()/cardbus_enable_resources()
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6527 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 08:58:30 +00:00
Sven Schnelle
5f22f30377
pci1x2x: use pci_ops set_subsystem instead of custom code
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6526 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 08:58:16 +00:00
Sven Schnelle
20f7f3bf91
pci1x2x: add PCI1510 device IDs
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6525 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 08:58:08 +00:00
Sven Schnelle
baec0346b0
pci1x2x: use devicetree register configuration
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6524 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 08:57:53 +00:00
Stefan Reinauer
b297b4901a
drop dead uart init code.
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6523 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 01:08:25 +00:00
Stefan Reinauer
012d867f73
fix boards that still had some uart init remainders
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-20 01:03:58 +00:00
Stefan Reinauer
13508b94cb
Drop baud rate init to an arbitrary baud rate from Super I/O code.
...
See discussion at
http://www.mail-archive.com/coreboot@coreboot.org/msg29394.html
config->com1, devicetree.cb cleanup and init_uart8250() removal
will follow once this patch is comitted
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Patrick Georgi <patrick@georgi-clan.de >
Updated to drop com1, com2.... from config structure and devicetree.cb
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6521 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 21:33:40 +00:00
Sven Schnelle
4fff74b69f
Lenovo PMH7: add pmh7_touchpad_enable()
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 19:57:26 +00:00
Idwer Vollering
4c50cb2457
Fix compilation of all i82371eb boards when ACPI tables aren't generated
...
Signed-off-by: Idwer Vollering <vidwer@gmail.com >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6518 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 19:21:27 +00:00
Zheng Bao
b18f9b0ff4
The "temp" will be used later. So it has to be calculated correctly.
...
Comment by Peter,
The variable name "temp" unfortunately does not explain what the value
is. The commit message also does not have hints. Hopefully in the
future it's possible to also use a brief moment to improve the clarity
of the code, while it is already being fixed for some other
reason. Ie. fixing up variable names, writing particularly informative
commit messages, or of course both at the same time! :)
Signed-off-by: Zheng Bao <zheng.bao@amd.com >
Acked-by: Marc Jones <marcj303@gmail.com >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6517 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 06:40:56 +00:00
Scott Duplichan
52ffb2b66d
Recently the 3 projects using the new AMD reference code have been
...
failing the check for globals (or statics) in romstage. This causes
ASRock E350M1, AMD Inagua, and AMD Persimmon builds to fail with the
message "Do not use global variables in romstage". The message is
working as intended. It is detecting data declared as 'static' when
'static const' was intended. The code executes correctly because it
never tries to modify the data.
To make reference code updates easy, it is probably best to avoid
modifying the AMD provided code if possible. The following change
bypasses the "Do not use global variables in romstage" check for
the AMD reference code only.
Signed-off-by: Scott Duplichan <scott@notabs.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6516 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 01:36:24 +00:00
Stefan Reinauer
582748fbb3
Fix some more misuses of ifdef/if defined
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6515 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 01:18:54 +00:00
Stefan Reinauer
432461ec7f
cleanup wrong use of defined() after exporting all variables in Kconfig
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6514 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-19 00:36:39 +00:00
Stefan Reinauer
b3ae1867d1
* Set USBDEBUG_DEFAULT_PORT in all southbridges and use that value
...
to unify calls to *_enable_usbdebug()
* rename *_enable_usbdebug() to enable_usbdebug()
* move enable_usbdebug() to generic romstage console init code
and drop it from the individual romstage.c files.
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Peter Stuge <peter@stuge.se >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6513 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-18 23:51:12 +00:00
Stefan Reinauer
261f842c1c
fix copy and paste errors in ne2k.c
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6512 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-18 02:26:56 +00:00
Sven Schnelle
ee4c6f7c80
Lenovo H8 EC: add missing systemstatus.asl include
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6510 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-17 14:55:21 +00:00
Sven Schnelle
1b9d2ee6ca
PMH7: Add dock event control
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-17 12:54:32 +00:00
Stefan Reinauer
a7163f1eb9
bootblock updates:
...
- allow CPU to define bootblock code, too.
- drop unneeded __PRE_RAM__ define
- move CBFS specific code out of bootblock_common.h into cbfs.h
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Marc Jones <marcj303@gmail.com >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-16 00:09:53 +00:00
Stefan Reinauer
6aef5542f8
sorry for breaking the tree.
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6506 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-15 09:01:42 +00:00
Stefan Reinauer
b77a73e40b
comment cosmetics in bootblock.ld
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6505 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-15 04:12:03 +00:00
Stefan Reinauer
e50952f532
add FILO easy payload option
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6504 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-15 03:34:05 +00:00
Stefan Reinauer
d85400d805
Handle drivers/ equally to any other sub directory.
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6503 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-15 03:30:03 +00:00
Stefan Reinauer
8345a194ba
fix mainboards that were including earlymtrr.c without actually using it.
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6502 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-15 00:19:27 +00:00
Stefan Reinauer
24ef134b37
drop half an uart8250 implementation from smiutil and use the common code
...
for that instead. This also allows using non-uart8250 consoles for smi
debugging.
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6501 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 22:28:00 +00:00
Stefan Reinauer
40e42a824b
fix coreboot compilation without serial console enabled.
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6500 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 21:05:41 +00:00
Stefan Reinauer
23f49a82f9
earlymtrr.c: wipe some dead code, use names instead of numbers and some
...
cosmetics.
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6499 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:39:49 +00:00
Stefan Reinauer
1fdfed1798
add some comments to walkcbfs.S
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6498 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:33:53 +00:00
Stefan Reinauer
31853d8976
- drop remaining CONFIG_ROM_IMAGE_SIZE
...
- re-enable .data section check for bootblock.
- rename ldscript_fallback_cbfs.lb to bootblock.ld
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6497 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:30:21 +00:00
Stefan Reinauer
8902502c4a
drop incorrectly used CONFIG_ROM_IMAGE_SIZE and unused CONFIG_ARCH
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6496 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:21:49 +00:00
Stefan Reinauer
6108958764
nvidia mcp55: drop unused dbg_info
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6495 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:11:34 +00:00
Stefan Reinauer
28cd29192b
cosmetic cleanup of sis966 usb2 code
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6494 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:10:27 +00:00
Stefan Reinauer
139e6f9555
Use symbolic names for some MTRR bits instead of numbers in CAR code
...
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6493 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-14 20:06:30 +00:00
Sven Schnelle
14748a58d9
Lenovo H8 EC: add missing include for thermal.asl
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6491 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-13 09:23:45 +00:00
Sven Schnelle
3e2f6790ed
Lenovo H8 EC: Set fancontrol to Automatic management
...
My Notebook gets far to hot without fan, so just enable automatic
fan control by default.
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6490 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-12 18:18:24 +00:00
Sven Schnelle
ae08c56d6c
PC87384: add GPIO defines
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6489 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-12 18:18:12 +00:00
Marc Jones
484281b90f
Use TOM2 for highest sysmem setting for northbound memory routing (DMA). This fixes 4GB memory issues.
...
Signed-off-by: Marc Jones <marcj303@gmail.com >
Acked-by: Kerry she <kerry.she@amd.com >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6488 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-12 01:12:46 +00:00
Alexandru Gagniuc
5005bb06c1
Unify use of post_code
...
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6487 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-11 20:17:22 +00:00
Sven Schnelle
1fa61ebb33
PMH7: Add chip config
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Peter Stuge <peter@stuge.se >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6486 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-11 19:43:50 +00:00
Sven Schnelle
ffcd1439f3
EC: Add Lenovo H8
...
Move the EC support code from the X60 mainboard to a generic
driver, as this EC is used in many thinkpads. Also move the
ACPI code to this directory for this reason.
This patch also adds a chip config, so that the initial setting
for basic register can be specified in devicetree.cb
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Peter Stuge <peter@stuge.se >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6485 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-11 19:43:32 +00:00
Sven Schnelle
148a4f5681
i945: improve get_top_of_ram()
...
The current version doesn't honor TSEG, and fails to
report the correct top of RAM if IGD is disabled. This
is because it uses the BSM (base of stolen RAM) register.
In that case, we should use the TOLUD register.
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6483 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-10 07:41:56 +00:00
Stefan Reinauer
61aee5f4b1
In 2007 Adrian Reber suggested that we drop ASSEMBLY in favor of __ASSEMBLER__.
...
http://www.coreboot.org/pipermail/coreboot/2007-September/024665.html
It's about time we follow this advice.
Also move some manually set __PRE_RAM__ defines (ap_romstage.c) to the Makefile and
drop unused CPP define
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org >
Acked-by: Patrick Georgi <patrick@georgi-clan.de >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6482 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-10 04:15:23 +00:00
Sven Schnelle
df6fd566ba
X60: use pnp_write_config() instead of custom function
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6481 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-05 13:00:33 +00:00
Sven Schnelle
b31eb3e4a8
X60: move ec version info code to log_ec_version()
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6480 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-05 13:00:14 +00:00
Sven Schnelle
bc60833954
X60: assert audio mute before entering Suspend
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6479 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-04 15:19:59 +00:00
Sven Schnelle
bdb10594aa
X60: log firmware version
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6478 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-04 12:33:54 +00:00
Sven Schnelle
8099cbf764
X60: blink suspend LED during resume
...
Signed-off-by: Sven Schnelle <svens@stackframe.org >
Acked-by: Sven Schnelle <svens@stackframe.org >
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6477 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2011-04-04 10:57:17 +00:00