From: Jason Jin <Jason.jin@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 7/7] Made MAI board to use BIOS emulator in drivers directory
Date: Fri, 13 Jul 2007 12:15:01 +0800 [thread overview]
Message-ID: <11843001034179-git-send-email-Jason.jin@freescale.com> (raw)
In-Reply-To: <11843001023893-git-send-email-Jason.jin@freescale.com>
The BIOS emulator in the MAI board was removed, this patch made the MAI board
use the BIOS emulator in the drivers directory.
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
---
board/MAI/AmigaOneG3SE/articiaS_pci.c | 17 ++++-------------
include/configs/AmigaOneG3SE.h | 19 +++++++++++++++++++
2 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/board/MAI/AmigaOneG3SE/articiaS_pci.c b/board/MAI/AmigaOneG3SE/articiaS_pci.c
index 45b8195..8333e6e 100644
--- a/board/MAI/AmigaOneG3SE/articiaS_pci.c
+++ b/board/MAI/AmigaOneG3SE/articiaS_pci.c
@@ -489,7 +489,7 @@ static short classes[] =
~0
};
-extern int execute_bios(pci_dev_t gr_dev, void *);
+/*extern int execute_bios(pci_dev_t gr_dev, void *);*/
pci_dev_t video_dev;
@@ -555,20 +555,11 @@ int articiaS_init_vga (void)
/*
* Now try to run the bios
*/
+#if defined(CONFIG_BIOSEMU)
PRINTF("Trying to run bios now\n");
- if (execute_bios(dev, gd->relocaddr))
- {
- printf("OK\n");
- video_dev = dev;
- }
- else
- {
- printf("ERROR\n");
- }
-
+ BootVideoCardBIOS(dev, NULL, 0);
PRINTF("Done scanning.\n");
-
- shutdown_bios();
+#endif
if (dev == PCI_ANY_ID) return -1;
else return 0;
diff --git a/include/configs/AmigaOneG3SE.h b/include/configs/AmigaOneG3SE.h
index 9c89915..ed66fa4 100644
--- a/include/configs/AmigaOneG3SE.h
+++ b/include/configs/AmigaOneG3SE.h
@@ -90,6 +90,25 @@
#define atoi(x) simple_strtoul(x,NULL,10)
+#ifdef CONFIG_PCI
+#define _IO_BASE 0
+#define ARTICIAS_PCI_PHYS 0x8000000
+/*PCIE video card used*/
+#define VIDEO_IO_OFFSET ARTICIAS_PCI_PHYS
+
+/* video */
+#define CONFIG_VIDEO
+
+#if defined(CONFIG_VIDEO)
+#define CONFIG_BIOSEMU
+#define CONFIG_CFB_CONSOLE
+#define CONFIG_VIDEO_SW_CURSOR
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_VIDEO_LOGO
+/*#define CONFIG_CONSOLE_CURSOR*/
+#endif
+#endif
+
/*
* Miscellaneous configurable options
*/
--
1.5.1
prev parent reply other threads:[~2007-07-13 4:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 4:14 [U-Boot-Users] [PATCH 3/7] Configurations for ATI video card BIOS emulator Jason Jin
2007-07-13 4:14 ` [U-Boot-Users] [PATCH 4/7] Fix some compile issues for MAI board Jason Jin
2007-07-13 4:15 ` [U-Boot-Users] [PATCH 6/7] Makefile changes after removing the BIOS emulator from " Jason Jin
2007-07-13 4:15 ` Jason Jin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11843001034179-git-send-email-Jason.jin@freescale.com \
--to=jason.jin@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.