mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
disk and attempt to boot a linux kernel. Signed-off-by: Corey Osgood <corey.osgood@gmail.com> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1087 f3766cd6-281f-0410-b1cd-43a5c92072e9
66 lines
1.9 KiB
C
66 lines
1.9 KiB
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* Copyright (C) 2008 Corey Osgood <corey.osgood@gmail.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef NORTHBRIDGE_VIA_CN700_CN700_H
|
|
#define NORTHBRIDGE_VIA_CN700_CN700_H
|
|
|
|
#include <types.h>
|
|
|
|
struct board_info {
|
|
u32 d0f2, d0f3, d0f4, d0f7, d1f0;
|
|
u16 spd_channel0[2];
|
|
};
|
|
|
|
void cn700_stage1(void);
|
|
void sdram_set_registers(struct board_info *);
|
|
void sdram_set_spd_registers(struct board_info *);
|
|
void ddr2_sdram_enable(struct board_info *);
|
|
|
|
/* VGA stuff */
|
|
#define SR_INDEX 0x3c4
|
|
#define SR_DATA 0x3c5
|
|
#define CRTM_INDEX 0x3b4
|
|
#define CRTM_DATA 0x3b5
|
|
#define CRTC_INDEX 0x3d4
|
|
#define CRTC_DATA 0x3d5
|
|
|
|
/* Memory Controller Registers */
|
|
#define RANK0_END 0x40
|
|
#define RANK1_END 0x41
|
|
#define RANK2_END 0x42
|
|
#define RANK3_END 0x43
|
|
#define RANK0_START 0x48
|
|
#define RANK1_START 0x49
|
|
#define RANK2_START 0x4a
|
|
#define RANK3_START 0x4b
|
|
#define DDR_PAGE_CTL 0x69
|
|
#define DRAM_REFRESH_COUNTER 0x6a
|
|
#define DRAM_MISC_CTL 0x6b
|
|
#define CH_A_DQS_OUTPUT_DELAY 0x70
|
|
#define CH_A_MD_OUTPUT_DELAY 0x71
|
|
|
|
/* RAM Init Commands */
|
|
#define RAM_COMMAND_NORMAL 0x0
|
|
#define RAM_COMMAND_NOP 0x1
|
|
#define RAM_COMMAND_PRECHARGE 0x2
|
|
#define RAM_COMMAND_MRS 0x3
|
|
#define RAM_COMMAND_CBR 0x4
|
|
|
|
#endif
|