Browse Source

1.if 7A spi not have 7aVbios,use default Vbios

2.modify 7A board name

Change-Id: Ie17bbde96b03a8245e397460ca136e4975c19033
master
wuze 6 years ago
parent
commit
0d0fc82b61
  1. 4
      Targets/Bonito3a3000_7a/Bonito/tgt_machdep.c
  2. 7681
      Targets/Bonito3a3000_7a/dev/7aVbios.h
  3. 5
      pmon/cmds/bootparam.c

4
Targets/Bonito3a3000_7a/Bonito/tgt_machdep.c

@ -1433,9 +1433,9 @@ struct board_devices *board_devices_info()
struct board_devices *bd = &g_board;
#ifdef MULTI_CHIP
strcpy(bd->name,"Loongson-3A3000-7A-Dev-2way");
strcpy(bd->name,"Loongson-3A3000-7A-Dev-2way-ATX_EVB");
#else
strcpy(bd->name,"Loongson-3A3000-7A-Dev-1way");
strcpy(bd->name,"Loongson-3A3000-7A-Dev-1way-ATX_EVB");
#endif
bd->num_resources = 10;

7681
Targets/Bonito3a3000_7a/dev/7aVbios.h

File diff suppressed because it is too large

5
pmon/cmds/bootparam.c

@ -2,6 +2,7 @@
#include <stdio.h>
#include "bootparam.h"
#include "../common/smbios/smbios.h"
#ifdef LS3A2H_STR
#define LS3A2H_STR_FUNC_ADDR 0xffffffffbfc00500
#endif
@ -16,11 +17,11 @@ struct interface_info g_board = { 0 };
struct loongson_special_attribute g_special = { 0 };
#ifdef LS7A
unsigned char readspi_result[128 * 1024] = {0};
#include "../../Targets/Bonito3a3000_7a/dev/7aVbios.h"
#endif
extern void poweroff_kernel(void);
extern void reboot_kernel(void);
#ifdef RS780E
extern unsigned char vgarom[];
extern struct pci_device *vga_dev;
@ -81,7 +82,7 @@ void init_smbios(struct smbios_tables *smbios)
if(!ls7a_vgabios_crc_check(readspi_result))
smbios->vga_bios = readspi_result;
else
smbios->vga_bios = 0;
smbios->vga_bios = Vbios;
}
else
smbios->vga_bios = 0;

Loading…
Cancel
Save