1/* 2 * This file is part of the coreboot project. 3 * 4 * Copyright (C) 2007 Advanced Micro Devices, Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21#include <types.h> 22#include <lib.h> 23#include <console.h> 24#include <device/device.h> 25#include <device/pci.h> 26#include <string.h> 27#include <msr.h> 28#include <io.h> 29#include <amd_geodelx.h> 30#include <southbridge/amd/cs5536/cs5536.h> 31#include <superio/ite/it8716f/it8716f.h> 32 33#define SERIAL_DEV IT8716F_SP1 34#define SERIAL_IOBASE 0x3f8 35 36void hardware_stage1(void) 37{ 38 void it8716f_enable_serial(u8 dev, u8 serial, u16 iobase); 39 40 post_code(POST_START_OF_MAIN); 41 geodelx_msr_init(); 42 cs5536_stage1(); 43 44 /* 45 * Note: Must do this AFTER the early_setup! It is counting on some 46 * early MSR setup for CS5536. 47 */ 48 cs5536_disable_internal_uart(); 49 50 it8716f_enable_serial(0x2e, SERIAL_DEV, SERIAL_IOBASE); 51} 52 53void mainboard_pre_payload(void) 54{ 55 geode_pre_payload(); 56 banner(BIOS_DEBUG, "mainboard_pre_payload: done"); 57} 58

