mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
1. move early_* names to stage1.c
2. rename *_early_init symbols to *_stage1 3. Rename early_init to hardware_stage1 now people can see when things are supposed to happen. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@407 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
c61a113dfb
commit
e62540d291
7 changed files with 10 additions and 10 deletions
|
@ -29,7 +29,7 @@
|
|||
void uart_init(void);
|
||||
void die(const char *msg);
|
||||
int find_file(struct mem_file *archive, char *filename, struct mem_file *result);
|
||||
void early_init(void);
|
||||
void hardware_stage1(void);
|
||||
|
||||
// Is this value correct?
|
||||
#define DCACHE_RAM_SIZE 0x8000
|
||||
|
@ -82,7 +82,7 @@ void stage1_main(u32 bist)
|
|||
// We have cache as ram running and can start executing code in C.
|
||||
//
|
||||
|
||||
early_init();
|
||||
hardware_stage1();
|
||||
|
||||
//
|
||||
uart_init(); // initialize serial port
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
STAGE0_MAINBOARD_OBJ := $(obj)/superio/winbond/w83627hf/w83627hf_early_serial.o \
|
||||
STAGE0_MAINBOARD_OBJ := $(obj)/superio/winbond/w83627hf/stage1.o \
|
||||
$(obj)/device/pnp_raw.o \
|
||||
$(obj)/southbridge/amd/cs5536/cs5536_early_setup.o\
|
||||
$(obj)/arch/x86/geodelx/early_init.o \
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/early_init.o
|
||||
$(obj)/southbridge/amd/cs5536/stage1.o\
|
||||
$(obj)/arch/x86/geodelx/stage1.o \
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/stage1.o
|
||||
|
||||
$(obj)/linuxbios.vpd:
|
||||
$(Q)printf " BUILD DUMMY VPD\n"
|
||||
|
|
|
@ -35,14 +35,14 @@
|
|||
|
||||
#define SERIAL_DEV 0x30
|
||||
|
||||
int early_init(void)
|
||||
int hardware_stage1(void)
|
||||
{
|
||||
void w83627hf_enable_serial(u8 dev, u8 serial, u16 iobase);
|
||||
post_code(POST_START_OF_MAIN);
|
||||
|
||||
geodelx_msr_init();
|
||||
|
||||
cs5536_early_setup();
|
||||
cs5536_stage1();
|
||||
|
||||
/* NOTE: must do this AFTER the early_setup!
|
||||
* it is counting on some early MSR setup
|
|
@ -451,7 +451,7 @@ void cs5536_setup_smbus_gpio(void);
|
|||
void cs5536_disable_internal_uart(void);
|
||||
void cs5536_setup_cis_mode(void);
|
||||
void cs5536_setup_onchipuart(void);
|
||||
void cs5536_early_setup(void);
|
||||
void cs5536_stage1(void);
|
||||
|
||||
|
||||
#endif /* SOUTHBRIDGE_AMD_CS5536_CS5536_H */
|
||||
|
|
|
@ -274,7 +274,7 @@ void cs5536_setup_onchipuart(void)
|
|||
* See also a comment from Marc Jones:
|
||||
* http://www.linuxbios.org/pipermail/linuxbios/2007-June/021958.html
|
||||
*/
|
||||
void cs5536_early_setup(void)
|
||||
void cs5536_stage1(void)
|
||||
{
|
||||
struct msr msr;
|
||||
|
Loading…
Add table
Reference in a new issue