coreboot-v3/mainboard/amd/dbm690t/stage1.c
<<
>>
Prefs
   1/*
   2 * This file is part of the coreboot project.
   3 *
   4 * Copyright (C) 2007 Advanced Micro Devices, Inc.
   5 * Copyright (C) 2008 Ronald G. Minnich <rminnich@gmail.com>
   6 *
   7 * This program is free software; you can redistribute it and/or modify
   8 * it under the terms of the GNU General Public License as published by
   9 * the Free Software Foundation; either version 2 of the License, or
  10 * (at your option) any later version.
  11 *
  12 * This program is distributed in the hope that it will be useful,
  13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15 * GNU General Public License for more details.
  16 *
  17 * You should have received a copy of the GNU General Public License
  18 * along with this program; if not, write to the Free Software
  19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  20 */
  21
  22#include <mainboard.h>
  23#include <types.h>
  24#include <lib.h>
  25#include <console.h>
  26#include <device/device.h>
  27#include <cpu.h>
  28#include <device/pci.h>
  29#include <string.h>
  30#include <msr.h>
  31#include <io.h>
  32#include <arch/x86/msr.h>
  33#include <superio/winbond/w83627hf/w83627hf.h>
  34#include <amd/k8/k8.h>
  35#include <amd/k8/sysconf.h>
  36
  37#define SERIAL_IOBASE 0x3f8
  38
  39void hardware_stage1(void)
  40{
  41        void enumerate_ht_chain(void);
  42        void sb600_pci_port80(void);
  43        void enable_rs690_dev8(void);
  44        void sb600_lpc_init(void);
  45        void it8712f_enable_serial(int unused, u16 iobase);
  46/*
  47        int max;
  48        printk(BIOS_ERR, "Stage1: enable rom ...\n");
  49        max = ARRAY_SIZE(register_values);
  50        setup_resource_map(register_values, max);
  51 */
  52        /* Nothing special needs to be done to find bus 0 */
  53        /* Allow the HT devices to be found */
  54        enumerate_ht_chain();
  55
  56        /* sb600_lpc_port80(); */
  57        sb600_pci_port80();
  58        enable_rs690_dev8();
  59        sb600_lpc_init();
  60
  61        /* it8712f_enable_serial does not use its 1st parameter. */
  62        it8712f_enable_serial(0, SERIAL_IOBASE);
  63        printk(BIOS_ERR, "Done.\n");
  64        post_code(POST_START_OF_MAIN);
  65
  66}
  67
  68void mainboard_pre_payload(void)
  69{
  70        banner(BIOS_DEBUG, "mainboard_pre_payload: done");
  71}
  72
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.