Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91a0ce965d |
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -1,21 +1,3 @@
|
||||
NOTE! This copyright does *not* cover the so-called "standalone"
|
||||
applications that use U-Boot services by means of the jump table
|
||||
provided by U-Boot exactly for this purpose - this is merely
|
||||
considered normal use of U-Boot, and does *not* fall under the
|
||||
heading of "derived work".
|
||||
|
||||
The header files "include/image.h" and "include/asm-*/u-boot.h"
|
||||
define interfaces to U-Boot. Including these (unmodified) header
|
||||
files in another file is considered normal use of U-Boot, and does
|
||||
*not* fall under the heading of "derived work".
|
||||
|
||||
Also note that the GPL below is copyrighted by the Free Software
|
||||
Foundation, but the instance of code that it refers to (the U-Boot
|
||||
source code) is copyrighted by me and others who actually wrote it.
|
||||
-- Wolfgang Denk
|
||||
|
||||
=======================================================================
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
|
||||
@@ -18,41 +18,26 @@ N: Dr. Bruno Achauer
|
||||
E: bruno@exet-ag.de
|
||||
D: Support for NetBSD (both as host and target system)
|
||||
|
||||
N: Guillaume Alexandre
|
||||
E: guillaume.alexandre@gespac.ch
|
||||
D: Add PCIPPC6 configuration
|
||||
|
||||
N: Swen Anderson
|
||||
E: sand@peppercon.de
|
||||
D: ERIC Support
|
||||
|
||||
N: Guillaume Alexandre
|
||||
E: guillaume.alexandre@gespac.ch
|
||||
D: Add PCIPPC6 configuration
|
||||
|
||||
N: Pantelis Antoniou
|
||||
E: panto@intracom.gr
|
||||
D: NETVIA & NETPHONE board support, ARTOS support.
|
||||
D: Support for Silicon Turnkey eXpress XTc
|
||||
D: NETVIA board support, ARTOS support.
|
||||
|
||||
N: Pierre Aubert
|
||||
E: <p.aubert@staubli.com>
|
||||
D: Support for RPXClassic board
|
||||
|
||||
N: Yuli Barcohen
|
||||
E: yuli@arabellasw.com
|
||||
D: Unified support for Motorola MPC826xADS/MPC8272ADS/PQ2FADS boards.
|
||||
D: Support for Zephyr Engineering ZPC.1900 board.
|
||||
D: Support for Interphase iSPAN boards.
|
||||
D: Support for Analogue&Micro Adder boards.
|
||||
D: Support for Analogue&Micro Rattler boards.
|
||||
W: http://www.arabellasw.com
|
||||
|
||||
N: Jerry van Baren
|
||||
E: <vanbaren@cideas.com>
|
||||
D: BedBug port to 603e core (MPC82xx). Code for enhanced memory test.
|
||||
|
||||
N: Pavel Bartusek
|
||||
E: <pba@sysgo.com>
|
||||
D: Reiserfs support
|
||||
W: http://www.elinos.com
|
||||
|
||||
N: Andre Beaudin
|
||||
E: <andre.beaudin@colubris.com>
|
||||
D: PCMCIA, Ethernet, TFTP
|
||||
@@ -65,12 +50,6 @@ N: Raphael Bossek
|
||||
E: raphael.bossek@solutions4linux.de
|
||||
D: 8xxrom-0.3.0
|
||||
|
||||
N: Cliff Brake
|
||||
E: cliff.brake@gmail.com
|
||||
D: Port to Vibren PXA255 IDP platform
|
||||
W: http://www.vibren.com
|
||||
W: http://bec-systems.com
|
||||
|
||||
N: Rick Bronson
|
||||
E: rick@efn.org
|
||||
D: Atmel AT91RM9200DK and NAND support
|
||||
@@ -83,12 +62,6 @@ N: Oliver Brown
|
||||
E: obrown@adventnetworks.com
|
||||
D: Port to the gw8260 board
|
||||
|
||||
N: Curt Brune
|
||||
E: curt@cucy.com
|
||||
D: Added support for Samsung S3C4510B CPU (ARM7tdmi based SoC)
|
||||
D: Added support for ESPD-Inc. EVB4510 Board
|
||||
W: http://www.cucy.com
|
||||
|
||||
N: Jonathan De Bruyne
|
||||
E: jonathan.debruyne@siemens.atea.be
|
||||
D: Port to Siemens IAD210 board
|
||||
@@ -102,17 +75,9 @@ E: clark@esteem.com
|
||||
D: ESTEEM192E support
|
||||
|
||||
N: Magnus Damm
|
||||
E: damm@opensource.se
|
||||
E: eramdam@kieray1.p.y.ki.era.ericsson.se
|
||||
D: 8xxrom
|
||||
|
||||
N: Richard Danter
|
||||
E: richard.danter@windriver.com
|
||||
D: Support for Wind River PPMC 7xx/74xx boards
|
||||
|
||||
N: George G. Davis
|
||||
E: gdavis@mvista.com
|
||||
D: Board ports for ADS GraphicsClient+ and Intel Assabet
|
||||
|
||||
N: Arun Dharankar
|
||||
E: ADharankar@ATTBI.Com
|
||||
D: threads / scheduler example code
|
||||
@@ -138,20 +103,10 @@ N: Dave Ellis
|
||||
E: DGE@sixnetio.com
|
||||
D: EEPROM Speedup, SXNI855T port
|
||||
|
||||
N: Thomas Elste
|
||||
E: info@elste.org
|
||||
D: Port for the ModNET50 Board, NET+50 CPU Port
|
||||
W: http://www.imms.de
|
||||
|
||||
N: Daniel Engström
|
||||
E: daniel@omicron.se
|
||||
D: x86 port, Support for sc520_cdp board
|
||||
|
||||
N: Hayden Fraser
|
||||
E: Hayden.Fraser@freescale.com
|
||||
D: Support for ColdFire MCF5253
|
||||
W: www.freescale.com
|
||||
|
||||
N: Dr. Wolfgang Grandegger
|
||||
E: wg@denx.de
|
||||
D: Support for Interphase 4539 T1/E1/J1 PMC, PN62, CCM, SCM boards
|
||||
@@ -165,15 +120,6 @@ N: Thomas Frieden
|
||||
E: ThomasF@hyperion-entertainment.com
|
||||
D: Support for AmigaOne
|
||||
|
||||
N: Niklaus Giger
|
||||
E: niklaus.giger@netstal.com
|
||||
D: Support for HCU(x) boards
|
||||
W: www.netstal.com
|
||||
|
||||
N: Paul Gortmaker
|
||||
E: paul.gortmaker@windriver.com
|
||||
D: Support for WRS SBC8347/8349 boards
|
||||
|
||||
N: Frank Gottschling
|
||||
E: fgottschling@eltec.de
|
||||
D: Support for ELTEC MHPC/BAB7xx/ELPPC boards, cfb-console, i8042, SMI LynxEM
|
||||
@@ -223,104 +169,39 @@ D: Support for Samsung ARM920T S3C2400X, ARM920T "TRAB"
|
||||
W: www.denx.de
|
||||
|
||||
N: Murray Jensen
|
||||
E: Murray.Jensen@csiro.au
|
||||
E: Murray.Jensen@cmst.csiro.au
|
||||
D: Initial 8260 support; GDB support
|
||||
D: Port to Cogent+Hymod boards; Hymod Board Database
|
||||
W: http://www.msa.cmst.csiro.au/ourstaff/MurrayJensen/mjj.html
|
||||
|
||||
N: Yoo. Jonghoon
|
||||
E: yooth@ipone.co.kr
|
||||
D: Added port to the RPXlite board
|
||||
|
||||
N: Mark Jonas
|
||||
E: mark.jonas@freescale.com
|
||||
D: Support for Freescale Total5200 platform
|
||||
W: http://www.mobilegt.com/
|
||||
|
||||
N: Sam Song
|
||||
E: samsongshu@yahoo.com.cn
|
||||
D: Port to the RPXlite_DW board
|
||||
|
||||
N: Brad Kemp
|
||||
E: Brad.Kemp@seranoa.com
|
||||
D: Port to Windriver ppmc8260 board
|
||||
|
||||
N: Sangmoon Kim
|
||||
E: dogoil@etinsys.com
|
||||
D: Support for debris board
|
||||
D: Support for KVME080 board
|
||||
|
||||
N: Frederick W. Klatt
|
||||
E: fred.klatt@windriver.com
|
||||
D: Support for Wind River SBC8540/SBC8560 boards
|
||||
|
||||
N: Thomas Koeller
|
||||
E: tkoeller@gmx.net
|
||||
D: Port to Motorola Sandpoint 3 (MPC8240)
|
||||
|
||||
N: Raghu Krishnaprasad
|
||||
E: Raghu.Krishnaprasad@fci.com
|
||||
D: Support for Adder-II MPC852T evaluation board
|
||||
W: http://www.forcecomputers.com
|
||||
|
||||
N: Sergey Kubushyn
|
||||
E: ksi@koi8.net
|
||||
D: Support for various TI DaVinci based boards.
|
||||
|
||||
N: Bernhard Kuhn
|
||||
E: bkuhn@metrowerks.com
|
||||
D Support for Coldfire CPU; Support for Motorola M5272C3 and M5282EVB boards
|
||||
|
||||
N: Prakash Kumar
|
||||
E: prakash@embedx.com
|
||||
D Support for Intrinsyc CERF PXA250 board.
|
||||
|
||||
N: Thomas Lange
|
||||
E: thomas@corelatus.se
|
||||
D: Support for GTH, GTH2 and dbau1x00 boards; lots of PCMCIA fixes
|
||||
|
||||
N: Marc Leeman
|
||||
E: marc.leeman@barco.com
|
||||
D: Support for Barco Streaming Video Card (SVC) and Sample Compress Network (SCN)
|
||||
W: www.barco.com
|
||||
E: thomas@corelatus.com
|
||||
D: Support for GTH board; lots of PCMCIA fixes
|
||||
|
||||
N: The LEOX team
|
||||
E: team@leox.org
|
||||
D: Support for LEOX boards, DS164x RTC
|
||||
W: http://www.leox.org
|
||||
|
||||
N: TsiChung Liew
|
||||
E: Tsi-Chung.Liew@freescale.com
|
||||
D: Support for ColdFire MCF523x, MCF532x, MCF5445x
|
||||
W: www.freescale.com
|
||||
|
||||
N: Leif Lindholm
|
||||
E: leif.lindholm@i3micro.com
|
||||
D: Support for AMD dbau1550 board.
|
||||
|
||||
N: Stephan Linz
|
||||
E: linz@li-pro.net
|
||||
D: Support for Nios Stratix Development Kit (DK-1S10)
|
||||
D: Support for SSV ADNP/ESC1 (Nios Cyclone)
|
||||
W: http://www.li-pro.net
|
||||
|
||||
N: Raymond Lo
|
||||
E: lo@routefree.com
|
||||
D: Support for DOS partitions
|
||||
|
||||
N: James MacAulay
|
||||
E: james.macaulay@amirix.com
|
||||
D: Suppport for Amirix AP1000
|
||||
W: www.amirix.com
|
||||
|
||||
N: Dan Malek
|
||||
E: dan@embeddedalley.com
|
||||
E: dan@netx4.com
|
||||
D: FADSROM, the grandfather of all of this
|
||||
D: Support for Silicon Turnkey eXpress XTc
|
||||
|
||||
N: Andrea "llandre" Marson
|
||||
E: andrea.marson@dave-tech.it
|
||||
D: Port to PPChameleonEVB board
|
||||
W: www.dave-tech.it
|
||||
|
||||
N: Reinhard Meyer
|
||||
E: r.meyer@emk-elektronik.de
|
||||
@@ -338,26 +219,11 @@ N: David M
|
||||
E: d.mueller@elsoft.ch
|
||||
D: Support for Samsung ARM920T SMDK2410 eval board
|
||||
|
||||
N: Scott McNutt
|
||||
E: smcnutt@psyent.com
|
||||
D: Support for Altera Nios-32 CPU
|
||||
D: Support for Altera Nios-II CPU
|
||||
D: Support for Nios Cyclone Development Kit (DK-1C20)
|
||||
W: http://www.psyent.com
|
||||
|
||||
N: Rolf Offermanns
|
||||
E: rof@sysgo.de
|
||||
D: Initial support for SSV-DNP1110, SMC91111 driver
|
||||
W: www.elinos.com
|
||||
|
||||
N: John Otken
|
||||
E: jotken@softadvances.com
|
||||
D: Support for AMCC Luan 440SP board
|
||||
|
||||
N: Tolunay Orkun
|
||||
E: torkun@nextio.com
|
||||
D: Support for Cogent CSB272 & CSB472 boards
|
||||
|
||||
N: Keith Outwater
|
||||
E: keith_outwater@mvis.com
|
||||
D: Support for generic/custom MPC860T boards (GEN860T, GEN860T_SC)
|
||||
@@ -372,41 +238,22 @@ D: Support for 4xx SCSI, floppy, CDROM, CT69000 video, ...
|
||||
D: Support for PIP405 board
|
||||
D: Support for MIP405 board
|
||||
|
||||
N: Dave Peverley
|
||||
E: dpeverley@mpc-data.co.uk
|
||||
W: http://www.mpc-data.co.uk
|
||||
D: OMAP730 P2 board support
|
||||
|
||||
N: Bill Pitts
|
||||
E: wlp@mindspring.com
|
||||
D: BedBug embedded debugger code
|
||||
|
||||
N: Daniel Poirot
|
||||
E: dan.poirot@windriver.com
|
||||
D: Support for the Wind River sbc405, sbc8240 board
|
||||
W: http://www.windriver.com
|
||||
|
||||
N: Stefan Roese
|
||||
E: sr@denx.de
|
||||
D: AMCC PPC4xx Support
|
||||
W: http://www.denx.de
|
||||
E: stefan.roese@esd-electronics.com
|
||||
D: IBM PPC401/403/405GP Support; Windows environment support
|
||||
|
||||
N: Erwin Rol
|
||||
E: erwin@muffin.org
|
||||
D: boot support for RTEMS
|
||||
|
||||
N: Paul Ruhland
|
||||
E: pruhland@rochester.rr.com
|
||||
D: Port to Logic Zoom LH7A40x SDK board(s)
|
||||
|
||||
N: Neil Russell
|
||||
E: caret@c-side.com
|
||||
D: Author of LiMon-1.4.2, which contributed some ideas
|
||||
|
||||
N: Travis B. Sawyer
|
||||
E: travis.sawyer@sandburst.com
|
||||
D: Support for AMCC PPC440GX, XES XPedite1000 440GX PrPMC board. AMCC 440gx Ref Platform (Ocotea)
|
||||
|
||||
N: Paolo Scaffardi
|
||||
E: arsenio@tin.it
|
||||
D: FADS823 configuration, MPC823 video support, I2C, wireless keyboard, lots more
|
||||
@@ -415,37 +262,6 @@ N: Robert Schwebel
|
||||
E: r.schwebel@pengutronix.de
|
||||
D: Support for csb226, logodl and innokom boards (PXA2xx)
|
||||
|
||||
N: Aaron Sells
|
||||
E: sellsa@embeddedplanet.com
|
||||
D: Support for EP82xxM
|
||||
|
||||
N: Art Shipkowski
|
||||
E: art@videon-central.com
|
||||
D: Support for NetSilicon NS7520
|
||||
|
||||
N: Michal Simek
|
||||
E: monstr@monstr.eu
|
||||
D: Support for Microblaze, ML401, XUPV2P board
|
||||
W: www.monstr.eu
|
||||
|
||||
N: Yasushi Shoji
|
||||
E: yashi@atmark-techno.com
|
||||
D: Support for Xilinx MicroBlaze, for Atmark Techno SUZAKU FPGA board
|
||||
|
||||
N: Kurt Stremerch
|
||||
E: kurt@exys.be
|
||||
D: Support for Exys XSEngine board
|
||||
|
||||
N: Andrea Scian
|
||||
E: andrea.scian@dave-tech.it
|
||||
D: Port to B2 board
|
||||
W: www.dave-tech.it
|
||||
|
||||
N: Timur Tabi
|
||||
E: timur@freescale.com
|
||||
D: Support for MPC8349E-mITX
|
||||
W: www.freescale.com
|
||||
|
||||
N: Rob Taylor
|
||||
E: robt@flyingpig.com
|
||||
D: Port to MBX860T and Sandpoint8240
|
||||
@@ -462,34 +278,17 @@ N: Rune Torgersen
|
||||
E: <runet@innovsys.com>
|
||||
D: Support for Motorola MPC8266ADS board
|
||||
|
||||
N: Greg Ungerer
|
||||
E: greg.ungerer@opengear.com
|
||||
D: Support for ks8695 CPU, and OpenGear cmXXXX boards
|
||||
|
||||
N: David Updegraff
|
||||
E: dave@cray.com
|
||||
D: Port to Cray L1 board; DHCP vendor extensions
|
||||
|
||||
N: Christian Vejlbo
|
||||
E: christian.vejlbo@tellabs.com
|
||||
D: FADS860T ethernet support
|
||||
|
||||
N: Robert Whaley
|
||||
E: rwhaley@applieddata.net
|
||||
D: Port to ARM PXA27x adsvix SBC
|
||||
|
||||
N: Martin Winistoerfer
|
||||
E: martinwinistoerfer@gmx.ch
|
||||
D: Port to MPC555/556 microcontrollers and support for cmi board
|
||||
|
||||
N: Ming-Len Wu
|
||||
E: minglen_wu@techware.com.tw
|
||||
D: Motorola MX1ADS board support
|
||||
W: http://www.techware.com.tw/
|
||||
|
||||
N: Xianghua Xiao
|
||||
E: x.xiao@motorola.com
|
||||
D: Support for Motorola 85xx(PowerQUICC III) chip, MPC8540ADS and MPC8560ADS boards.
|
||||
N: Christian Vejlbo
|
||||
E: christian.vejlbo@tellabs.com
|
||||
D: FADS860T ethernet support
|
||||
|
||||
N: John Zhan
|
||||
E: zhanz@sinovee.com
|
||||
@@ -499,3 +298,7 @@ N: Alex Zuepke
|
||||
E: azu@sysgo.de
|
||||
D: Overall improvements on StrongARM, ARM720TDMI; Support for Tuxscreen; initial PCMCIA support for ARM
|
||||
W: www.elinos.com
|
||||
|
||||
N: Pantelis Antoniou
|
||||
E: panto@intracom.gr
|
||||
D: NETVIA board support, ARTOS support.
|
||||
+31
-348
@@ -25,31 +25,14 @@ Pantelis Antoniou <panto@intracom.gr>
|
||||
|
||||
NETVIA MPC8xx
|
||||
|
||||
Reinhard Arlt <reinhard.arlt@esd-electronics.com>
|
||||
|
||||
cpci5200 MPC5200
|
||||
mecp5200 MPC5200
|
||||
pf5200 MPC5200
|
||||
|
||||
CPCI750 PPC750FX/GX
|
||||
|
||||
Yuli Barcohen <yuli@arabellasw.com>
|
||||
|
||||
Adder MPC87x/MPC852T
|
||||
ep8248 MPC8248
|
||||
ISPAN MPC8260
|
||||
MPC8260ADS MPC826x/MPC827x/MPC8280
|
||||
Rattler MPC8248
|
||||
ZPC1900 MPC8265
|
||||
|
||||
Michael Barkowski <michael.barkowski@freescale.com>
|
||||
|
||||
MPC8323ERDB MPC8323
|
||||
|
||||
Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
|
||||
|
||||
sacsng MPC8260
|
||||
|
||||
Rick Bronson <rick@efn.org>
|
||||
|
||||
AT91RM9200DK at91rm9200
|
||||
|
||||
Oliver Brown <obrown@adventnetworks.com>
|
||||
|
||||
gw8260 MPC8260
|
||||
@@ -62,15 +45,8 @@ K
|
||||
|
||||
FLAGADM MPC823
|
||||
|
||||
Torsten Demke <torsten.demke@fci.com>
|
||||
|
||||
eXalion MPC824x
|
||||
|
||||
Wolfgang Denk <wd@denx.de>
|
||||
|
||||
IceCube_5100 MGT5100
|
||||
IceCube_5200 MPC5200
|
||||
|
||||
AMX860 MPC860
|
||||
ETX094 MPC850
|
||||
FPS850L MPC850
|
||||
@@ -85,7 +61,6 @@ Wolfgang Denk <wd@denx.de>
|
||||
IVMS8_256 MPC860
|
||||
LANTEC MPC850
|
||||
LWMON MPC823
|
||||
NC650 MPC852
|
||||
R360MPI MPC823
|
||||
RMU MPC850
|
||||
RRvision MPC823
|
||||
@@ -97,6 +72,7 @@ Wolfgang Denk <wd@denx.de>
|
||||
TQM855L MPC855
|
||||
TQM860L MPC860
|
||||
TQM860L_FEC MPC860
|
||||
TTTech MPC823
|
||||
c2mon MPC855
|
||||
hermes MPC860
|
||||
lwmon MPC823
|
||||
@@ -115,13 +91,9 @@ Wolfgang Denk <wd@denx.de>
|
||||
PM826 MPC8260
|
||||
TQM8260 MPC8260
|
||||
|
||||
P3G4 MPC7410
|
||||
|
||||
PCIPPC2 MPC750
|
||||
PCIPPC6 MPC750
|
||||
|
||||
EXBITGEN PPC405GP
|
||||
|
||||
Jon Diekema <jon.diekema@smiths-aerospace.com>
|
||||
|
||||
sbc8260 MPC8260
|
||||
@@ -134,41 +106,6 @@ Thomas Frieden <ThomasF@hyperion-entertainment.com>
|
||||
|
||||
AmigaOneG3SE MPC7xx
|
||||
|
||||
Matthias Fuchs <matthias.fuchs@esd-electronics.com>
|
||||
|
||||
ADCIOP IOP480 (PPC401)
|
||||
APC405 PPC405GP
|
||||
AR405 PPC405GP
|
||||
ASH405 PPC405EP
|
||||
CANBT PPC405CR
|
||||
CPCI2DP PPC405GP
|
||||
CPCI405 PPC405GP
|
||||
CPCI4052 PPC405GP
|
||||
CPCI405AB PPC405GP
|
||||
CPCI405DT PPC405GP
|
||||
CPCI440 PPC440GP
|
||||
CPCIISER4 PPC405GP
|
||||
DASA_SIM IOP480 (PPC401)
|
||||
DP405 PPC405EP
|
||||
DU405 PPC405GP
|
||||
G2000 PPC405EP
|
||||
HH405 PPC405EP
|
||||
HUB405 PPC405EP
|
||||
OCRTC PPC405GP
|
||||
ORSG PPC405GP
|
||||
PCI405 PPC405GP
|
||||
PLU405 PPC405EP
|
||||
PMC405 PPC405GP
|
||||
VOH405 PPC405EP
|
||||
VOM405 PPC405EP
|
||||
WUH405 PPC405EP
|
||||
CMS700 PPC405EP
|
||||
|
||||
Niklaus Giger <niklaus.giger@netstal.com>
|
||||
|
||||
HCU4 PPC405GPr
|
||||
HCU5 PPC440EPx
|
||||
|
||||
Frank Gottschling <fgottschling@eltec.de>
|
||||
|
||||
MHPC MPC8xx
|
||||
@@ -188,16 +125,11 @@ Howard Gray <mvsensor@matrix-vision.de>
|
||||
|
||||
MVS1 MPC823
|
||||
|
||||
Joe Hamman <joe.hamman@embeddedspecialties.com>
|
||||
|
||||
sbc8641d MPC8641D
|
||||
|
||||
Klaus Heydeck <heydeck@kieback-peter.de>
|
||||
|
||||
KUP4K MPC855
|
||||
KUP4X MPC859
|
||||
|
||||
Murray Jensen <Murray.Jensen@csiro.au>
|
||||
Murray Jensen <Murray.Jensen@cmst.csiro.au>
|
||||
|
||||
cogent_mpc8xx MPC8xx
|
||||
|
||||
@@ -208,12 +140,11 @@ Brad Kemp <Brad.Kemp@seranoa.com>
|
||||
|
||||
ppmc8260 MPC8260
|
||||
|
||||
Sangmoon Kim <dogoil@etinsys.com>
|
||||
Nye Liu <nyet@zumanetworks.com>
|
||||
|
||||
debris MPC8245
|
||||
KVME080 MPC8245
|
||||
ZUMA MPC7xx_74xx
|
||||
|
||||
Thomas Lange <thomas@corelatus.se>
|
||||
Thomas Lange <thomas@corelatus.com>
|
||||
|
||||
GTH MPC860
|
||||
|
||||
@@ -221,51 +152,17 @@ The LEOX team <team@leox.org>
|
||||
|
||||
ELPT860 MPC860T
|
||||
|
||||
Dave Liu <daveliu@freescale.com>
|
||||
|
||||
MPC8360EMDS MPC8360
|
||||
|
||||
Nye Liu <nyet@zumanetworks.com>
|
||||
|
||||
ZUMA MPC7xx_74xx
|
||||
|
||||
Jon Loeliger <jdl@freescale.com>
|
||||
|
||||
MPC8540ADS MPC8540
|
||||
MPC8560ADS MPC8560
|
||||
MPC8541CDS MPC8541
|
||||
MPC8555CDS MPC8555
|
||||
|
||||
MPC8641HPCN MPC8641D
|
||||
|
||||
Dan Malek <dan@embeddedalley.com>
|
||||
|
||||
stxgp3 MPC85xx
|
||||
stxssa MPC85xx
|
||||
stxxtc MPC8xx
|
||||
|
||||
Eran Man <eran@nbase.co.il>
|
||||
|
||||
EVB64260_750CX MPC750CX
|
||||
|
||||
Andrea "llandre" Marson <andrea.marson@dave-tech.it>
|
||||
|
||||
PPChameleonEVB PPC405EP
|
||||
|
||||
Reinhard Meyer <r.meyer@emk-elektronik.de>
|
||||
|
||||
TOP860 MPC860T
|
||||
TOP5200 MPC5200
|
||||
TOP860 MPC860
|
||||
|
||||
Tolunay Orkun <torkun@nextio.com>
|
||||
Scott McNutt <smcnutt@artesyncp.com>
|
||||
|
||||
csb272 PPC405GP
|
||||
csb472 PPC405GP
|
||||
|
||||
John Otken <jotken@softadvances.com>
|
||||
|
||||
luan PPC440SP
|
||||
taihu PPC405EP
|
||||
EBONY PPC440GP
|
||||
|
||||
Keith Outwater <Keith_Outwater@mvis.com>
|
||||
|
||||
@@ -281,63 +178,28 @@ Denis Peter <d.peter@mpl.ch>
|
||||
MIP405 PPC4xx
|
||||
PIP405 PPC4xx
|
||||
|
||||
Kim Phillips <kim.phillips@freescale.com>
|
||||
Stefan Roese <stefan.roese@esd-electronics.com>
|
||||
|
||||
MPC8349EMDS MPC8349
|
||||
|
||||
Daniel Poirot <dan.poirot@windriver.com>
|
||||
|
||||
sbc8240 MPC8240
|
||||
sbc405 PPC405GP
|
||||
|
||||
Stefan Roese <sr@denx.de>
|
||||
|
||||
P3M7448 MPC7448
|
||||
|
||||
uc100 MPC857
|
||||
|
||||
TQM85xx MPC8540/8541/8555/8560
|
||||
|
||||
acadia PPC405EZ
|
||||
alpr PPC440GX
|
||||
bamboo PPC440EP
|
||||
bunbinga PPC405EP
|
||||
ebony PPC440GP
|
||||
katmai PPC440SPe
|
||||
lwmon5 PPC440EPx
|
||||
ocotea PPC440GX
|
||||
p3p440 PPC440GP
|
||||
pcs440ep PPC440EP
|
||||
rainier PPC440GRx
|
||||
sequoia PPC440EPx
|
||||
sycamore PPC405GPr
|
||||
taishan PPC440GX
|
||||
walnut PPC405GP
|
||||
yellowstone PPC440GR
|
||||
yosemite PPC440EP
|
||||
zeus PPC405EP
|
||||
|
||||
P3M750 PPC750FX/GX/GL
|
||||
|
||||
Yusdi Santoso <yusdi_santoso@adaptec.com>
|
||||
|
||||
HIDDEN_DRAGON MPC8241/MPC8245
|
||||
|
||||
Travis Sawyer (travis.sawyer@sandburst.com>
|
||||
|
||||
KAREF PPC440GX
|
||||
METROBOX PPC440GX
|
||||
XPEDITE1K PPC440GX
|
||||
ADCIOP IOP480 (PPC401)
|
||||
AR405 PPC405GP
|
||||
ASH405 PPC405EP
|
||||
CANBT PPC405CR
|
||||
CPCI405 PPC405GP
|
||||
CPCI4052 PPC405GP
|
||||
CPCI405AB PPC405GP
|
||||
CPCI440 PPC440GP
|
||||
CPCIISER4 PPC405GP
|
||||
DASA_SIM IOP480 (PPC401)
|
||||
DU405 PPC405GP
|
||||
OCRTC PPC405GP
|
||||
ORSG PPC405GP
|
||||
PCI405 PPC405GP
|
||||
PMC405 PPC405GP
|
||||
|
||||
Peter De Schrijver <p2@mind.be>
|
||||
|
||||
ML2 PPC4xx
|
||||
|
||||
Timur Tabi <timur@freescale.com>
|
||||
|
||||
MPC8349E-mITX MPC8349
|
||||
MPC8349E-mITX-GP MPC8349
|
||||
|
||||
Erik Theisen <etheisen@mindspring.com>
|
||||
|
||||
W7OLMC PPC4xx
|
||||
@@ -352,20 +214,6 @@ Rune Torgersen <runet@innovsys.com>
|
||||
|
||||
MPC8266ADS MPC8266
|
||||
|
||||
|
||||
David Updegraff <dave@cray.com>
|
||||
|
||||
CRAYL1 PPC4xx
|
||||
|
||||
Josef Wagner <Wagner@Microsys.de>
|
||||
|
||||
CPC45 MPC8245
|
||||
PM520 MPC5200
|
||||
|
||||
Stephen Williams <steve@icarus.com>
|
||||
|
||||
JSE PPC405GPr
|
||||
|
||||
John Zhan <zhanz@sinovee.com>
|
||||
|
||||
svm_sc8xx MPC8xx
|
||||
@@ -386,10 +234,13 @@ Unknown / orphaned boards:
|
||||
RPXClassic MPC8xx
|
||||
RPXlite MPC8xx
|
||||
|
||||
CRAYL1 PPC4xx
|
||||
ERIC PPC4xx
|
||||
WALNUT405 PPC4xx
|
||||
|
||||
MOUSSE MPC824x
|
||||
|
||||
MPC8260ADS MPC8260
|
||||
RPXsuper MPC8260
|
||||
rsdproto MPC8260
|
||||
|
||||
@@ -403,31 +254,6 @@ Unknown / orphaned boards:
|
||||
# Board CPU #
|
||||
#########################################################################
|
||||
|
||||
Rowel Atienza <rowel@diwalabs.com>
|
||||
|
||||
armadillo ARM720T
|
||||
|
||||
Rishi Bhattacharya <rishi@ti.com>
|
||||
|
||||
omap5912osk ARM926EJS
|
||||
|
||||
Cliff Brake <cliff.brake@gmail.com>
|
||||
|
||||
pxa255_idp xscale
|
||||
|
||||
Rick Bronson <rick@efn.org>
|
||||
|
||||
AT91RM9200DK at91rm9200
|
||||
|
||||
George G. Davis <gdavis@mvista.com>
|
||||
|
||||
assabet SA1100
|
||||
gcplus SA1100
|
||||
|
||||
Thomas Elste <info@elste.org>
|
||||
|
||||
modnet50 ARM720T (NET+50)
|
||||
|
||||
Peter Figuli <peposh@etc.sk>
|
||||
|
||||
wepep250 xscale
|
||||
@@ -437,39 +263,16 @@ Marius Gr
|
||||
impa7 ARM720T (EP7211)
|
||||
ep7312 ARM720T (EP7312)
|
||||
|
||||
Kshitij Gupta <kshitij@ti.com>
|
||||
|
||||
omap1510inn ARM925T
|
||||
omap1610inn ARM926EJS
|
||||
|
||||
Kyle Harris <kharris@nexus-tech.net>
|
||||
|
||||
lubbock xscale
|
||||
cradle xscale
|
||||
ixdp425 xscale
|
||||
|
||||
Gary Jennejohn <gj@denx.de>
|
||||
|
||||
smdk2400 ARM920T
|
||||
trab ARM920T
|
||||
|
||||
Konstantin Kletschke <kletschke@synertronixx.de>
|
||||
scb9328 ARM920T
|
||||
|
||||
Nishant Kamat <nskamat@ti.com>
|
||||
|
||||
omap1610h2 ARM926EJS
|
||||
|
||||
Sergey Kubushyn <ksi@koi8.net>
|
||||
|
||||
DV-EVM ARM926EJS
|
||||
SONATA ARM926EJS
|
||||
SCHMOOGIE ARM926EJS
|
||||
|
||||
Prakash Kumar <prakash@embedx.com>
|
||||
|
||||
cerf250 xscale
|
||||
|
||||
David Müller <d.mueller@elsoft.ch>
|
||||
|
||||
smdk2410 ARM920T
|
||||
@@ -479,44 +282,11 @@ Rolf Offermanns <rof@sysgo.de>
|
||||
|
||||
shannon SA1100
|
||||
|
||||
Peter Pearse <peter.pearse@arm.com>
|
||||
integratorcp All current ARM supplied &
|
||||
supported core modules
|
||||
-see http://www.arm.com
|
||||
/products/DevTools
|
||||
/Hardware_Platforms.html
|
||||
versatile ARM926EJ-S
|
||||
versatile ARM926EJ-S
|
||||
|
||||
Dave Peverley <dpeverley@mpc-data.co.uk>
|
||||
|
||||
omap730p2 ARM926EJS
|
||||
|
||||
Stefan Roese <sr@denx.de>
|
||||
|
||||
ixdpg425 xscale
|
||||
pdnb3 xscale
|
||||
scpu xscale
|
||||
|
||||
Robert Schwebel <r.schwebel@pengutronix.de>
|
||||
|
||||
csb226 xscale
|
||||
innokom xscale
|
||||
|
||||
Andrea Scian <andrea.scian@dave-tech.it>
|
||||
|
||||
B2 ARM7TDMI (S3C44B0X)
|
||||
|
||||
Greg Ungerer <greg.ungerer@opengear.com>
|
||||
|
||||
cm4008 ks8695p
|
||||
cm4116 ks8695p
|
||||
cm4148 ks8695p
|
||||
|
||||
Richard Woodruff <r-woodruff2@ti.com>
|
||||
|
||||
omap2420h4 ARM1136EJS
|
||||
|
||||
Alex Züpke <azu@sysgo.de>
|
||||
|
||||
lart SA1100
|
||||
@@ -545,93 +315,6 @@ Wolfgang Denk <wd@denx.de>
|
||||
incaip MIPS32 4Kc
|
||||
purple MIPS64 5Kc
|
||||
|
||||
Thomas Lange <thomas@corelatus.se>
|
||||
dbau1x00 MIPS32 Au1000
|
||||
gth2 MIPS32 Au1000
|
||||
|
||||
#########################################################################
|
||||
# Nios-32 Systems: #
|
||||
# #
|
||||
# Maintainer Name, Email Address #
|
||||
# Board CPU #
|
||||
#########################################################################
|
||||
|
||||
Stephan Linz <linz@li-pro.net>
|
||||
|
||||
DK1S10 Nios-32
|
||||
ADNPESC1 Nios-32
|
||||
|
||||
Scott McNutt <smcnutt@psyent.com>
|
||||
|
||||
DK1C20 Nios-32
|
||||
|
||||
#########################################################################
|
||||
# Nios-II Systems: #
|
||||
# #
|
||||
# Maintainer Name, Email Address #
|
||||
# Board CPU #
|
||||
#########################################################################
|
||||
|
||||
Scott McNutt <smcnutt@psyent.com>
|
||||
|
||||
PCI5441 Nios-II
|
||||
PK1C20 Nios-II
|
||||
EP1C20 Nios-II
|
||||
EP1S10 Nios-II
|
||||
EP1S40 Nios-II
|
||||
|
||||
#########################################################################
|
||||
# MicroBlaze Systems: #
|
||||
# #
|
||||
# Maintainer Name, Email Address #
|
||||
# Board CPU #
|
||||
#########################################################################
|
||||
|
||||
Yasushi Shoji <yashi@atmark-techno.com>
|
||||
|
||||
SUZAKU MicroBlaze
|
||||
|
||||
Michal Simek <monstr@monstr.eu>
|
||||
|
||||
ML401 MicroBlaze
|
||||
XUPV2P MicroBlaze
|
||||
|
||||
#########################################################################
|
||||
# Coldfire Systems: #
|
||||
# #
|
||||
# Maintainer Name, Email Address #
|
||||
# Board CPU #
|
||||
#########################################################################
|
||||
|
||||
Matthias Fuchs <matthias.fuchs@esd-electronics.com>
|
||||
|
||||
TASREG MCF5249
|
||||
|
||||
Zachary P. Landau <zachary.landau@labxtechnologies.com>
|
||||
|
||||
r5200 mcf52x2
|
||||
|
||||
TsiChung Liew <Tsi-Chung.Liew@freescale.com>
|
||||
|
||||
M5235EVB mcf52x2
|
||||
M5329EVB mcf532x
|
||||
M54455EVB mcf5445x
|
||||
|
||||
Hayden Fraser <Hayden.Fraser@freescale.com>
|
||||
|
||||
M5253EVBE mcf52x2
|
||||
|
||||
#########################################################################
|
||||
# AVR32 Systems: #
|
||||
# #
|
||||
# Maintainer Name, Email Address #
|
||||
# Board CPU #
|
||||
#########################################################################
|
||||
|
||||
Haavard Skinnemoen <hskinnemoen@atmel.com>
|
||||
|
||||
ATSTK1000 AT32AP7000
|
||||
|
||||
#########################################################################
|
||||
# End of MAINTAINERS list #
|
||||
#########################################################################
|
||||
@@ -1,24 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
: ${JOBS:=}
|
||||
|
||||
if [ "${CROSS_COMPILE}" ] ; then
|
||||
MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
|
||||
else
|
||||
MAKE=make
|
||||
fi
|
||||
|
||||
if [ "${MAKEALL_LOGDIR}" ] ; then
|
||||
LOG_DIR=${MAKEALL_LOGDIR}
|
||||
else
|
||||
LOG_DIR="LOG"
|
||||
fi
|
||||
|
||||
if [ ! "${BUILD_DIR}" ] ; then
|
||||
BUILD_DIR="."
|
||||
fi
|
||||
|
||||
[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
|
||||
[ -d LOG ] || mkdir LOG || exit 1
|
||||
|
||||
LIST=""
|
||||
|
||||
@@ -26,633 +14,128 @@ LIST=""
|
||||
## MPC5xx Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_5xx=" \
|
||||
cmi_mpc5xx \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC5xxx Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_5xxx=" \
|
||||
BC3450 \
|
||||
cm5200 \
|
||||
cpci5200 \
|
||||
EVAL5200 \
|
||||
fo300 \
|
||||
icecube_5100 \
|
||||
icecube_5200 \
|
||||
lite5200b \
|
||||
mcc200 \
|
||||
mecp5200 \
|
||||
motionpro \
|
||||
o2dnt \
|
||||
pf5200 \
|
||||
PM520 \
|
||||
TB5200 \
|
||||
Total5100 \
|
||||
Total5200 \
|
||||
Total5200_Rev2 \
|
||||
TQM5200 \
|
||||
TQM5200_B \
|
||||
TQM5200S \
|
||||
v38b \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC512x Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_512x=" \
|
||||
ads5121 \
|
||||
LIST_5xx=" \
|
||||
cmi_mpc5xx \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC8xx Systems
|
||||
#########################################################################
|
||||
LIST_8xx=" \
|
||||
Adder87x \
|
||||
AdderII \
|
||||
ADS860 \
|
||||
AMX860 \
|
||||
c2mon \
|
||||
CCM \
|
||||
cogent_mpc8xx \
|
||||
ELPT860 \
|
||||
EP88x \
|
||||
ESTEEM192E \
|
||||
ETX094 \
|
||||
FADS823 \
|
||||
FADS850SAR \
|
||||
FADS860T \
|
||||
FLAGADM \
|
||||
FPS850L \
|
||||
GEN860T \
|
||||
GEN860T_SC \
|
||||
GENIETV \
|
||||
GTH \
|
||||
hermes \
|
||||
IAD210 \
|
||||
ICU862_100MHz \
|
||||
IP860 \
|
||||
IVML24 \
|
||||
IVML24_128 \
|
||||
IVML24_256 \
|
||||
IVMS8 \
|
||||
IVMS8_128 \
|
||||
IVMS8_256 \
|
||||
KUP4K \
|
||||
KUP4X \
|
||||
LANTEC \
|
||||
lwmon \
|
||||
MBX \
|
||||
MBX860T \
|
||||
MHPC \
|
||||
MPC86xADS \
|
||||
MPC885ADS \
|
||||
MVS1 \
|
||||
NETPHONE \
|
||||
NETTA \
|
||||
NETTA2 \
|
||||
NETTA_ISDN \
|
||||
NETVIA \
|
||||
NETVIA_V2 \
|
||||
NX823 \
|
||||
pcu_e \
|
||||
QS823 \
|
||||
QS850 \
|
||||
QS860T \
|
||||
quantum \
|
||||
R360MPI \
|
||||
RBC823 \
|
||||
rmu \
|
||||
RPXClassic \
|
||||
RPXlite \
|
||||
RPXlite_DW \
|
||||
RRvision \
|
||||
SM850 \
|
||||
spc1920 \
|
||||
SPD823TS \
|
||||
svm_sc8xx \
|
||||
SXNI855T \
|
||||
TOP860 \
|
||||
TQM823L \
|
||||
TQM823L_LCD \
|
||||
TQM850L \
|
||||
TQM855L \
|
||||
TQM860L \
|
||||
TQM885D \
|
||||
uc100 \
|
||||
v37 \
|
||||
|
||||
LIST_8xx=" \
|
||||
ADS860 AMX860 c2mon CCM \
|
||||
cogent_mpc8xx ESTEEM192E ETX094 ELPT860 \
|
||||
FADS823 FADS850SAR FADS860T FLAGADM \
|
||||
FPS850L GEN860T GEN860T_SC GENIETV \
|
||||
GTH hermes IAD210 ICU862_100MHz \
|
||||
IP860 IVML24 IVML24_128 IVML24_256 \
|
||||
IVMS8 IVMS8_128 IVMS8_256 KUP4K \
|
||||
LANTEC lwmon MBX MBX860T \
|
||||
MHPC MVS1 NETVIA NETVIA_V2 \
|
||||
NX823 pcu_e R360MPI RBC823 \
|
||||
rmu RPXClassic RPXlite RRvision \
|
||||
SM850 SPD823TS svm_sc8xx SXNI855T \
|
||||
TOP860 TQM823L TQM823L_LCD TQM850L \
|
||||
TQM855L TQM860L TTTech v37 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## PPC4xx Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_4xx=" \
|
||||
acadia \
|
||||
acadia_nand \
|
||||
ADCIOP \
|
||||
alpr \
|
||||
AP1000 \
|
||||
AR405 \
|
||||
ASH405 \
|
||||
bamboo \
|
||||
bamboo_nand \
|
||||
bubinga \
|
||||
CANBT \
|
||||
CMS700 \
|
||||
CPCI2DP \
|
||||
CPCI405 \
|
||||
CPCI4052 \
|
||||
CPCI405AB \
|
||||
CPCI405DT \
|
||||
CPCI440 \
|
||||
CPCIISER4 \
|
||||
CRAYL1 \
|
||||
csb272 \
|
||||
csb472 \
|
||||
DASA_SIM \
|
||||
DP405 \
|
||||
DU405 \
|
||||
ebony \
|
||||
ERIC \
|
||||
EXBITGEN \
|
||||
G2000 \
|
||||
hcu4 \
|
||||
hcu5 \
|
||||
HH405 \
|
||||
HUB405 \
|
||||
JSE \
|
||||
KAREF \
|
||||
katmai \
|
||||
luan \
|
||||
lwmon5 \
|
||||
METROBOX \
|
||||
MIP405 \
|
||||
MIP405T \
|
||||
ML2 \
|
||||
ml300 \
|
||||
ocotea \
|
||||
OCRTC \
|
||||
ORSG \
|
||||
p3p440 \
|
||||
PCI405 \
|
||||
pcs440ep \
|
||||
PIP405 \
|
||||
PLU405 \
|
||||
PMC405 \
|
||||
PPChameleonEVB \
|
||||
rainier \
|
||||
sbc405 \
|
||||
sc3 \
|
||||
sequoia \
|
||||
sequoia_nand \
|
||||
taihu \
|
||||
taishan \
|
||||
VOH405 \
|
||||
VOM405 \
|
||||
W7OLMC \
|
||||
W7OLMG \
|
||||
walnut \
|
||||
WUH405 \
|
||||
XPEDITE1K \
|
||||
yellowstone \
|
||||
yosemite \
|
||||
yucca \
|
||||
zeus \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC8220 Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_8220=" \
|
||||
Alaska8220 \
|
||||
Yukon8220 \
|
||||
LIST_4xx=" \
|
||||
ADCIOP AR405 ASH405 BUBINGA405EP \
|
||||
CANBT CPCI405 CPCI4052 CPCI405AB \
|
||||
CPCI440 CPCIISER4 CRAYL1 DASA_SIM \
|
||||
DU405 EBONY ERIC MIP405 \
|
||||
MIP405T ML2 OCRTC ORSG \
|
||||
PCI405 PIP405 PMC405 W7OLMC \
|
||||
W7OLMG WALNUT405 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC824x Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_824x=" \
|
||||
A3000 \
|
||||
barco \
|
||||
BMW \
|
||||
CPC45 \
|
||||
CU824 \
|
||||
debris \
|
||||
eXalion \
|
||||
HIDDEN_DRAGON \
|
||||
MOUSSE \
|
||||
MUSENKI \
|
||||
MVBLUE \
|
||||
OXC \
|
||||
PN62 \
|
||||
Sandpoint8240 \
|
||||
Sandpoint8245 \
|
||||
sbc8240 \
|
||||
SL8245 \
|
||||
utx8245 \
|
||||
LIST_824x=" \
|
||||
A3000 BMW CPC45 CU824 \
|
||||
MOUSSE MUSENKI OXC PN62 \
|
||||
Sandpoint8240 Sandpoint8245 SL8245 utx8245 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC8260 Systems (includes 8250, 8255 etc.)
|
||||
#########################################################################
|
||||
|
||||
LIST_8260=" \
|
||||
atc \
|
||||
cogent_mpc8260 \
|
||||
CPU86 \
|
||||
CPU87 \
|
||||
ep8248 \
|
||||
ep8260 \
|
||||
ep82xxm \
|
||||
gw8260 \
|
||||
hymod \
|
||||
IPHASE4539 \
|
||||
ISPAN \
|
||||
MPC8260ADS \
|
||||
MPC8266ADS \
|
||||
MPC8272ADS \
|
||||
PM826 \
|
||||
PM828 \
|
||||
ppmc8260 \
|
||||
Rattler8248 \
|
||||
RPXsuper \
|
||||
rsdproto \
|
||||
sacsng \
|
||||
sbc8260 \
|
||||
SCM \
|
||||
TQM8260_AC \
|
||||
TQM8260_AD \
|
||||
TQM8260_AE \
|
||||
ZPC1900 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC83xx Systems (includes 8349, etc.)
|
||||
#########################################################################
|
||||
|
||||
LIST_83xx=" \
|
||||
MPC8313ERDB_33 \
|
||||
MPC8313ERDB_66 \
|
||||
MPC8323ERDB \
|
||||
MPC832XEMDS \
|
||||
MPC832XEMDS_ATM \
|
||||
MPC8349EMDS \
|
||||
MPC8349ITX \
|
||||
MPC8349ITXGP \
|
||||
MPC8360EMDS \
|
||||
MPC8360EMDS_ATM \
|
||||
sbc8349 \
|
||||
TQM834x \
|
||||
"
|
||||
|
||||
|
||||
#########################################################################
|
||||
## MPC85xx Systems (includes 8540, 8560 etc.)
|
||||
#########################################################################
|
||||
|
||||
LIST_85xx=" \
|
||||
MPC8540ADS \
|
||||
MPC8540EVAL \
|
||||
MPC8541CDS \
|
||||
MPC8544DS \
|
||||
MPC8548CDS \
|
||||
MPC8555CDS \
|
||||
MPC8560ADS \
|
||||
MPC8568MDS \
|
||||
PM854 \
|
||||
PM856 \
|
||||
sbc8540 \
|
||||
sbc8560 \
|
||||
stxgp3 \
|
||||
stxssa \
|
||||
TQM8540 \
|
||||
TQM8541 \
|
||||
TQM8555 \
|
||||
TQM8560 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MPC86xx Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_86xx=" \
|
||||
MPC8641HPCN \
|
||||
sbc8641d \
|
||||
LIST_8260=" \
|
||||
atc cogent_mpc8260 CPU86 ep8260 \
|
||||
gw8260 hymod IPHASE4539 MPC8260ADS \
|
||||
MPC8266ADS PM826 ppmc8260 RPXsuper \
|
||||
rsdproto sacsng sbc8260 SCM \
|
||||
TQM8260 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## 74xx/7xx Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_74xx=" \
|
||||
DB64360 \
|
||||
DB64460 \
|
||||
EVB64260 \
|
||||
mpc7448hpc2 \
|
||||
P3G4 \
|
||||
p3m7448 \
|
||||
PCIPPC2 \
|
||||
PCIPPC6 \
|
||||
ZUMA \
|
||||
LIST_74xx=" \
|
||||
EVB64260 PCIPPC2 PCIPPC6 ZUMA \
|
||||
"
|
||||
|
||||
LIST_TSEC=" \
|
||||
${LIST_85xx} \
|
||||
${LIST_86xx} \
|
||||
${LIST_83xx} \
|
||||
LIST_7xx=" \
|
||||
BAB7xx ELPPC \
|
||||
"
|
||||
|
||||
LIST_7xx=" \
|
||||
BAB7xx \
|
||||
CPCI750 \
|
||||
ELPPC \
|
||||
p3m750 \
|
||||
ppmc7xx \
|
||||
"
|
||||
|
||||
LIST_ppc=" \
|
||||
${LIST_5xx} \
|
||||
${LIST_5xxx} \
|
||||
${LIST_8xx} \
|
||||
${LIST_8220} \
|
||||
${LIST_824x} \
|
||||
${LIST_8260} \
|
||||
${LIST_83xx} \
|
||||
${LIST_85xx} \
|
||||
${LIST_86xx} \
|
||||
${LIST_4xx} \
|
||||
${LIST_74xx} \
|
||||
${LIST_7xx} \
|
||||
"
|
||||
LIST_ppc="${LIST_5xx} ${LIST_8xx} \
|
||||
${LIST_824x} ${LIST_8260} \
|
||||
${LIST_4xx} \
|
||||
${LIST_74xx} ${LIST_7xx}"
|
||||
|
||||
#########################################################################
|
||||
## StrongARM Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_SA=" \
|
||||
assabet \
|
||||
dnp1110 \
|
||||
gcplus \
|
||||
lart \
|
||||
shannon \
|
||||
"
|
||||
LIST_SA="dnp1110 lart shannon"
|
||||
|
||||
#########################################################################
|
||||
## ARM7 Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_ARM7=" \
|
||||
ap7 \
|
||||
ap720t \
|
||||
armadillo \
|
||||
B2 \
|
||||
ep7312 \
|
||||
evb4510 \
|
||||
impa7 \
|
||||
integratorap \
|
||||
lpc2292sodimm \
|
||||
modnet50 \
|
||||
SMN42 \
|
||||
"
|
||||
LIST_ARM7="ep7312 impa7"
|
||||
|
||||
#########################################################################
|
||||
## ARM9 Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_ARM9=" \
|
||||
at91rm9200dk \
|
||||
cmc_pu2 \
|
||||
ap920t \
|
||||
ap922_XA10 \
|
||||
ap926ejs \
|
||||
ap946es \
|
||||
ap966 \
|
||||
cp920t \
|
||||
cp922_XA10 \
|
||||
cp926ejs \
|
||||
cp946es \
|
||||
cp966 \
|
||||
lpd7a400 \
|
||||
mp2usb \
|
||||
mx1ads \
|
||||
mx1fs2 \
|
||||
netstar \
|
||||
omap1510inn \
|
||||
omap1610h2 \
|
||||
omap1610inn \
|
||||
omap730p2 \
|
||||
sbc2410x \
|
||||
scb9328 \
|
||||
smdk2400 \
|
||||
smdk2410 \
|
||||
trab \
|
||||
VCMA9 \
|
||||
versatile \
|
||||
versatileab \
|
||||
versatilepb \
|
||||
voiceblue \
|
||||
davinci_dvevm \
|
||||
davinci_schmoogie \
|
||||
davinci_sonata \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## ARM10 Systems
|
||||
#########################################################################
|
||||
LIST_ARM10=" \
|
||||
integratorcp \
|
||||
cp1026 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## ARM11 Systems
|
||||
#########################################################################
|
||||
LIST_ARM11=" \
|
||||
cp1136 \
|
||||
omap2420h4 \
|
||||
"
|
||||
LIST_ARM9="at91rm9200dk smdk2400 smdk2410 trab VCMA9"
|
||||
|
||||
#########################################################################
|
||||
## Xscale Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_pxa=" \
|
||||
adsvix \
|
||||
cerf250 \
|
||||
cradle \
|
||||
csb226 \
|
||||
delta \
|
||||
innokom \
|
||||
lubbock \
|
||||
pleb2 \
|
||||
pxa255_idp \
|
||||
wepep250 \
|
||||
xaeniax \
|
||||
xm250 \
|
||||
xsengine \
|
||||
zylonite \
|
||||
"
|
||||
|
||||
LIST_ixp=" \
|
||||
ixdp425 \
|
||||
ixdpg425 \
|
||||
pdnb3 \
|
||||
scpu \
|
||||
"
|
||||
LIST_pxa="cradle csb226 innokom lubbock wepep250"
|
||||
|
||||
|
||||
LIST_arm=" \
|
||||
${LIST_SA} \
|
||||
${LIST_ARM7} \
|
||||
${LIST_ARM9} \
|
||||
${LIST_ARM10} \
|
||||
${LIST_ARM11} \
|
||||
${LIST_pxa} \
|
||||
${LIST_ixp} \
|
||||
"
|
||||
LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa}"
|
||||
|
||||
#########################################################################
|
||||
## MIPS Systems (default = big endian)
|
||||
## MIPS 4Kc Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_mips4kc=" \
|
||||
incaip \
|
||||
"
|
||||
LIST_mips4kc="incaip"
|
||||
|
||||
LIST_mips5kc=" \
|
||||
purple \
|
||||
"
|
||||
LIST_mips5kc="purple"
|
||||
|
||||
LIST_au1xx0=" \
|
||||
dbau1000 \
|
||||
dbau1100 \
|
||||
dbau1500 \
|
||||
dbau1550 \
|
||||
dbau1550_el \
|
||||
gth2 \
|
||||
"
|
||||
|
||||
LIST_mips=" \
|
||||
${LIST_mips4kc} \
|
||||
${LIST_mips5kc} \
|
||||
${LIST_au1xx0} \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MIPS Systems (little endian)
|
||||
#########################################################################
|
||||
|
||||
LIST_mips4kc_el=""
|
||||
|
||||
LIST_mips5kc_el=""
|
||||
|
||||
LIST_au1xx0_el=" \
|
||||
dbau1550_el \
|
||||
pb1000 \
|
||||
"
|
||||
|
||||
LIST_mips_el=" \
|
||||
${LIST_mips4kc_el} \
|
||||
${LIST_mips5kc_el} \
|
||||
${LIST_au1xx0_el} \
|
||||
"
|
||||
LIST_mips="${LIST_mips4kc} ${LIST_mips5kc}"
|
||||
|
||||
#########################################################################
|
||||
## i386 Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_I486=" \
|
||||
sc520_cdp \
|
||||
sc520_spunk \
|
||||
sc520_spunk_rel \
|
||||
"
|
||||
LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel"
|
||||
|
||||
LIST_x86=" \
|
||||
${LIST_I486} \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## NIOS Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_nios=" \
|
||||
ADNPESC1 \
|
||||
ADNPESC1_base_32 \
|
||||
ADNPESC1_DNPEVA2_base_32\
|
||||
DK1C20 \
|
||||
DK1C20_standard_32 \
|
||||
DK1S10 \
|
||||
DK1S10_standard_32 \
|
||||
DK1S10_mtx_ldk_20 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## Nios-II Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_nios2=" \
|
||||
EP1C20 \
|
||||
EP1S10 \
|
||||
EP1S40 \
|
||||
PCI5441 \
|
||||
PK1C20 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## MicroBlaze Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_microblaze=" \
|
||||
suzaku \
|
||||
ml401 \
|
||||
xupv2p \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## ColdFire Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_coldfire=" \
|
||||
cobra5272 \
|
||||
EB+MCF-EV123 \
|
||||
EB+MCF-EV123_internal \
|
||||
idmr \
|
||||
M5235EVB \
|
||||
M5249EVB \
|
||||
M5253EVB \
|
||||
M5271EVB \
|
||||
M5272C3 \
|
||||
M5282EVB \
|
||||
M5329EVB \
|
||||
M54455EVB \
|
||||
r5200 \
|
||||
TASREG \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## AVR32 Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_avr32=" \
|
||||
atstk1002 \
|
||||
"
|
||||
|
||||
#########################################################################
|
||||
## Blackfin Systems
|
||||
#########################################################################
|
||||
|
||||
LIST_blackfin=" \
|
||||
bf533-ezkit \
|
||||
bf533-stamp \
|
||||
bf537-stamp \
|
||||
bf561-ezkit \
|
||||
"
|
||||
LIST_x86="${LIST_I486}"
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
@@ -666,12 +149,8 @@ build_target() {
|
||||
|
||||
${MAKE} distclean >/dev/null
|
||||
${MAKE} ${target}_config
|
||||
|
||||
${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
|
||||
| tee ${LOG_DIR}/$target.ERR
|
||||
|
||||
${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
|
||||
| tee -a ${LOG_DIR}/$target.MAKELOG
|
||||
${MAKE} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR
|
||||
${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
@@ -680,15 +159,7 @@ build_target() {
|
||||
for arg in $@
|
||||
do
|
||||
case "$arg" in
|
||||
arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
|
||||
avr32| \
|
||||
blackfin| \
|
||||
coldfire| \
|
||||
microblaze| \
|
||||
mips|mips_el| \
|
||||
nios|nios2| \
|
||||
ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
|
||||
x86|I486|TSEC)
|
||||
5xx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|pxa|mips|I486|x86)
|
||||
for target in `eval echo '$LIST_'${arg}`
|
||||
do
|
||||
build_target ${target}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
#
|
||||
# (C) Copyright 2000-2002
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
# project.
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston,
|
||||
# MA 02111-1307 USA
|
||||
#
|
||||
|
||||
PLATFORM_RELFLAGS += -ffixed-r5 -fPIC -mno-init-got -mrelax
|
||||
PLATFORM_LDFLAGS += --relax
|
||||
@@ -1,24 +0,0 @@
|
||||
#
|
||||
# (C) Copyright 2000-2002
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
# project.
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston,
|
||||
# MA 02111-1307 USA
|
||||
#
|
||||
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN -D__BLACKFIN__
|
||||
@@ -1,44 +0,0 @@
|
||||
#
|
||||
# (C) Copyright 2003-2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
# project.
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston,
|
||||
# MA 02111-1307 USA
|
||||
#
|
||||
|
||||
include $(TOPDIR)/config.mk
|
||||
|
||||
LIB = $(obj)lib$(BOARD).a
|
||||
|
||||
COBJS = $(BOARD).o flash.o
|
||||
|
||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||
OBJS := $(addprefix $(obj),$(COBJS))
|
||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||
|
||||
$(LIB): $(obj).depend $(OBJS)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||
|
||||
#########################################################################
|
||||
|
||||
# defines $(obj).depend target
|
||||
include $(SRCTREE)/rules.mk
|
||||
|
||||
sinclude $(obj).depend
|
||||
|
||||
#########################################################################
|
||||
@@ -1,29 +0,0 @@
|
||||
#
|
||||
# (C) Copyright 2004 Atmark Techno, Inc.
|
||||
#
|
||||
# Yasushi SHOJI <yashi@atmark-techno.com>
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
# project.
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston,
|
||||
# MA 02111-1307 USA
|
||||
#
|
||||
|
||||
TEXT_BASE = 0x80F00000
|
||||
|
||||
PLATFORM_CPPFLAGS += -mno-xl-soft-mul
|
||||
PLATFORM_CPPFLAGS += -mno-xl-soft-div
|
||||
PLATFORM_CPPFLAGS += -mxl-barrel-shift
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2004 Atmark Techno, Inc.
|
||||
*
|
||||
* Yasushi SHOJI <yashi@atmark-techno.com>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
|
||||
|
||||
unsigned long flash_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void flash_print_info(flash_info_t *info)
|
||||
{
|
||||
}
|
||||
|
||||
int flash_erase(flash_info_t *info, int s_first, int s_last)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2004 Atmark Techno, Inc.
|
||||
*
|
||||
* Yasushi SHOJI <yashi@atmark-techno.com>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/* This is a board specific file. It's OK to include board specific
|
||||
* header files */
|
||||
#include <config.h>
|
||||
|
||||
void do_reset(void)
|
||||
{
|
||||
*((unsigned long *)(MICROBLAZE_SYSREG_BASE_ADDR)) = MICROBLAZE_SYSREG_RECONFIGURE;
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2004 Atmark Techno, Inc.
|
||||
*
|
||||
* Yasushi SHOJI <yashi@atmark-techno.com>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
OUTPUT_ARCH(microblaze)
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text ALIGN(0x4):
|
||||
{
|
||||
__text_start = .;
|
||||
cpu/microblaze/start.o (.text)
|
||||
*(.text)
|
||||
__text_end = .;
|
||||
}
|
||||
|
||||
.rodata ALIGN(0x4):
|
||||
{
|
||||
__rodata_start = .;
|
||||
*(.rodata)
|
||||
__rodata_end = .;
|
||||
}
|
||||
|
||||
.data ALIGN(0x4):
|
||||
{
|
||||
__data_start = .;
|
||||
*(.data)
|
||||
__data_end = .;
|
||||
}
|
||||
|
||||
.u_boot_cmd ALIGN(0x4):
|
||||
{
|
||||
. = .;
|
||||
__u_boot_cmd_start = .;
|
||||
*(.u_boot_cmd)
|
||||
__u_boot_cmd_end = .;
|
||||
}
|
||||
|
||||
.bss ALIGN(0x4):
|
||||
{
|
||||
__bss_start = .;
|
||||
*(.bss)
|
||||
__bss_end = .;
|
||||
}
|
||||
__end = . ;
|
||||
}
|
||||
@@ -1,162 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2005
|
||||
* BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
|
||||
*
|
||||
* (C) Copyright 2000-2003
|
||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include "asm/m5282.h"
|
||||
#include "VCxK.h"
|
||||
|
||||
int checkboard (void)
|
||||
{
|
||||
puts ("Board: MCF-EV1 + MCF-EV23 (BuS Elektronik GmbH & Co. KG)\n");
|
||||
#if (TEXT_BASE == CFG_INT_FLASH_BASE)
|
||||
puts (" Boot from Internal FLASH\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
long int initdram (int board_type)
|
||||
{
|
||||
int size,i;
|
||||
|
||||
size = 0;
|
||||
MCFSDRAMC_DCR = MCFSDRAMC_DCR_RTIM_6
|
||||
| MCFSDRAMC_DCR_RC((15 * CFG_CLK)>>4);
|
||||
#ifdef CFG_SDRAM_BASE0
|
||||
|
||||
MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE(CFG_SDRAM_BASE0)
|
||||
| MCFSDRAMC_DACR_CASL(1)
|
||||
| MCFSDRAMC_DACR_CBM(3)
|
||||
| MCFSDRAMC_DACR_PS_16);
|
||||
|
||||
MCFSDRAMC_DMR0 = MCFSDRAMC_DMR_BAM_16M
|
||||
| MCFSDRAMC_DMR_V;
|
||||
|
||||
MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_IP;
|
||||
|
||||
*(unsigned short *)(CFG_SDRAM_BASE0) = 0xA5A5;
|
||||
MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_RE;
|
||||
for (i=0; i < 2000; i++)
|
||||
asm(" nop");
|
||||
mbar_writeLong(MCFSDRAMC_DACR0, mbar_readLong(MCFSDRAMC_DACR0)
|
||||
| MCFSDRAMC_DACR_IMRS);
|
||||
*(unsigned int *)(CFG_SDRAM_BASE0 + 0x220) = 0xA5A5;
|
||||
size += CFG_SDRAM_SIZE * 1024 * 1024;
|
||||
#endif
|
||||
#ifdef CFG_SDRAM_BASE1
|
||||
MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE(CFG_SDRAM_BASE1)
|
||||
| MCFSDRAMC_DACR_CASL(1)
|
||||
| MCFSDRAMC_DACR_CBM(3)
|
||||
| MCFSDRAMC_DACR_PS_16;
|
||||
|
||||
MCFSDRAMC_DMR1 = MCFSDRAMC_DMR_BAM_16M
|
||||
| MCFSDRAMC_DMR_V;
|
||||
|
||||
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IP;
|
||||
|
||||
*(unsigned short *)(CFG_SDRAM_BASE1) = 0xA5A5;
|
||||
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_RE;
|
||||
for (i=0; i < 2000; i++)
|
||||
asm(" nop");
|
||||
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IMRS;
|
||||
*(unsigned int *)(CFG_SDRAM_BASE1 + 0x220) = 0xA5A5;
|
||||
size += CFG_SDRAM_SIZE1 * 1024 * 1024;
|
||||
#endif
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
#if defined(CFG_DRAM_TEST)
|
||||
int testdram (void)
|
||||
{
|
||||
uint *pstart = (uint *) CFG_MEMTEST_START;
|
||||
uint *pend = (uint *) CFG_MEMTEST_END;
|
||||
uint *p;
|
||||
|
||||
printf("SDRAM test phase 1:\n");
|
||||
for (p = pstart; p < pend; p++)
|
||||
*p = 0xaaaaaaaa;
|
||||
|
||||
for (p = pstart; p < pend; p++) {
|
||||
if (*p != 0xaaaaaaaa) {
|
||||
printf ("SDRAM test fails at: %08x\n", (uint) p);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
printf("SDRAM test phase 2:\n");
|
||||
for (p = pstart; p < pend; p++)
|
||||
*p = 0x55555555;
|
||||
|
||||
for (p = pstart; p < pend; p++) {
|
||||
if (*p != 0x55555555) {
|
||||
printf ("SDRAM test fails at: %08x\n", (uint) p);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
printf("SDRAM test passed.\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int misc_init_r(void)
|
||||
{
|
||||
init_vcxk();
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
int do_vcimage (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||
{
|
||||
int rcode = 0;
|
||||
ulong source;
|
||||
|
||||
switch (argc) {
|
||||
case 2:
|
||||
source = simple_strtoul(argv[1],NULL,16);
|
||||
vcxk_loadimage(source);
|
||||
rcode = 0;
|
||||
break;
|
||||
default:
|
||||
printf ("Usage:\n%s\n", cmdtp->usage);
|
||||
rcode = 1;
|
||||
break;
|
||||
}
|
||||
return rcode;
|
||||
}
|
||||
|
||||
/***************************************************/
|
||||
|
||||
U_BOOT_CMD(
|
||||
vcimage, 2, 0, do_vcimage,
|
||||
"vcimage - loads an image to Display\n",
|
||||
"vcimage addr\n"
|
||||
);
|
||||
|
||||
/* EOF EB+MCF-EV123c */
|
||||
@@ -1,44 +0,0 @@
|
||||
#
|
||||
# (C) Copyright 2000-2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
# project.
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston,
|
||||
# MA 02111-1307 USA
|
||||
#
|
||||
|
||||
include $(TOPDIR)/config.mk
|
||||
|
||||
LIB = $(obj)lib$(BOARD).a
|
||||
|
||||
COBJS = $(BOARD).o cfm_flash.o flash.o VCxK.o mii.o
|
||||
|
||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||
OBJS := $(addprefix $(obj),$(COBJS))
|
||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||
|
||||
$(LIB): $(obj).depend $(OBJS)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||
|
||||
#########################################################################
|
||||
|
||||
# defines $(obj).depend target
|
||||
include $(SRCTREE)/rules.mk
|
||||
|
||||
sinclude $(obj).depend
|
||||
|
||||
#########################################################################
|
||||
@@ -1,136 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2005
|
||||
* BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/m5282.h>
|
||||
#include "VCxK.h"
|
||||
|
||||
vu_char *vcxk_bws = (vu_char *)(CFG_CS3_BASE);
|
||||
#define VCXK_BWS vcxk_bws
|
||||
|
||||
static ulong vcxk_driver;
|
||||
|
||||
|
||||
ulong search_vcxk_driver(void);
|
||||
void vcxk_cls(void);
|
||||
void vcxk_setbrightness(short brightness);
|
||||
int vcxk_request(void);
|
||||
int vcxk_acknowledge_wait(void);
|
||||
void vcxk_clear(void);
|
||||
|
||||
int init_vcxk(void)
|
||||
{
|
||||
VIDEO_Invert_CFG &= ~VIDEO_Invert_IO;
|
||||
VIDEO_INVERT_PORT |= VIDEO_INVERT_PIN;
|
||||
VIDEO_INVERT_DDR |= VIDEO_INVERT_PIN;
|
||||
|
||||
VIDEO_REQUEST_PORT |= VIDEO_REQUEST_PIN;
|
||||
VIDEO_REQUEST_DDR |= VIDEO_REQUEST_PIN;
|
||||
|
||||
VIDEO_ACKNOWLEDGE_DDR &= ~VIDEO_ACKNOWLEDGE_PIN;
|
||||
|
||||
vcxk_driver = search_vcxk_driver();
|
||||
if (vcxk_driver)
|
||||
{
|
||||
/* use flash resist driver */
|
||||
}
|
||||
else
|
||||
{
|
||||
vcxk_cls();
|
||||
vcxk_cls();
|
||||
vcxk_setbrightness(1000);
|
||||
}
|
||||
VIDEO_ENABLE_DDR |= VIDEO_ENABLE_PIN;
|
||||
VIDEO_ENABLE_PORT |= VIDEO_ENABLE_PIN;
|
||||
VIDEO_ENABLE_PORT &= ~VIDEO_ENABLE_PIN;
|
||||
return 1;
|
||||
}
|
||||
|
||||
void vcxk_loadimage(ulong source)
|
||||
{
|
||||
int cnt;
|
||||
vcxk_acknowledge_wait();
|
||||
for (cnt=0; cnt<16384; cnt++)
|
||||
{
|
||||
VCXK_BWS[cnt*2] = (*(vu_char*) source);
|
||||
source++;
|
||||
}
|
||||
vcxk_request();
|
||||
}
|
||||
|
||||
void vcxk_cls(void)
|
||||
{
|
||||
vcxk_acknowledge_wait();
|
||||
vcxk_clear();
|
||||
vcxk_request();
|
||||
}
|
||||
|
||||
void vcxk_clear(void)
|
||||
{
|
||||
int cnt;
|
||||
for (cnt=0; cnt<16384; cnt++)
|
||||
{
|
||||
VCXK_BWS[cnt*2] = 0x00;
|
||||
}
|
||||
}
|
||||
|
||||
void vcxk_setbrightness(short brightness)
|
||||
{
|
||||
VCXK_BWS[0x8000]=(brightness >> 4) +2;
|
||||
VCXK_BWS[0xC000]= (brightness + 23) >> 8;
|
||||
VCXK_BWS[0xC001]= (brightness + 23) & 0xFF;
|
||||
}
|
||||
|
||||
int vcxk_request(void)
|
||||
{
|
||||
if (vcxk_driver)
|
||||
{
|
||||
/* use flash resist driver */
|
||||
}
|
||||
else
|
||||
{
|
||||
VIDEO_REQUEST_PORT &= ~VIDEO_REQUEST_PIN;
|
||||
VIDEO_REQUEST_PORT |= VIDEO_REQUEST_PIN;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
int vcxk_acknowledge_wait(void)
|
||||
{
|
||||
if (vcxk_driver)
|
||||
{
|
||||
/* use flash resist driver */
|
||||
}
|
||||
else
|
||||
{
|
||||
while (!(VIDEO_ACKNOWLEDGE_PORT & VIDEO_ACKNOWLEDGE_PIN));
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
ulong search_vcxk_driver(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* eof */
|
||||
@@ -1,48 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2005
|
||||
* BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __VCXK_H_
|
||||
#define __VCXK_H_
|
||||
|
||||
extern int init_vcxk(void);
|
||||
void vcxk_loadimage(ulong source);
|
||||
|
||||
#define VIDEO_ACKNOWLEDGE_PORT MCFGPTB_GPTPORT
|
||||
#define VIDEO_ACKNOWLEDGE_DDR MCFGPTB_GPTDDR
|
||||
#define VIDEO_ACKNOWLEDGE_PIN 0x0001
|
||||
|
||||
#define VIDEO_ENABLE_PORT MCFGPTB_GPTPORT
|
||||
#define VIDEO_ENABLE_DDR MCFGPTB_GPTDDR
|
||||
#define VIDEO_ENABLE_PIN 0x0002
|
||||
|
||||
#define VIDEO_REQUEST_PORT MCFGPTB_GPTPORT
|
||||
#define VIDEO_REQUEST_DDR MCFGPTB_GPTDDR
|
||||
#define VIDEO_REQUEST_PIN 0x0004
|
||||
|
||||
#define VIDEO_Invert_CFG MCFGPIO_PEPAR
|
||||
#define VIDEO_Invert_IO MCFGPIO_PEPAR_PEPA2
|
||||
#define VIDEO_INVERT_PORT MCFGPIO_PORTE
|
||||
#define VIDEO_INVERT_DDR MCFGPIO_DDRE
|
||||
#define VIDEO_INVERT_PIN MCFGPIO_PORT2
|
||||
|
||||
#endif
|
||||
@@ -1,212 +0,0 @@
|
||||
/*
|
||||
* Basic Flash Driver for Freescale MCF 5281/5282 internal FLASH
|
||||
*
|
||||
* (C) Copyright 2005 BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/m5282.h>
|
||||
#include "cfm_flash.h"
|
||||
|
||||
#if defined(CONFIG_M5281) || defined(CONFIG_M5282)
|
||||
|
||||
#if (CFG_CLK>20000000)
|
||||
#define CFM_CLK (((long) CFG_CLK / (400000 * 8) + 1) | 0x40)
|
||||
#else
|
||||
#define CFM_CLK ((long) CFG_CLK / 400000 + 1)
|
||||
#endif
|
||||
|
||||
#define cmf_backdoor_address(addr) (((addr) & 0x0007FFFF) | 0x04000000 | \
|
||||
(CFG_MBAR & 0xC0000000))
|
||||
|
||||
void cfm_flash_print_info (flash_info_t * info)
|
||||
{
|
||||
printf ("Freescale: ");
|
||||
switch (info->flash_id & FLASH_TYPEMASK) {
|
||||
case FREESCALE_ID_MCF5281 & FLASH_TYPEMASK:
|
||||
printf ("MCF5281 internal FLASH\n");
|
||||
break;
|
||||
case FREESCALE_ID_MCF5282 & FLASH_TYPEMASK:
|
||||
printf ("MCF5282 internal FLASH\n");
|
||||
break;
|
||||
default:
|
||||
printf ("Unknown Chip Type\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void cfm_flash_init (flash_info_t * info)
|
||||
{
|
||||
int sector;
|
||||
ulong protection;
|
||||
MCFCFM_MCR = 0;
|
||||
MCFCFM_CLKD = CFM_CLK;
|
||||
debug ("CFM Clock divider: %ld (%d Hz @ %ld Hz)\n",CFM_CLK,\
|
||||
CFG_CLK / (2* ((CFM_CLK & 0x3F)+1) * (1+((CFM_CLK & 0x40)>>6)*7)),\
|
||||
CFG_CLK);
|
||||
MCFCFM_SACC = 0;
|
||||
MCFCFM_DACC = 0;
|
||||
|
||||
if (MCFCFM_SEC & MCFCFM_SEC_KEYEN)
|
||||
puts("CFM backdoor access is enabled\n");
|
||||
if (MCFCFM_SEC & MCFCFM_SEC_SECSTAT)
|
||||
puts("CFM securety is enabled\n");
|
||||
|
||||
#ifdef CONFIG_M5281
|
||||
info->flash_id = (FREESCALE_MANUFACT & FLASH_VENDMASK) |
|
||||
(FREESCALE_ID_MCF5281 & FLASH_TYPEMASK);
|
||||
info->size = 256*1024;
|
||||
info->sector_count = 16;
|
||||
#else
|
||||
info->flash_id = (FREESCALE_MANUFACT & FLASH_VENDMASK) |
|
||||
(FREESCALE_ID_MCF5282 & FLASH_TYPEMASK);
|
||||
info->size = 512*1024;
|
||||
info->sector_count = 32;
|
||||
#endif
|
||||
protection = MCFCFM_PROT;
|
||||
for (sector = 0; sector < info->sector_count; sector++)
|
||||
{
|
||||
if (sector == 0)
|
||||
{
|
||||
info->start[sector] = CFG_INT_FLASH_BASE;
|
||||
}
|
||||
else
|
||||
{
|
||||
info->start[sector] = info->start[sector-1] + 0x04000;
|
||||
}
|
||||
info->protect[sector] = protection & 1;
|
||||
protection >>= 1;
|
||||
}
|
||||
}
|
||||
|
||||
int cfm_flash_readycheck(int checkblank)
|
||||
{
|
||||
int rc;
|
||||
unsigned char state;
|
||||
|
||||
rc = ERR_OK;
|
||||
while (!(MCFCFM_USTAT & MCFCFM_USTAT_CCIF));
|
||||
state = MCFCFM_USTAT;
|
||||
if (state & MCFCFM_USTAT_ACCERR)
|
||||
{
|
||||
debug ("%s(): CFM access error",__FUNCTION__);
|
||||
rc = ERR_PROG_ERROR;
|
||||
}
|
||||
if (state & MCFCFM_USTAT_PVIOL)
|
||||
{
|
||||
debug ("%s(): CFM protection violation",__FUNCTION__);
|
||||
rc = ERR_PROTECTED;
|
||||
}
|
||||
if (checkblank)
|
||||
{
|
||||
if (!(state & MCFCFM_USTAT_BLANK))
|
||||
{
|
||||
debug ("%s(): CFM erras error",__FUNCTION__);
|
||||
rc = ERR_NOT_ERASED;
|
||||
}
|
||||
}
|
||||
MCFCFM_USTAT = state & 0x34; /* reset state */
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Erase 16KiB = 8 2KiB pages */
|
||||
|
||||
int cfm_flash_erase_sector (flash_info_t * info, int sector)
|
||||
{
|
||||
ulong address;
|
||||
int page;
|
||||
int rc;
|
||||
rc= ERR_OK;
|
||||
address = cmf_backdoor_address(info->start[sector]);
|
||||
for (page=0; (page<8) && (rc==ERR_OK); page++)
|
||||
{
|
||||
*(volatile __u32*) address = 0;
|
||||
MCFCFM_CMD = MCFCFM_CMD_PGERS;
|
||||
MCFCFM_USTAT = MCFCFM_USTAT_CBEIF;
|
||||
rc = cfm_flash_readycheck(0);
|
||||
if (rc==ERR_OK)
|
||||
{
|
||||
*(volatile __u32*) address = 0;
|
||||
MCFCFM_CMD = MCFCFM_CMD_PGERSVER;
|
||||
MCFCFM_USTAT = MCFCFM_USTAT_CBEIF;
|
||||
rc = cfm_flash_readycheck(1);
|
||||
}
|
||||
address += 0x800;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
int cfm_flash_write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
|
||||
{
|
||||
int rc;
|
||||
ulong dest, data;
|
||||
|
||||
rc = ERR_OK;
|
||||
if (addr & 3)
|
||||
{
|
||||
debug ("Byte and Word alignment not supported\n");
|
||||
rc = ERR_ALIGN;
|
||||
}
|
||||
if (cnt & 3)
|
||||
{
|
||||
debug ("Byte and Word transfer not supported\n");
|
||||
rc = ERR_ALIGN;
|
||||
}
|
||||
dest = cmf_backdoor_address(addr);
|
||||
while ((cnt>=4) && (rc == ERR_OK))
|
||||
{
|
||||
data =*((volatile u32 *) src);
|
||||
*(volatile u32*) dest = data;
|
||||
MCFCFM_CMD = MCFCFM_CMD_PGM;
|
||||
MCFCFM_USTAT = MCFCFM_USTAT_CBEIF;
|
||||
rc = cfm_flash_readycheck(0);
|
||||
if (*(volatile u32*) addr != data) rc = ERR_PROG_ERROR;
|
||||
src +=4;
|
||||
dest +=4;
|
||||
addr +=4;
|
||||
cnt -=4;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef CFG_FLASH_PROTECTION
|
||||
|
||||
int cfm_flash_protect(flash_info_t * info,long sector,int prot)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc= ERR_OK;
|
||||
if (prot)
|
||||
{
|
||||
MCFCFM_PROT |= (1<<sector);
|
||||
info->protect[sector]=1;
|
||||
}
|
||||
else
|
||||
{
|
||||
MCFCFM_PROT &= ~(1<<sector);
|
||||
info->protect[sector]=0;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Basic Flash Driver for Freescale MCF 5282 internal FLASH
|
||||
*
|
||||
* (C) Copyright 2005 BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __CFM_FLASH_H_
|
||||
#define __CFM_FLASH_H_
|
||||
|
||||
#define FREESCALE_MANUFACT 0xFACFFACF
|
||||
#define FREESCALE_ID_MCF5281 0x5281
|
||||
#define FREESCALE_ID_MCF5282 0x5282
|
||||
|
||||
extern void cfm_flash_print_info (flash_info_t * info);
|
||||
extern int cfm_flash_erase_sector (flash_info_t * info, int sector);
|
||||
extern void cfm_flash_init (flash_info_t * info);
|
||||
extern int cfm_flash_write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt);
|
||||
#ifdef CFG_FLASH_PROTECTION
|
||||
extern int cfm_flash_protect(flash_info_t * info,long sector,int prot);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,28 +0,0 @@
|
||||
#
|
||||
# (C) Copyright 2000-2003
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
# Coldfire contribution by Bernhard Kuhn <bkuhn@metrowerks.com>
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
# project.
|
||||
#
|
||||
# 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., 59 Temple Place, Suite 330, Boston,
|
||||
# MA 02111-1307 USA
|
||||
#
|
||||
|
||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/textbase.mk
|
||||
ifndef TEXT_BASE
|
||||
TEXT_BASE = 0xFE000000
|
||||
endif
|
||||
@@ -1,413 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2005
|
||||
* BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de>
|
||||
*
|
||||
* Based On
|
||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include "cfm_flash.h"
|
||||
|
||||
#define PHYS_FLASH_1 CFG_FLASH_BASE
|
||||
#define FLASH_BANK_SIZE 0x200000
|
||||
|
||||
flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
|
||||
|
||||
void flash_print_info (flash_info_t * info)
|
||||
{
|
||||
int i;
|
||||
|
||||
switch (info->flash_id & FLASH_VENDMASK) {
|
||||
case (AMD_MANUFACT & FLASH_VENDMASK):
|
||||
printf ("AMD: ");
|
||||
switch (info->flash_id & FLASH_TYPEMASK) {
|
||||
case (AMD_ID_LV160B & FLASH_TYPEMASK):
|
||||
printf ("AM29LV160B (16Bit)\n");
|
||||
break;
|
||||
default:
|
||||
printf ("Unknown Chip Type\n");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case FREESCALE_MANUFACT & FLASH_VENDMASK:
|
||||
cfm_flash_print_info (info);
|
||||
break;
|
||||
default:
|
||||
printf ("Unknown Vendor ");
|
||||
break;
|
||||
}
|
||||
|
||||
puts (" Size: ");
|
||||
if ((info->size >> 20) > 0)
|
||||
{
|
||||
printf ("%ld MiB",info->size >> 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf ("%ld KiB",info->size >> 10);
|
||||
}
|
||||
printf (" in %d Sectors\n", info->sector_count);
|
||||
|
||||
printf (" Sector Start Addresses:");
|
||||
for (i = 0; i < info->sector_count; i++) {
|
||||
if ((i % 4) == 0) {
|
||||
printf ("\n ");
|
||||
}
|
||||
printf ("%02d: %08lX%s ", i,info->start[i],
|
||||
info->protect[i] ? " P" : " ");
|
||||
}
|
||||
printf ("\n\n");
|
||||
}
|
||||
|
||||
unsigned long flash_init (void)
|
||||
{
|
||||
int i, j;
|
||||
ulong size = 0;
|
||||
|
||||
for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
|
||||
ulong flashbase = 0;
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 1:
|
||||
flash_info[i].flash_id =
|
||||
(AMD_MANUFACT & FLASH_VENDMASK) |
|
||||
(AMD_ID_LV160B & FLASH_TYPEMASK);
|
||||
flash_info[i].size = FLASH_BANK_SIZE;
|
||||
flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
|
||||
memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
|
||||
flashbase = PHYS_FLASH_1;
|
||||
for (j = 0; j < flash_info[i].sector_count; j++) {
|
||||
if (j == 0) {
|
||||
/* 1st is 16 KiB */
|
||||
flash_info[i].start[j] = flashbase;
|
||||
}
|
||||
if ((j >= 1) && (j <= 2)) {
|
||||
/* 2nd and 3rd are 8 KiB */
|
||||
flash_info[i].start[j] =
|
||||
flashbase + 0x4000 + 0x2000 * (j - 1);
|
||||
}
|
||||
if (j == 3) {
|
||||
/* 4th is 32 KiB */
|
||||
flash_info[i].start[j] = flashbase + 0x8000;
|
||||
}
|
||||
if ((j >= 4) && (j <= 34)) {
|
||||
/* rest is 256 KiB */
|
||||
flash_info[i].start[j] =
|
||||
flashbase + 0x10000 + 0x10000 * (j - 4);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
cfm_flash_init (&flash_info[i]);
|
||||
break;
|
||||
default:
|
||||
panic ("configured to many flash banks!\n");
|
||||
}
|
||||
|
||||
size += flash_info[i].size;
|
||||
}
|
||||
|
||||
flash_protect (FLAG_PROTECT_SET,
|
||||
CFG_FLASH_BASE,
|
||||
CFG_FLASH_BASE + 0xffff, &flash_info[0]);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
#define CMD_READ_ARRAY 0x00F0
|
||||
#define CMD_UNLOCK1 0x00AA
|
||||
#define CMD_UNLOCK2 0x0055
|
||||
#define CMD_ERASE_SETUP 0x0080
|
||||
#define CMD_ERASE_CONFIRM 0x0030
|
||||
#define CMD_PROGRAM 0x00A0
|
||||
#define CMD_UNLOCK_BYPASS 0x0020
|
||||
|
||||
#define MEM_FLASH_ADDR1 (*(volatile u16 *)(info->start[0] + (0x00000555<<1)))
|
||||
#define MEM_FLASH_ADDR2 (*(volatile u16 *)(info->start[0] + (0x000002AA<<1)))
|
||||
|
||||
|
||||
#define BIT_ERASE_DONE 0x0080
|
||||
#define BIT_RDY_MASK 0x0080
|
||||
#define BIT_PROGRAM_ERROR 0x0020
|
||||
#define BIT_TIMEOUT 0x80000000 /* our flag */
|
||||
|
||||
#define ERR_READY -1
|
||||
|
||||
int amd_flash_erase_sector(flash_info_t * info, int sector)
|
||||
{
|
||||
int state;
|
||||
ulong result;
|
||||
|
||||
volatile u16 *addr =
|
||||
(volatile u16 *) (info->start[sector]);
|
||||
|
||||
MEM_FLASH_ADDR1 = CMD_UNLOCK1;
|
||||
MEM_FLASH_ADDR2 = CMD_UNLOCK2;
|
||||
MEM_FLASH_ADDR1 = CMD_ERASE_SETUP;
|
||||
|
||||
MEM_FLASH_ADDR1 = CMD_UNLOCK1;
|
||||
MEM_FLASH_ADDR2 = CMD_UNLOCK2;
|
||||
*addr = CMD_ERASE_CONFIRM;
|
||||
|
||||
/* wait until flash is ready */
|
||||
state = 0;
|
||||
set_timer (0);
|
||||
|
||||
do {
|
||||
result = *addr;
|
||||
|
||||
/* check timeout */
|
||||
if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
|
||||
MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
|
||||
state = ERR_TIMOUT;
|
||||
}
|
||||
|
||||
if (!state && (result & 0xFFFF) & BIT_ERASE_DONE)
|
||||
state = ERR_READY;
|
||||
}
|
||||
while (!state);
|
||||
if (state == ERR_READY)
|
||||
state = ERR_OK;
|
||||
|
||||
MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
int flash_erase (flash_info_t * info, int s_first, int s_last)
|
||||
{
|
||||
int iflag, cflag;
|
||||
int sector;
|
||||
int rc;
|
||||
|
||||
rc = ERR_OK;
|
||||
|
||||
if (info->flash_id == FLASH_UNKNOWN)
|
||||
{
|
||||
rc = ERR_UNKNOWN_FLASH_TYPE;
|
||||
} /* (info->flash_id == FLASH_UNKNOWN) */
|
||||
|
||||
if ((s_first < 0) || (s_first > s_last) || s_last >= info->sector_count)
|
||||
{
|
||||
rc = ERR_INVAL;
|
||||
}
|
||||
|
||||
cflag = icache_status ();
|
||||
icache_disable ();
|
||||
iflag = disable_interrupts ();
|
||||
|
||||
for (sector = s_first; (sector <= s_last) && (rc == ERR_OK); sector++) {
|
||||
|
||||
if (info->protect[sector])
|
||||
{
|
||||
putc('P'); /* protected sector will not erase */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* erase on unprotected sector */
|
||||
puts("E\b");
|
||||
switch (info->flash_id & FLASH_VENDMASK)
|
||||
{
|
||||
case (AMD_MANUFACT & FLASH_VENDMASK):
|
||||
rc = amd_flash_erase_sector(info,sector);
|
||||
break;
|
||||
case (FREESCALE_MANUFACT & FLASH_VENDMASK):
|
||||
rc = cfm_flash_erase_sector(info,sector);
|
||||
break;
|
||||
default:
|
||||
return ERR_UNKNOWN_FLASH_VENDOR;
|
||||
}
|
||||
putc('.');
|
||||
}
|
||||
}
|
||||
if (rc!=ERR_OK)
|
||||
{
|
||||
printf ("\n ");
|
||||
flash_perror (rc);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf (" done\n");
|
||||
}
|
||||
|
||||
udelay (10000); /* allow flash to settle - wait 10 ms */
|
||||
|
||||
if (iflag)
|
||||
enable_interrupts ();
|
||||
|
||||
if (cflag)
|
||||
icache_enable ();
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
volatile static int amd_write_word (flash_info_t * info, ulong dest, u16 data)
|
||||
{
|
||||
volatile u16 *addr;
|
||||
ulong result;
|
||||
int cflag, iflag;
|
||||
int state;
|
||||
|
||||
/*
|
||||
* Check if Flash is (sufficiently) erased
|
||||
*/
|
||||
addr = (volatile u16 *) dest;
|
||||
|
||||
result = *addr;
|
||||
if ((result & data) != data)
|
||||
return ERR_NOT_ERASED;
|
||||
|
||||
/*
|
||||
* Disable interrupts which might cause a timeout
|
||||
* here. Remember that our exception vectors are
|
||||
* at address 0 in the flash, and we don't want a
|
||||
* (ticker) exception to happen while the flash
|
||||
* chip is in programming mode.
|
||||
*/
|
||||
|
||||
cflag = icache_status ();
|
||||
icache_disable ();
|
||||
iflag = disable_interrupts ();
|
||||
|
||||
MEM_FLASH_ADDR1 = CMD_UNLOCK1;
|
||||
MEM_FLASH_ADDR2 = CMD_UNLOCK2;
|
||||
MEM_FLASH_ADDR1 = CMD_PROGRAM;
|
||||
*addr = data;
|
||||
|
||||
/* arm simple, non interrupt dependent timer */
|
||||
set_timer (0);
|
||||
|
||||
/* wait until flash is ready */
|
||||
state = 0;
|
||||
do {
|
||||
result = *addr;
|
||||
|
||||
/* check timeout */
|
||||
if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
|
||||
state = ERR_TIMOUT;
|
||||
}
|
||||
if (!state && ((result & BIT_RDY_MASK) == (data & BIT_RDY_MASK)))
|
||||
state = ERR_READY;
|
||||
|
||||
} while (!state);
|
||||
|
||||
*addr = CMD_READ_ARRAY;
|
||||
|
||||
if (state == ERR_READY)
|
||||
state = ERR_OK;
|
||||
if ((*addr != data) && (state != ERR_TIMOUT))
|
||||
state = ERR_PROG_ERROR;
|
||||
|
||||
if (iflag)
|
||||
enable_interrupts ();
|
||||
|
||||
if (cflag)
|
||||
icache_enable ();
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
int amd_flash_write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
|
||||
{
|
||||
int rc;
|
||||
ulong dest;
|
||||
u16 data;
|
||||
|
||||
rc = ERR_OK;
|
||||
if (addr & 1)
|
||||
{
|
||||
debug ("Byte alignment not supported\n");
|
||||
rc = ERR_ALIGN;
|
||||
}
|
||||
if (cnt & 1)
|
||||
{
|
||||
debug ("Byte transfer not supported\n");
|
||||
rc = ERR_ALIGN;
|
||||
}
|
||||
|
||||
dest = addr;
|
||||
while ((cnt>=2) && (rc == ERR_OK))
|
||||
{
|
||||
data =*((volatile u16 *) src);
|
||||
rc=amd_write_word (info,dest,data);
|
||||
src +=2;
|
||||
dest +=2;
|
||||
cnt -=2;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
|
||||
{
|
||||
int rc;
|
||||
|
||||
switch (info->flash_id & FLASH_VENDMASK)
|
||||
{
|
||||
case (AMD_MANUFACT & FLASH_VENDMASK):
|
||||
rc = amd_flash_write_buff(info,src,addr,cnt);
|
||||
break;
|
||||
case (FREESCALE_MANUFACT & FLASH_VENDMASK):
|
||||
rc = cfm_flash_write_buff(info,src,addr,cnt);
|
||||
break;
|
||||
default:
|
||||
rc = ERR_UNKNOWN_FLASH_VENDOR;
|
||||
}
|
||||
return rc;
|
||||
|
||||
}
|
||||
int amd_flash_protect(flash_info_t * info,long sector,int prot)
|
||||
{
|
||||
int rc;
|
||||
rc= ERR_OK;
|
||||
if (prot)
|
||||
{
|
||||
info->protect[sector]=1;
|
||||
}
|
||||
else
|
||||
{
|
||||
info->protect[sector]=0;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef CFG_FLASH_PROTECTION
|
||||
|
||||
int flash_real_protect(flash_info_t * info,long sector,int prot)
|
||||
{
|
||||
int rc;
|
||||
|
||||
switch (info->flash_id & FLASH_VENDMASK)
|
||||
{
|
||||
case (AMD_MANUFACT & FLASH_VENDMASK):
|
||||
rc = amd_flash_protect(info,sector,prot);
|
||||
break;
|
||||
case (FREESCALE_MANUFACT & FLASH_VENDMASK):
|
||||
rc = cfm_flash_protect(info,sector,prot);
|
||||
break;
|
||||
default:
|
||||
rc = ERR_UNKNOWN_FLASH_VENDOR;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,304 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
|
||||
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/fec.h>
|
||||
#include <asm/immap.h>
|
||||
|
||||
#include <config.h>
|
||||
#include <net.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI)
|
||||
#undef MII_DEBUG
|
||||
#undef ET_DEBUG
|
||||
|
||||
int fecpin_setclear(struct eth_device *dev, int setclear)
|
||||
{
|
||||
if (setclear) {
|
||||
MCFGPIO_PASPAR |= 0x0F00;
|
||||
MCFGPIO_PEHLPAR = CFG_PEHLPAR;
|
||||
} else {
|
||||
MCFGPIO_PASPAR &= 0xF0FF;
|
||||
MCFGPIO_PEHLPAR &= ~CFG_PEHLPAR;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
|
||||
#include <miiphy.h>
|
||||
|
||||
/* Make MII read/write commands for the FEC. */
|
||||
#define mk_mii_read(ADDR, REG) (0x60020000 | ((ADDR << 23) | (REG & 0x1f) << 18))
|
||||
|
||||
#define mk_mii_write(ADDR, REG, VAL) (0x50020000 | ((ADDR << 23) | (REG & 0x1f) << 18) | (VAL & 0xffff))
|
||||
|
||||
/* PHY identification */
|
||||
#define PHY_ID_LXT970 0x78100000 /* LXT970 */
|
||||
#define PHY_ID_LXT971 0x001378e0 /* LXT971 and 972 */
|
||||
#define PHY_ID_82555 0x02a80150 /* Intel 82555 */
|
||||
#define PHY_ID_QS6612 0x01814400 /* QS6612 */
|
||||
#define PHY_ID_AMD79C784 0x00225610 /* AMD 79C784 */
|
||||
#define PHY_ID_AMD79C874VC 0x0022561B /* AMD 79C874 */
|
||||
#define PHY_ID_LSI80225 0x0016f870 /* LSI 80225 */
|
||||
#define PHY_ID_LSI80225B 0x0016f880 /* LSI 80225/B */
|
||||
#define PHY_ID_DP83848VV 0x20005C90 /* National 83848 */
|
||||
#define PHY_ID_DP83849 0x20005CA2 /* National 82849 */
|
||||
|
||||
#define STR_ID_LXT970 "LXT970"
|
||||
#define STR_ID_LXT971 "LXT971"
|
||||
#define STR_ID_82555 "Intel82555"
|
||||
#define STR_ID_QS6612 "QS6612"
|
||||
#define STR_ID_AMD79C784 "AMD79C784"
|
||||
#define STR_ID_AMD79C874VC "AMD79C874VC"
|
||||
#define STR_ID_LSI80225 "LSI80225"
|
||||
#define STR_ID_LSI80225B "LSI80225/B"
|
||||
#define STR_ID_DP83848VV "N83848"
|
||||
#define STR_ID_DP83849 "N83849"
|
||||
|
||||
/****************************************************************************
|
||||
* mii_init -- Initialize the MII for MII command without ethernet
|
||||
* This function is a subset of eth_init
|
||||
****************************************************************************
|
||||
*/
|
||||
void mii_reset(struct fec_info_s *info)
|
||||
{
|
||||
volatile fec_t *fecp = (fec_t *) (info->miibase);
|
||||
int i;
|
||||
|
||||
fecp->ecr = FEC_ECR_RESET;
|
||||
for (i = 0; (fecp->ecr & FEC_ECR_RESET) && (i < FEC_RESET_DELAY); ++i) {
|
||||
udelay(1);
|
||||
}
|
||||
if (i == FEC_RESET_DELAY) {
|
||||
printf("FEC_RESET_DELAY timeout\n");
|
||||
}
|
||||
}
|
||||
|
||||
/* send command to phy using mii, wait for result */
|
||||
uint mii_send(uint mii_cmd)
|
||||
{
|
||||
struct fec_info_s *info;
|
||||
struct eth_device *dev;
|
||||
volatile fec_t *ep;
|
||||
uint mii_reply;
|
||||
int j = 0;
|
||||
|
||||
/* retrieve from register structure */
|
||||
dev = eth_get_dev();
|
||||
info = dev->priv;
|
||||
|
||||
ep = (fec_t *) info->miibase;
|
||||
|
||||
ep->mmfr = mii_cmd; /* command to phy */
|
||||
|
||||
/* wait for mii complete */
|
||||
while (!(ep->eir & FEC_EIR_MII) && (j < MCFFEC_TOUT_LOOP)) {
|
||||
udelay(1);
|
||||
j++;
|
||||
}
|
||||
if (j >= MCFFEC_TOUT_LOOP) {
|
||||
printf("MII not complete\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
mii_reply = ep->mmfr; /* result from phy */
|
||||
ep->eir = FEC_EIR_MII; /* clear MII complete */
|
||||
#ifdef ET_DEBUG
|
||||
printf("%s[%d] %s: sent=0x%8.8x, reply=0x%8.8x\n",
|
||||
__FILE__, __LINE__, __FUNCTION__, mii_cmd, mii_reply);
|
||||
#endif
|
||||
|
||||
return (mii_reply & 0xffff); /* data read from phy */
|
||||
}
|
||||
#endif /* CFG_DISCOVER_PHY || (CONFIG_COMMANDS & CONFIG_CMD_MII) */
|
||||
|
||||
#if defined(CFG_DISCOVER_PHY)
|
||||
int mii_discover_phy(struct eth_device *dev)
|
||||
{
|
||||
#define MAX_PHY_PASSES 11
|
||||
struct fec_info_s *info = dev->priv;
|
||||
int phyaddr, pass;
|
||||
uint phyno, phytype;
|
||||
|
||||
if (info->phyname_init)
|
||||
return info->phy_addr;
|
||||
|
||||
phyaddr = -1; /* didn't find a PHY yet */
|
||||
for (pass = 1; pass <= MAX_PHY_PASSES && phyaddr < 0; ++pass) {
|
||||
if (pass > 1) {
|
||||
/* PHY may need more time to recover from reset.
|
||||
* The LXT970 needs 50ms typical, no maximum is
|
||||
* specified, so wait 10ms before try again.
|
||||
* With 11 passes this gives it 100ms to wake up.
|
||||
*/
|
||||
udelay(10000); /* wait 10ms */
|
||||
}
|
||||
|
||||
for (phyno = 0; phyno < 32 && phyaddr < 0; ++phyno) {
|
||||
|
||||
phytype = mii_send(mk_mii_read(phyno, PHY_PHYIDR1));
|
||||
#ifdef ET_DEBUG
|
||||
printf("PHY type 0x%x pass %d type\n", phytype, pass);
|
||||
#endif
|
||||
if (phytype != 0xffff) {
|
||||
phyaddr = phyno;
|
||||
phytype <<= 16;
|
||||
phytype |=
|
||||
mii_send(mk_mii_read(phyno, PHY_PHYIDR2));
|
||||
|
||||
switch (phytype & 0xffffffff) {
|
||||
case PHY_ID_AMD79C874VC:
|
||||
strcpy(info->phy_name,
|
||||
STR_ID_AMD79C874VC);
|
||||
info->phyname_init = 1;
|
||||
break;
|
||||
default:
|
||||
strcpy(info->phy_name, "unknown");
|
||||
info->phyname_init = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef ET_DEBUG
|
||||
printf("PHY @ 0x%x pass %d type ", phyno, pass);
|
||||
switch (phytype & 0xffffffff) {
|
||||
case PHY_ID_AMD79C874VC:
|
||||
printf(STR_ID_AMD79C874VC);
|
||||
break;
|
||||
default:
|
||||
printf("0x%08x\n", phytype);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
if (phyaddr < 0)
|
||||
printf("No PHY device found.\n");
|
||||
|
||||
return phyaddr;
|
||||
}
|
||||
#endif /* CFG_DISCOVER_PHY */
|
||||
|
||||
int mii_init(void) __attribute__((weak,alias("__mii_init")));
|
||||
|
||||
void __mii_init(void)
|
||||
{
|
||||
volatile fec_t *fecp;
|
||||
struct fec_info_s *info;
|
||||
struct eth_device *dev;
|
||||
int miispd = 0, i = 0;
|
||||
u16 autoneg = 0;
|
||||
|
||||
/* retrieve from register structure */
|
||||
dev = eth_get_dev();
|
||||
info = dev->priv;
|
||||
|
||||
fecp = (fec_t *) info->miibase;
|
||||
|
||||
fecpin_setclear(dev, 1);
|
||||
|
||||
mii_reset(info);
|
||||
|
||||
/* We use strictly polling mode only */
|
||||
fecp->eimr = 0;
|
||||
|
||||
/* Clear any pending interrupt */
|
||||
fecp->eir = 0xffffffff;
|
||||
|
||||
/* Set MII speed */
|
||||
miispd = (gd->bus_clk / 1000000) / 5;
|
||||
fecp->mscr = miispd << 1;
|
||||
|
||||
info->phy_addr = mii_discover_phy(dev);
|
||||
|
||||
#define AUTONEGLINK (PHY_BMSR_AUTN_COMP | PHY_BMSR_LS)
|
||||
while (i < MCFFEC_TOUT_LOOP) {
|
||||
autoneg = 0;
|
||||
miiphy_read(dev->name, info->phy_addr, PHY_BMSR, &autoneg);
|
||||
i++;
|
||||
|
||||
if ((autoneg & AUTONEGLINK) == AUTONEGLINK)
|
||||
break;
|
||||
|
||||
udelay(500);
|
||||
}
|
||||
if (i >= MCFFEC_TOUT_LOOP) {
|
||||
printf("Auto Negotiation not complete\n");
|
||||
}
|
||||
|
||||
/* adapt to the half/full speed settings */
|
||||
info->dup_spd = miiphy_duplex(dev->name, info->phy_addr) << 16;
|
||||
info->dup_spd |= miiphy_speed(dev->name, info->phy_addr);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* Read and write a MII PHY register, routines used by MII Utilities
|
||||
*
|
||||
* FIXME: These routines are expected to return 0 on success, but mii_send
|
||||
* does _not_ return an error code. Maybe 0xFFFF means error, i.e.
|
||||
* no PHY connected...
|
||||
* For now always return 0.
|
||||
* FIXME: These routines only work after calling eth_init() at least once!
|
||||
* Otherwise they hang in mii_send() !!! Sorry!
|
||||
*****************************************************************************/
|
||||
|
||||
int mcffec_miiphy_read(char *devname, unsigned char addr, unsigned char reg,
|
||||
unsigned short *value)
|
||||
{
|
||||
short rdreg; /* register working value */
|
||||
|
||||
#ifdef MII_DEBUG
|
||||
printf("miiphy_read(0x%x) @ 0x%x = ", reg, addr);
|
||||
#endif
|
||||
rdreg = mii_send(mk_mii_read(addr, reg));
|
||||
|
||||
*value = rdreg;
|
||||
|
||||
#ifdef MII_DEBUG
|
||||
printf("0x%04x\n", *value);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mcffec_miiphy_write(char *devname, unsigned char addr, unsigned char reg,
|
||||
unsigned short value)
|
||||
{
|
||||
short rdreg; /* register working value */
|
||||
|
||||
#ifdef MII_DEBUG
|
||||
printf("miiphy_write(0x%x) @ 0x%x = ", reg, addr);
|
||||
#endif
|
||||
|
||||
rdreg = mii_send(mk_mii_write(addr, reg, value));
|
||||
|
||||
#ifdef MII_DEBUG
|
||||
printf("0x%04x\n", value);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_CMD_NET, FEC_ENET & NET_MULTI */
|
||||
@@ -1 +0,0 @@
|
||||
TEXT_BASE = 0xFFE00000
|
||||
@@ -1,141 +0,0 @@
|
||||
/*
|
||||
* (C) Copyright 2000-2003
|
||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
OUTPUT_ARCH(m68k)
|
||||
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib);
|
||||
/* Do we need any of these for elf?
|
||||
__DYNAMIC = 0; */
|
||||
SECTIONS
|
||||
{
|
||||
/* Read-only sections, merged into text segment: */
|
||||
. = + SIZEOF_HEADERS;
|
||||
.interp : { *(.interp) }
|
||||
.hash : { *(.hash) }
|
||||
.dynsym : { *(.dynsym) }
|
||||
.dynstr : { *(.dynstr) }
|
||||
.rel.text : { *(.rel.text) }
|
||||
.rela.text : { *(.rela.text) }
|
||||
.rel.data : { *(.rel.data) }
|
||||
.rela.data : { *(.rela.data) }
|
||||
.rel.rodata : { *(.rel.rodata) }
|
||||
.rela.rodata : { *(.rela.rodata) }
|
||||
.rel.got : { *(.rel.got) }
|
||||
.rela.got : { *(.rela.got) }
|
||||
.rel.ctors : { *(.rel.ctors) }
|
||||
.rela.ctors : { *(.rela.ctors) }
|
||||
.rel.dtors : { *(.rel.dtors) }
|
||||
.rela.dtors : { *(.rela.dtors) }
|
||||
.rel.bss : { *(.rel.bss) }
|
||||
.rela.bss : { *(.rela.bss) }
|
||||
.rel.plt : { *(.rel.plt) }
|
||||
.rela.plt : { *(.rela.plt) }
|
||||
.init : { *(.init) }
|
||||
.plt : { *(.plt) }
|
||||
.text :
|
||||
{
|
||||
/* WARNING - the following is hand-optimized to fit within */
|
||||
/* the sector layout of our flash chips! XXX FIXME XXX */
|
||||
|
||||
cpu/mcf52x2/start.o (.text)
|
||||
common/dlmalloc.o (.text)
|
||||
lib_generic/string.o (.text)
|
||||
lib_generic/vsprintf.o (.text)
|
||||
lib_generic/crc32.o (.text)
|
||||
lib_generic/zlib.o (.text)
|
||||
|
||||
/* . = env_offset; */
|
||||
common/environment.o(.text)
|
||||
|
||||
*(.text)
|
||||
*(.fixup)
|
||||
*(.got1)
|
||||
}
|
||||
_etext = .;
|
||||
PROVIDE (etext = .);
|
||||
.rodata :
|
||||
{
|
||||
*(.rodata)
|
||||
*(.rodata1)
|
||||
}
|
||||
.fini : { *(.fini) } =0
|
||||
.ctors : { *(.ctors) }
|
||||
.dtors : { *(.dtors) }
|
||||
|
||||
/* Read-write section, merged into data segment: */
|
||||
. = (. + 0x00FF) & 0xFFFFFF00;
|
||||
_erotext = .;
|
||||
PROVIDE (erotext = .);
|
||||
.reloc :
|
||||
{
|
||||
__got_start = .;
|
||||
*(.got)
|
||||
__got_end = .;
|
||||
_GOT2_TABLE_ = .;
|
||||
*(.got2)
|
||||
_FIXUP_TABLE_ = .;
|
||||
*(.fixup)
|
||||
}
|
||||
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
|
||||
__fixup_entries = (. - _FIXUP_TABLE_)>>2;
|
||||
|
||||
.data :
|
||||
{
|
||||
*(.data)
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata2)
|
||||
*(.dynamic)
|
||||
CONSTRUCTORS
|
||||
}
|
||||
_edata = .;
|
||||
PROVIDE (edata = .);
|
||||
|
||||
__u_boot_cmd_start = .;
|
||||
.u_boot_cmd : { *(.u_boot_cmd) }
|
||||
__u_boot_cmd_end = .;
|
||||
|
||||
__start___ex_table = .;
|
||||
__ex_table : { *(__ex_table) }
|
||||
__stop___ex_table = .;
|
||||
|
||||
. = ALIGN(256);
|
||||
__init_begin = .;
|
||||
.text.init : { *(.text.init) }
|
||||
.data.init : { *(.data.init) }
|
||||
. = ALIGN(256);
|
||||
__init_end = .;
|
||||
|
||||
__bss_start = .;
|
||||
.bss :
|
||||
{
|
||||
_sbss = .;
|
||||
*(.sbss) *(.scommon)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
_ebss = .;
|
||||
}
|
||||
_end = . ;
|
||||
PROVIDE (end = .);
|
||||
}
|
||||
@@ -4,9 +4,6 @@
|
||||
# Copyright (C) 2000, 2001, 2002, 2003
|
||||
# The LEOX team <team@leox.org>, http://www.leox.org
|
||||
#
|
||||
# (C) Copyright 2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# LEOX.org is about the development of free hardware and software resources
|
||||
# for system on chip.
|
||||
#
|
||||
@@ -34,22 +31,18 @@
|
||||
|
||||
include $(TOPDIR)/config.mk
|
||||
|
||||
LIB = $(obj)lib$(BOARD).a
|
||||
LIB = lib$(BOARD).a
|
||||
|
||||
COBJS = $(BOARD).o flash.o
|
||||
OBJS = $(BOARD).o flash.o
|
||||
|
||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||
OBJS := $(addprefix $(obj),$(COBJS))
|
||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||
|
||||
$(LIB): $(obj).depend $(OBJS)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||
$(LIB): .depend $(OBJS)
|
||||
$(AR) crv $@ $(OBJS)
|
||||
|
||||
#########################################################################
|
||||
|
||||
# defines $(obj).depend target
|
||||
include $(SRCTREE)/rules.mk
|
||||
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
|
||||
$(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
|
||||
|
||||
sinclude $(obj).depend
|
||||
sinclude .depend
|
||||
|
||||
#########################################################################
|
||||
@@ -124,9 +124,9 @@ nfsserverip=192.168.0.1
|
||||
preboot=echo;echo Type "run nfsboot" to mount root filesystem over NFS;echo
|
||||
gatewayip=192.168.0.1
|
||||
ramargs=setenv bootargs root=/dev/ram rw
|
||||
rootargs=setenv rootpath /tftp/${ipaddr}
|
||||
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${nfsserverip}:${rootpath}
|
||||
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${nfsserverip}:${gatewayip}:${netmask}:${hostname}:eth0:
|
||||
rootargs=setenv rootpath /tftp/$(ipaddr)
|
||||
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(nfsserverip):$(rootpath)
|
||||
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(nfsserverip):$(gatewayip):$(netmask):$(hostname):eth0:
|
||||
ramboot=tftp 400000 /home/leox/pMulti;run ramargs;bootm
|
||||
nfsboot=tftp 400000 /home/leox/uImage;run rootargs;run nfsargs;run addip;bootm
|
||||
bootcmd=run ramboot
|
||||
|
||||
+264
-213
@@ -33,7 +33,7 @@
|
||||
/*
|
||||
** Note 1: In this file, you have to provide the following functions:
|
||||
** ------
|
||||
** int board_early_init_f(void)
|
||||
** int board_pre_init(void)
|
||||
** int checkboard(void)
|
||||
** long int initdram(int board_type)
|
||||
** called from 'board_init_f()' into 'common/board.c'
|
||||
@@ -53,87 +53,89 @@ static long int dram_size (long int, long int *, long int);
|
||||
|
||||
#define _NOT_USED_ 0xFFFFFFFF
|
||||
|
||||
const uint init_sdram_table[] = {
|
||||
/*
|
||||
* Single Read. (Offset 0 in UPMA RAM)
|
||||
*/
|
||||
0x0FFCCC04, 0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04,
|
||||
0xFFFFFC04, /* last */
|
||||
/*
|
||||
* SDRAM Initialization (offset 5 in UPMA RAM)
|
||||
*
|
||||
* This is no UPM entry point. The following definition uses
|
||||
* the remaining space to establish an initialization
|
||||
* sequence, which is executed by a RUN command.
|
||||
*
|
||||
*/
|
||||
0xFFFFFC04, 0xFFFFFC04, 0x0FFC3C04, /* last */
|
||||
/*
|
||||
* Burst Read. (Offset 8 in UPMA RAM)
|
||||
*/
|
||||
0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04, /* last */
|
||||
/*
|
||||
* Single Write. (Offset 18 in UPMA RAM)
|
||||
*/
|
||||
0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04, 0x0FFC3C04,
|
||||
0xFFFFFC04, 0xFFFFFC04, 0x0FFFFC04, 0xFFFFFC04, /* last */
|
||||
/*
|
||||
* Burst Write. (Offset 20 in UPMA RAM)
|
||||
*/
|
||||
0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC34, 0x0FAC0C34,
|
||||
0xFFFFFC05, 0xFFFFFC04, 0x0FFCFC04, 0xFFFFFC05, /* last */
|
||||
const uint init_sdram_table[] =
|
||||
{
|
||||
/*
|
||||
* Single Read. (Offset 0 in UPMA RAM)
|
||||
*/
|
||||
0x0FFCCC04, 0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04,
|
||||
0xFFFFFC04, /* last */
|
||||
/*
|
||||
* SDRAM Initialization (offset 5 in UPMA RAM)
|
||||
*
|
||||
* This is no UPM entry point. The following definition uses
|
||||
* the remaining space to establish an initialization
|
||||
* sequence, which is executed by a RUN command.
|
||||
*
|
||||
*/
|
||||
0xFFFFFC04, 0xFFFFFC04, 0x0FFC3C04, /* last */
|
||||
/*
|
||||
* Burst Read. (Offset 8 in UPMA RAM)
|
||||
*/
|
||||
0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04, /* last */
|
||||
/*
|
||||
* Single Write. (Offset 18 in UPMA RAM)
|
||||
*/
|
||||
0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04, 0x0FFC3C04,
|
||||
0xFFFFFC04, 0xFFFFFC04, 0x0FFFFC04, 0xFFFFFC04, /* last */
|
||||
/*
|
||||
* Burst Write. (Offset 20 in UPMA RAM)
|
||||
*/
|
||||
0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC34, 0x0FAC0C34,
|
||||
0xFFFFFC05, 0xFFFFFC04, 0x0FFCFC04, 0xFFFFFC05, /* last */
|
||||
};
|
||||
|
||||
const uint sdram_table[] = {
|
||||
/*
|
||||
* Single Read. (Offset 0 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC04, 0x00AF3C04,
|
||||
0xFF0FFC00, /* last */
|
||||
/*
|
||||
* SDRAM Initialization (offset 5 in UPMA RAM)
|
||||
*
|
||||
* This is no UPM entry point. The following definition uses
|
||||
* the remaining space to establish an initialization
|
||||
* sequence, which is executed by a RUN command.
|
||||
*
|
||||
*/
|
||||
0x0FFCCC04, 0xFFAFFC05, 0xFFAFFC05, /* last */
|
||||
/*
|
||||
* Burst Read. (Offset 8 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC04, 0x00AF3C04,
|
||||
0xF00FFC00, 0xF00FFC00, 0xF00FFC00, 0xFF0FFC00,
|
||||
0x0FFCCC04, 0xFFAFFC05, 0xFFAFFC04, 0xFFAFFC04,
|
||||
0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, /* last */
|
||||
/*
|
||||
* Single Write. (Offset 18 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC04, 0x00AF0C00,
|
||||
0xFF0FFC04, 0x0FFCCC04, 0xFFAFFC05, /* last */
|
||||
_NOT_USED_,
|
||||
/*
|
||||
* Burst Write. (Offset 20 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC00, 0x00AF0C00,
|
||||
0xF00FFC00, 0xF00FFC00, 0xF00FFC04, 0x0FFCCC04,
|
||||
0xFFAFFC04, 0xFFAFFC05, 0xFFAFFC04, 0xFFAFFC04,
|
||||
0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, /* last */
|
||||
/*
|
||||
* Refresh (Offset 30 in UPMA RAM)
|
||||
*/
|
||||
0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC05, 0xFFFFFC04, 0xFFFFFC05, _NOT_USED_,
|
||||
0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, /* last */
|
||||
/*
|
||||
* Exception. (Offset 3c in UPMA RAM)
|
||||
*/
|
||||
0x0FFFFC34, 0x0FAC0C34, 0xFFFFFC05, 0xFFAFFC04, /* last */
|
||||
const uint sdram_table[] =
|
||||
{
|
||||
/*
|
||||
* Single Read. (Offset 0 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC04, 0x00AF3C04,
|
||||
0xFF0FFC00, /* last */
|
||||
/*
|
||||
* SDRAM Initialization (offset 5 in UPMA RAM)
|
||||
*
|
||||
* This is no UPM entry point. The following definition uses
|
||||
* the remaining space to establish an initialization
|
||||
* sequence, which is executed by a RUN command.
|
||||
*
|
||||
*/
|
||||
0x0FFCCC04, 0xFFAFFC05, 0xFFAFFC05, /* last */
|
||||
/*
|
||||
* Burst Read. (Offset 8 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC04, 0x00AF3C04,
|
||||
0xF00FFC00, 0xF00FFC00, 0xF00FFC00, 0xFF0FFC00,
|
||||
0x0FFCCC04, 0xFFAFFC05, 0xFFAFFC04, 0xFFAFFC04,
|
||||
0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, /* last */
|
||||
/*
|
||||
* Single Write. (Offset 18 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC04, 0x00AF0C00,
|
||||
0xFF0FFC04, 0x0FFCCC04, 0xFFAFFC05, /* last */
|
||||
_NOT_USED_,
|
||||
/*
|
||||
* Burst Write. (Offset 20 in UPMA RAM)
|
||||
*/
|
||||
0x0F0FFC24, 0x0F0CFC04, 0xFF0FFC00, 0x00AF0C00,
|
||||
0xF00FFC00, 0xF00FFC00, 0xF00FFC04, 0x0FFCCC04,
|
||||
0xFFAFFC04, 0xFFAFFC05, 0xFFAFFC04, 0xFFAFFC04,
|
||||
0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, /* last */
|
||||
/*
|
||||
* Refresh (Offset 30 in UPMA RAM)
|
||||
*/
|
||||
0x0FFC3C04, 0xFFFFFC04, 0xFFFFFC04, 0xFFFFFC04,
|
||||
0xFFFFFC05, 0xFFFFFC04, 0xFFFFFC05, _NOT_USED_,
|
||||
0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, 0xFFAFFC04, /* last */
|
||||
/*
|
||||
* Exception. (Offset 3c in UPMA RAM)
|
||||
*/
|
||||
0x0FFFFC34, 0x0FAC0C34, 0xFFFFFC05, 0xFFAFFC04, /* last */
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
@@ -145,18 +147,19 @@ const uint sdram_table[] = {
|
||||
/*
|
||||
* Very early board init code (fpga boot, etc.)
|
||||
*/
|
||||
int board_early_init_f (void)
|
||||
int
|
||||
board_pre_init (void)
|
||||
{
|
||||
volatile immap_t *immr = (immap_t *) CFG_IMMR;
|
||||
volatile immap_t *immr = (immap_t *) CFG_IMMR;
|
||||
|
||||
/*
|
||||
* Light up the red led on ELPT860 pcb (DS1) (PCDAT)
|
||||
*/
|
||||
immr->im_ioport.iop_pcdat &= ~CFG_DS1; /* PCDAT (DS1 = 0) */
|
||||
immr->im_ioport.iop_pcpar &= ~CFG_DS1; /* PCPAR (0=general purpose I/O) */
|
||||
immr->im_ioport.iop_pcdir |= CFG_DS1; /* PCDIR (I/O: 0=input, 1=output) */
|
||||
/*
|
||||
* Light up the red led on ELPT860 pcb (DS1) (PCDAT)
|
||||
*/
|
||||
immr->im_ioport.iop_pcdat &= ~CFG_DS1; /* PCDAT (DS1 = 0) */
|
||||
immr->im_ioport.iop_pcpar &= ~CFG_DS1; /* PCPAR (0=general purpose I/O) */
|
||||
immr->im_ioport.iop_pcdir |= CFG_DS1; /* PCDIR (I/O: 0=input, 1=output) */
|
||||
|
||||
return (0); /* success */
|
||||
return ( 0 ); /* success */
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -167,143 +170,150 @@ int board_early_init_f (void)
|
||||
* Return 1 if no second DRAM bank, otherwise returns 0
|
||||
*/
|
||||
|
||||
int checkboard (void)
|
||||
int
|
||||
checkboard (void)
|
||||
{
|
||||
char *s = getenv ("serial#");
|
||||
unsigned char *s = getenv("serial#");
|
||||
|
||||
if (!s || strncmp (s, "ELPT860", 7))
|
||||
printf ("### No HW ID - assuming ELPT860\n");
|
||||
if ( !s || strncmp(s, "ELPT860", 7) )
|
||||
printf ("### No HW ID - assuming ELPT860\n");
|
||||
|
||||
return (0); /* success */
|
||||
return ( 0 ); /* success */
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
long int initdram (int board_type)
|
||||
long int
|
||||
initdram (int board_type)
|
||||
{
|
||||
volatile immap_t *immap = (immap_t *) CFG_IMMR;
|
||||
volatile memctl8xx_t *memctl = &immap->im_memctl;
|
||||
long int size8, size9;
|
||||
long int size_b0 = 0;
|
||||
volatile immap_t *immap = (immap_t *)CFG_IMMR;
|
||||
volatile memctl8xx_t *memctl = &immap->im_memctl;
|
||||
long int size8, size9;
|
||||
long int size_b0 = 0;
|
||||
|
||||
/*
|
||||
* This sequence initializes SDRAM chips on ELPT860 board
|
||||
*/
|
||||
upmconfig (UPMA, (uint *) init_sdram_table,
|
||||
sizeof (init_sdram_table) / sizeof (uint));
|
||||
/*
|
||||
* This sequence initializes SDRAM chips on ELPT860 board
|
||||
*/
|
||||
upmconfig(UPMA, (uint *)init_sdram_table,
|
||||
sizeof(init_sdram_table)/sizeof(uint));
|
||||
|
||||
memctl->memc_mptpr = 0x0200;
|
||||
memctl->memc_mamr = 0x18002111;
|
||||
memctl->memc_mptpr = 0x0200;
|
||||
memctl->memc_mamr = 0x18002111;
|
||||
|
||||
memctl->memc_mar = 0x00000088;
|
||||
memctl->memc_mcr = 0x80002000; /* CS1: SDRAM bank 0 */
|
||||
memctl->memc_mar = 0x00000088;
|
||||
memctl->memc_mcr = 0x80002000; /* CS1: SDRAM bank 0 */
|
||||
|
||||
upmconfig (UPMA, (uint *) sdram_table,
|
||||
sizeof (sdram_table) / sizeof (uint));
|
||||
upmconfig(UPMA, (uint *)sdram_table,
|
||||
sizeof(sdram_table)/sizeof(uint));
|
||||
|
||||
/*
|
||||
* Preliminary prescaler for refresh (depends on number of
|
||||
* banks): This value is selected for four cycles every 62.4 us
|
||||
* with two SDRAM banks or four cycles every 31.2 us with one
|
||||
* bank. It will be adjusted after memory sizing.
|
||||
*/
|
||||
memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
|
||||
/*
|
||||
* Preliminary prescaler for refresh (depends on number of
|
||||
* banks): This value is selected for four cycles every 62.4 us
|
||||
* with two SDRAM banks or four cycles every 31.2 us with one
|
||||
* bank. It will be adjusted after memory sizing.
|
||||
*/
|
||||
memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
|
||||
|
||||
/*
|
||||
* The following value is used as an address (i.e. opcode) for
|
||||
* the LOAD MODE REGISTER COMMAND during SDRAM initialisation. If
|
||||
* the port size is 32bit the SDRAM does NOT "see" the lower two
|
||||
* address lines, i.e. mar=0x00000088 -> opcode=0x00000022 for
|
||||
* MICRON SDRAMs:
|
||||
* -> 0 00 010 0 010
|
||||
* | | | | +- Burst Length = 4
|
||||
* | | | +----- Burst Type = Sequential
|
||||
* | | +------- CAS Latency = 2
|
||||
* | +----------- Operating Mode = Standard
|
||||
* +-------------- Write Burst Mode = Programmed Burst Length
|
||||
*/
|
||||
memctl->memc_mar = 0x00000088;
|
||||
/*
|
||||
* The following value is used as an address (i.e. opcode) for
|
||||
* the LOAD MODE REGISTER COMMAND during SDRAM initialisation. If
|
||||
* the port size is 32bit the SDRAM does NOT "see" the lower two
|
||||
* address lines, i.e. mar=0x00000088 -> opcode=0x00000022 for
|
||||
* MICRON SDRAMs:
|
||||
* -> 0 00 010 0 010
|
||||
* | | | | +- Burst Length = 4
|
||||
* | | | +----- Burst Type = Sequential
|
||||
* | | +------- CAS Latency = 2
|
||||
* | +----------- Operating Mode = Standard
|
||||
* +-------------- Write Burst Mode = Programmed Burst Length
|
||||
*/
|
||||
memctl->memc_mar = 0x00000088;
|
||||
|
||||
/*
|
||||
* Map controller banks 2 and 3 to the SDRAM banks 2 and 3 at
|
||||
* preliminary addresses - these have to be modified after the
|
||||
* SDRAM size has been determined.
|
||||
*/
|
||||
memctl->memc_or1 = CFG_OR1_PRELIM;
|
||||
memctl->memc_br1 = CFG_BR1_PRELIM;
|
||||
/*
|
||||
* Map controller banks 2 and 3 to the SDRAM banks 2 and 3 at
|
||||
* preliminary addresses - these have to be modified after the
|
||||
* SDRAM size has been determined.
|
||||
*/
|
||||
memctl->memc_or1 = CFG_OR1_PRELIM;
|
||||
memctl->memc_br1 = CFG_BR1_PRELIM;
|
||||
|
||||
memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE)); /* no refresh yet */
|
||||
memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE)); /* no refresh yet */
|
||||
|
||||
udelay (200);
|
||||
udelay (200);
|
||||
|
||||
/* perform SDRAM initializsation sequence */
|
||||
/* perform SDRAM initializsation sequence */
|
||||
|
||||
memctl->memc_mcr = 0x80002105; /* CS1: SDRAM bank 0 */
|
||||
udelay (1);
|
||||
memctl->memc_mcr = 0x80002230; /* CS1: SDRAM bank 0 - execute twice */
|
||||
udelay (1);
|
||||
memctl->memc_mcr = 0x80002105; /* CS1: SDRAM bank 0 */
|
||||
udelay (1);
|
||||
memctl->memc_mcr = 0x80002230; /* CS1: SDRAM bank 0 - execute twice */
|
||||
udelay (1);
|
||||
|
||||
memctl->memc_mamr |= MAMR_PTAE; /* enable refresh */
|
||||
memctl->memc_mamr |= MAMR_PTAE; /* enable refresh */
|
||||
|
||||
udelay (1000);
|
||||
|
||||
/*
|
||||
* Check Bank 0 Memory Size for re-configuration
|
||||
*
|
||||
* try 8 column mode
|
||||
*/
|
||||
size8 = dram_size (CFG_MAMR_8COL,
|
||||
(ulong *) SDRAM_BASE1_PRELIM,
|
||||
SDRAM_MAX_SIZE);
|
||||
|
||||
udelay (1000);
|
||||
|
||||
/*
|
||||
* try 9 column mode
|
||||
*/
|
||||
size9 = dram_size (CFG_MAMR_9COL,
|
||||
(ulong *) SDRAM_BASE1_PRELIM,
|
||||
SDRAM_MAX_SIZE);
|
||||
|
||||
if ( size8 < size9 ) /* leave configuration at 9 columns */
|
||||
{
|
||||
size_b0 = size9;
|
||||
/* debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20); */
|
||||
}
|
||||
else /* back to 8 columns */
|
||||
{
|
||||
size_b0 = size8;
|
||||
memctl->memc_mamr = CFG_MAMR_8COL;
|
||||
udelay (500);
|
||||
/* debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20); */
|
||||
}
|
||||
|
||||
udelay (1000);
|
||||
|
||||
/*
|
||||
* Adjust refresh rate depending on SDRAM type, both banks
|
||||
* For types > 128 MBit leave it at the current (fast) rate
|
||||
*/
|
||||
if ( size_b0 < 0x02000000 )
|
||||
{
|
||||
/* reduce to 15.6 us (62.4 us / quad) */
|
||||
memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
|
||||
udelay (1000);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check Bank 0 Memory Size for re-configuration
|
||||
*
|
||||
* try 8 column mode
|
||||
*/
|
||||
size8 = dram_size (CFG_MAMR_8COL,
|
||||
SDRAM_BASE1_PRELIM, SDRAM_MAX_SIZE);
|
||||
/*
|
||||
* Final mapping: map bigger bank first
|
||||
*/
|
||||
memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
|
||||
memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
|
||||
|
||||
udelay (1000);
|
||||
{
|
||||
unsigned long reg;
|
||||
|
||||
/*
|
||||
* try 9 column mode
|
||||
*/
|
||||
size9 = dram_size (CFG_MAMR_9COL,
|
||||
SDRAM_BASE1_PRELIM, SDRAM_MAX_SIZE);
|
||||
/* adjust refresh rate depending on SDRAM type, one bank */
|
||||
reg = memctl->memc_mptpr;
|
||||
reg >>= 1; /* reduce to CFG_MPTPR_1BK_8K / _4K */
|
||||
memctl->memc_mptpr = reg;
|
||||
}
|
||||
|
||||
if (size8 < size9) { /* leave configuration at 9 columns */
|
||||
size_b0 = size9;
|
||||
/* debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20); */
|
||||
} else { /* back to 8 columns */
|
||||
udelay(10000);
|
||||
|
||||
size_b0 = size8;
|
||||
memctl->memc_mamr = CFG_MAMR_8COL;
|
||||
udelay (500);
|
||||
/* debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20); */
|
||||
}
|
||||
|
||||
udelay (1000);
|
||||
|
||||
/*
|
||||
* Adjust refresh rate depending on SDRAM type, both banks
|
||||
* For types > 128 MBit leave it at the current (fast) rate
|
||||
*/
|
||||
if (size_b0 < 0x02000000) {
|
||||
/* reduce to 15.6 us (62.4 us / quad) */
|
||||
memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
|
||||
udelay (1000);
|
||||
}
|
||||
|
||||
/*
|
||||
* Final mapping: map bigger bank first
|
||||
*/
|
||||
memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
|
||||
memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
|
||||
|
||||
{
|
||||
unsigned long reg;
|
||||
|
||||
/* adjust refresh rate depending on SDRAM type, one bank */
|
||||
reg = memctl->memc_mptpr;
|
||||
reg >>= 1; /* reduce to CFG_MPTPR_1BK_8K / _4K */
|
||||
memctl->memc_mptpr = reg;
|
||||
}
|
||||
|
||||
udelay (10000);
|
||||
|
||||
return (size_b0);
|
||||
return (size_b0);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
@@ -317,14 +327,54 @@ long int initdram (int board_type)
|
||||
*/
|
||||
|
||||
static long int
|
||||
dram_size (long int mamr_value, long int *base, long int maxsize)
|
||||
dram_size (long int mamr_value,
|
||||
long int *base,
|
||||
long int maxsize)
|
||||
{
|
||||
volatile immap_t *immap = (immap_t *) CFG_IMMR;
|
||||
volatile memctl8xx_t *memctl = &immap->im_memctl;
|
||||
volatile immap_t *immap = (immap_t *)CFG_IMMR;
|
||||
volatile memctl8xx_t *memctl = &immap->im_memctl;
|
||||
volatile long int *addr;
|
||||
ulong cnt, val;
|
||||
ulong save[32]; /* to make test non-destructive */
|
||||
unsigned char i = 0;
|
||||
|
||||
memctl->memc_mamr = mamr_value;
|
||||
memctl->memc_mamr = mamr_value;
|
||||
|
||||
return (get_ram_size (base, maxsize));
|
||||
for (cnt = maxsize/sizeof(long); cnt > 0; cnt >>= 1)
|
||||
{
|
||||
addr = base + cnt; /* pointer arith! */
|
||||
|
||||
save[i++] = *addr;
|
||||
*addr = ~cnt;
|
||||
}
|
||||
|
||||
/* write 0 to base address */
|
||||
addr = base;
|
||||
save[i] = *addr;
|
||||
*addr = 0;
|
||||
|
||||
/* check at base address */
|
||||
if ( (val = *addr) != 0 )
|
||||
{
|
||||
*addr = save[i];
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
for (cnt = 1; cnt <= maxsize/sizeof(long); cnt <<= 1)
|
||||
{
|
||||
addr = base + cnt; /* pointer arith! */
|
||||
|
||||
val = *addr;
|
||||
*addr = save[--i];
|
||||
|
||||
if ( val != (~cnt) )
|
||||
{
|
||||
return (cnt * sizeof(long));
|
||||
}
|
||||
}
|
||||
|
||||
return (maxsize);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
@@ -334,15 +384,16 @@ dram_size (long int mamr_value, long int *base, long int maxsize)
|
||||
|
||||
#define CFG_LBKs (CFG_PA2 | CFG_PA1)
|
||||
|
||||
void reset_phy (void)
|
||||
void
|
||||
reset_phy (void)
|
||||
{
|
||||
volatile immap_t *immr = (immap_t *) CFG_IMMR;
|
||||
volatile immap_t *immr = (immap_t *) CFG_IMMR;
|
||||
|
||||
/*
|
||||
* Ensure LBK LXT901 ethernet 1 & 2 = 0 ... for normal loopback in effect
|
||||
* and no AUI loopback
|
||||
*/
|
||||
immr->im_ioport.iop_padat &= ~CFG_LBKs; /* PADAT (LBK eth 1&2 = 0) */
|
||||
immr->im_ioport.iop_papar &= ~CFG_LBKs; /* PAPAR (0=general purpose I/O) */
|
||||
immr->im_ioport.iop_padir |= CFG_LBKs; /* PADIR (I/O: 0=input, 1=output) */
|
||||
/*
|
||||
* Ensure LBK LXT901 ethernet 1 & 2 = 0 ... for normal loopback in effect
|
||||
* and no AUI loopback
|
||||
*/
|
||||
immr->im_ioport.iop_padat &= ~CFG_LBKs; /* PADAT (LBK eth 1&2 = 0) */
|
||||
immr->im_ioport.iop_papar &= ~CFG_LBKs; /* PAPAR (0=general purpose I/O) */
|
||||
immr->im_ioport.iop_padir |= CFG_LBKs; /* PADIR (I/O: 0=input, 1=output) */
|
||||
}
|
||||
@@ -43,11 +43,11 @@ SECTIONS
|
||||
.dynsym : { *(.dynsym) }
|
||||
.dynstr : { *(.dynstr) }
|
||||
.rel.text : { *(.rel.text) }
|
||||
.rela.text : { *(.rela.text) }
|
||||
.rela.text : { *(.rela.text) }
|
||||
.rel.data : { *(.rel.data) }
|
||||
.rela.data : { *(.rela.data) }
|
||||
.rel.rodata : { *(.rel.rodata) }
|
||||
.rela.rodata : { *(.rela.rodata) }
|
||||
.rela.data : { *(.rela.data) }
|
||||
.rel.rodata : { *(.rel.rodata) }
|
||||
.rela.rodata : { *(.rela.rodata) }
|
||||
.rel.got : { *(.rel.got) }
|
||||
.rela.got : { *(.rela.got) }
|
||||
.rel.ctors : { *(.rel.ctors) }
|
||||
@@ -91,7 +91,6 @@ SECTIONS
|
||||
*(.rodata)
|
||||
*(.rodata1)
|
||||
*(.rodata.str1.4)
|
||||
*(.eh_frame)
|
||||
}
|
||||
.fini : { *(.fini) } =0
|
||||
.ctors : { *(.ctors) }
|
||||
@@ -124,12 +123,10 @@ SECTIONS
|
||||
_edata = .;
|
||||
PROVIDE (edata = .);
|
||||
|
||||
. = .;
|
||||
__u_boot_cmd_start = .;
|
||||
.u_boot_cmd : { *(.u_boot_cmd) }
|
||||
__u_boot_cmd_end = .;
|
||||
|
||||
. = .;
|
||||
__start___ex_table = .;
|
||||
__ex_table : { *(__ex_table) }
|
||||
__stop___ex_table = .;
|
||||
|
||||
@@ -43,11 +43,11 @@ SECTIONS
|
||||
.dynsym : { *(.dynsym) }
|
||||
.dynstr : { *(.dynstr) }
|
||||
.rel.text : { *(.rel.text) }
|
||||
.rela.text : { *(.rela.text) }
|
||||
.rela.text : { *(.rela.text) }
|
||||
.rel.data : { *(.rel.data) }
|
||||
.rela.data : { *(.rela.data) }
|
||||
.rel.rodata : { *(.rel.rodata) }
|
||||
.rela.rodata : { *(.rela.rodata) }
|
||||
.rela.data : { *(.rela.data) }
|
||||
.rel.rodata : { *(.rel.rodata) }
|
||||
.rela.rodata : { *(.rela.rodata) }
|
||||
.rel.got : { *(.rel.got) }
|
||||
.rela.got : { *(.rela.got) }
|
||||
.rel.ctors : { *(.rel.ctors) }
|
||||
@@ -83,8 +83,6 @@ SECTIONS
|
||||
{
|
||||
*(.rodata)
|
||||
*(.rodata1)
|
||||
*(.rodata.str1.4)
|
||||
*(.eh_frame)
|
||||
}
|
||||
.fini : { *(.fini) } =0
|
||||
.ctors : { *(.ctors) }
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* (C) Copyright 2002
|
||||
* Hyperion Entertainment, ThomasF@hyperion-entertainment.com
|
||||
* (C) Copyright 2006
|
||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
@@ -30,49 +29,49 @@
|
||||
#include "memio.h"
|
||||
#include "via686.h"
|
||||
|
||||
__asm__(" .globl send_kb \n "
|
||||
"send_kb: \n "
|
||||
" lis r9, 0xfe00 \n "
|
||||
" \n "
|
||||
" li r4, 0x10 # retries \n "
|
||||
" mtctr r4 \n "
|
||||
" \n "
|
||||
"idle: \n "
|
||||
" lbz r4, 0x64(r9) \n "
|
||||
" andi. r4, r4, 0x02 \n "
|
||||
" bne idle \n "
|
||||
|
||||
"ready: \n "
|
||||
" stb r3, 0x60(r9) \n "
|
||||
" \n "
|
||||
"check: \n "
|
||||
" lbz r4, 0x64(r9) \n "
|
||||
" andi. r4, r4, 0x01 \n "
|
||||
" beq check \n "
|
||||
" \n "
|
||||
" lbz r4, 0x60(r9) \n "
|
||||
" cmpwi r4, 0xfa \n "
|
||||
" beq done \n "
|
||||
|
||||
" bdnz idle \n "
|
||||
|
||||
" li r3, 0 \n "
|
||||
" blr \n "
|
||||
|
||||
"done: \n "
|
||||
" li r3, 1 \n "
|
||||
" blr \n "
|
||||
|
||||
".globl test_kb \n "
|
||||
"test_kb: \n "
|
||||
" mflr r10 \n "
|
||||
" li r3, 0xed \n "
|
||||
" bl send_kb \n "
|
||||
" li r3, 0x01 \n "
|
||||
" bl send_kb \n "
|
||||
" mtlr r10 \n "
|
||||
" blr "
|
||||
);
|
||||
__asm(" .globl send_kb \n
|
||||
send_kb: \n
|
||||
lis r9, 0xfe00 \n
|
||||
\n
|
||||
li r4, 0x10 # retries \n
|
||||
mtctr r4 \n
|
||||
\n
|
||||
idle: \n
|
||||
lbz r4, 0x64(r9) \n
|
||||
andi. r4, r4, 0x02 \n
|
||||
bne idle \n
|
||||
\n
|
||||
ready: \n
|
||||
stb r3, 0x60(r9) \n
|
||||
\n
|
||||
check: \n
|
||||
lbz r4, 0x64(r9) \n
|
||||
andi. r4, r4, 0x01 \n
|
||||
beq check \n
|
||||
\n
|
||||
lbz r4, 0x60(r9) \n
|
||||
cmpwi r4, 0xfa \n
|
||||
beq done \n
|
||||
\n
|
||||
bdnz idle \n
|
||||
\n
|
||||
li r3, 0 \n
|
||||
blr \n
|
||||
\n
|
||||
done: \n
|
||||
li r3, 1 \n
|
||||
blr \n
|
||||
\n
|
||||
.globl test_kb \n
|
||||
test_kb: \n
|
||||
mflr r10 \n
|
||||
li r3, 0xed \n
|
||||
bl send_kb \n
|
||||
li r3, 0x01 \n
|
||||
bl send_kb \n
|
||||
mtlr r10 \n
|
||||
blr \n
|
||||
");
|
||||
|
||||
|
||||
int checkboard (void)
|
||||
@@ -89,6 +88,8 @@ long initdram (int board_type)
|
||||
|
||||
void after_reloc (ulong dest_addr, gd_t *gd)
|
||||
{
|
||||
/* HJF: DECLARE_GLOBAL_DATA_PTR; */
|
||||
|
||||
board_init_r (gd, dest_addr);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# (C) Copyright 2002-2006
|
||||
# (C) Copyright 2002
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# See file CREDITS for list of people who contributed to this
|
||||
@@ -22,42 +22,35 @@
|
||||
#
|
||||
|
||||
include $(TOPDIR)/config.mk
|
||||
ifneq ($(OBJTREE),$(SRCTREE))
|
||||
$(shell mkdir -p $(obj)../menu)
|
||||
$(shell mkdir -p $(obj)../bios_emulator)
|
||||
endif
|
||||
|
||||
LIB = $(obj)lib$(BOARD).a
|
||||
LIB = lib$(BOARD).a
|
||||
|
||||
COBJS = $(BOARD).o articiaS.o flash.o serial.o smbus.o articiaS_pci.o \
|
||||
via686.o i8259.o ../bios_emulator/x86interface.o \
|
||||
via686.o i8259.o ../bios_emulator/x86interface.o \
|
||||
../bios_emulator/bios.o ../bios_emulator/glue.o \
|
||||
interrupts.o ps2kbd.o video.o usb_uhci.o enet.o \
|
||||
../menu/cmd_menu.o cmd_boota.o nvram.o
|
||||
|
||||
SOBJS = board_asm_init.o memio.o
|
||||
AOBJS = board_asm_init.o memio.o
|
||||
|
||||
OBJS = $(COBJS) $(AOBJS)
|
||||
|
||||
EMUDIR = ../bios_emulator/scitech/src/x86emu/
|
||||
EMUOBJ = $(EMUDIR)decode.o $(EMUDIR)ops2.o $(EMUDIR)fpu.o $(EMUDIR)prim_ops.o \
|
||||
$(EMUDIR)ops.o $(EMUDIR)sys.o
|
||||
EMUSRC = $(EMUOBJ:.o=.c)
|
||||
EMUSRC = $(EMUOBJ:.o=.c)
|
||||
|
||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||
OBJS := $(addprefix $(obj),$(COBJS))
|
||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||
EMUOBJ := $(addprefix $(obj),$(EMUOBJ))
|
||||
|
||||
$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(EMUSRC)
|
||||
make $(obj)libx86emu.a -C ../bios_emulator/scitech/src/x86emu -f makefile.uboot CROSS_COMPILE=$(CROSS_COMPILE)
|
||||
$(LIB): .depend $(OBJS) $(EMUSRC)
|
||||
make libx86emu.a -C ../bios_emulator/scitech/src/x86emu -f makefile.uboot CROSS_COMPILE=$(CROSS_COMPILE)
|
||||
-rm $(LIB)
|
||||
$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) $(EMUOBJ)
|
||||
$(AR) crv $@ $(OBJS) $(EMUOBJ)
|
||||
|
||||
|
||||
#########################################################################
|
||||
|
||||
# defines $(obj).depend target
|
||||
include $(SRCTREE)/rules.mk
|
||||
.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
|
||||
$(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
|
||||
|
||||
sinclude $(obj).depend
|
||||
sinclude .depend
|
||||
|
||||
#########################################################################
|
||||
@@ -29,8 +29,6 @@
|
||||
#include "smbus.h"
|
||||
#include "via686.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#undef DEBUG
|
||||
|
||||
struct dimm_bank {
|
||||
@@ -84,6 +82,7 @@ static inline unsigned short NSto10PS (unsigned char spd_byte)
|
||||
|
||||
long detect_sdram (uint8 * rom, int dimmNum, struct dimm_bank *banks)
|
||||
{
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
int dimm_address = (dimmNum == 0) ? SM_DIMM0_ADDR : SM_DIMM1_ADDR;
|
||||
uint32 busclock = gd->bus_clk;
|
||||
uint32 memclock = busclock;
|
||||
@@ -395,6 +394,8 @@ uint32 burst_to_len (uint32 support)
|
||||
|
||||
long articiaS_ram_init (void)
|
||||
{
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
register uint32 i;
|
||||
register uint32 value1;
|
||||
register uint32 value2;
|
||||
@@ -674,7 +675,7 @@ static __inline__ void set_msr (unsigned long msr)
|
||||
asm volatile ("mtmsr %0"::"r" (msr));
|
||||
}
|
||||
|
||||
int board_early_init_f (void)
|
||||
int board_pre_init (void)
|
||||
{
|
||||
unsigned char c_value = 0;
|
||||
unsigned long msr;
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
#include "memio.h"
|
||||
#include "articiaS.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#undef ARTICIA_PCI_DEBUG
|
||||
|
||||
#ifdef ARTICIA_PCI_DEBUG
|
||||
@@ -368,11 +366,11 @@ void articiaS_pci_init (void)
|
||||
if (articiaS_init_vga() == -1)
|
||||
{
|
||||
/* If the VGA didn't init and we have stdout set to VGA, reset to serial */
|
||||
/* s = getenv("stdout"); */
|
||||
/* if (s && strcmp(s, "vga") == 0) */
|
||||
/* { */
|
||||
/* setenv("stdout", "serial"); */
|
||||
/* } */
|
||||
/* s = getenv("stdout"); */
|
||||
/* if (s && strcmp(s, "vga") == 0) */
|
||||
/* { */
|
||||
/* setenv("stdout", "serial"); */
|
||||
/* } */
|
||||
}
|
||||
}
|
||||
pci_write_config_byte(PCI_BDF(0,1,0), PCI_INTERRUPT_LINE, 0xFF);
|
||||
@@ -495,6 +493,8 @@ pci_dev_t video_dev;
|
||||
|
||||
int articiaS_init_vga (void)
|
||||
{
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
extern void shutdown_bios(void);
|
||||
pci_dev_t dev = ~0;
|
||||
int busnr = 0;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "../disk/part_amiga.h"
|
||||
#include <asm/cache.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#undef BOOTA_DEBUG
|
||||
|
||||
@@ -109,6 +108,8 @@ int do_boota (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
||||
|
||||
s = getenv ("autostart");
|
||||
if (s && strcmp (s, "yes") == 0) {
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
void (*boot) (bd_t *, char *, block_dev_desc_t *);
|
||||
char *args;
|
||||
|
||||
@@ -119,9 +120,9 @@ int do_boota (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
||||
|
||||
return 0;
|
||||
}
|
||||
#if defined(CONFIG_AMIGAONEG3SE) && defined(CONFIG_CMD_BSP)
|
||||
U_BOOT_CMD(
|
||||
boota, 3, 1, do_boota,
|
||||
#if defined(CONFIG_AMIGAONEG3SE) && (CONFIG_COMMANDS & CFG_CMD_BSP)
|
||||
cmd_tbl_t U_BOOT_CMD(BOOTA) = MK_CMD_ENTRY(
|
||||
"boota", 3, 1, do_boota,
|
||||
"boota - boot an Amiga kernel\n",
|
||||
"address disk"
|
||||
);
|
||||
|
||||
@@ -41,57 +41,57 @@
|
||||
|
||||
/* 3Com Commands, top 5 bits are command and bottom 11 bits are parameters */
|
||||
|
||||
#define TotalReset (0<<11)
|
||||
#define SelectWindow (1<<11)
|
||||
#define StartCoax (2<<11)
|
||||
#define RxDisable (3<<11)
|
||||
#define RxEnable (4<<11)
|
||||
#define RxReset (5<<11)
|
||||
#define UpStall (6<<11)
|
||||
#define UpUnstall (6<<11)+1
|
||||
#define DownStall (6<<11)+2
|
||||
#define DownUnstall (6<<11)+3
|
||||
#define RxDiscard (8<<11)
|
||||
#define TxEnable (9<<11)
|
||||
#define TxDisable (10<<11)
|
||||
#define TxReset (11<<11)
|
||||
#define FakeIntr (12<<11)
|
||||
#define AckIntr (13<<11)
|
||||
#define SetIntrEnb (14<<11)
|
||||
#define SetStatusEnb (15<<11)
|
||||
#define SetRxFilter (16<<11)
|
||||
#define SetRxThreshold (17<<11)
|
||||
#define SetTxThreshold (18<<11)
|
||||
#define SetTxStart (19<<11)
|
||||
#define StartDMAUp (20<<11)
|
||||
#define StartDMADown (20<<11)+1
|
||||
#define TotalReset (0<<11)
|
||||
#define SelectWindow (1<<11)
|
||||
#define StartCoax (2<<11)
|
||||
#define RxDisable (3<<11)
|
||||
#define RxEnable (4<<11)
|
||||
#define RxReset (5<<11)
|
||||
#define UpStall (6<<11)
|
||||
#define UpUnstall (6<<11)+1
|
||||
#define DownStall (6<<11)+2
|
||||
#define DownUnstall (6<<11)+3
|
||||
#define RxDiscard (8<<11)
|
||||
#define TxEnable (9<<11)
|
||||
#define TxDisable (10<<11)
|
||||
#define TxReset (11<<11)
|
||||
#define FakeIntr (12<<11)
|
||||
#define AckIntr (13<<11)
|
||||
#define SetIntrEnb (14<<11)
|
||||
#define SetStatusEnb (15<<11)
|
||||
#define SetRxFilter (16<<11)
|
||||
#define SetRxThreshold (17<<11)
|
||||
#define SetTxThreshold (18<<11)
|
||||
#define SetTxStart (19<<11)
|
||||
#define StartDMAUp (20<<11)
|
||||
#define StartDMADown (20<<11)+1
|
||||
#define StatsEnable (21<<11)
|
||||
#define StatsDisable (22<<11)
|
||||
#define StopCoax (23<<11)
|
||||
#define SetFilterBit (25<<11)
|
||||
#define StopCoax (23<<11)
|
||||
#define SetFilterBit (25<<11)
|
||||
|
||||
/* The SetRxFilter command accepts the following classes */
|
||||
|
||||
#define RxStation 1
|
||||
#define RxStation 1
|
||||
#define RxMulticast 2
|
||||
#define RxBroadcast 4
|
||||
#define RxProm 8
|
||||
#define RxProm 8
|
||||
|
||||
/* 3Com status word defnitions */
|
||||
|
||||
#define IntLatch 0x0001
|
||||
#define HostError 0x0002
|
||||
#define TxComplete 0x0004
|
||||
#define TxAvailable 0x0008
|
||||
#define RxComplete 0x0010
|
||||
#define RxEarly 0x0020
|
||||
#define IntReq 0x0040
|
||||
#define StatsFull 0x0080
|
||||
#define DMADone (1<<8)
|
||||
#define DownComplete (1<<9)
|
||||
#define UpComplete (1<<10)
|
||||
#define DMAInProgress (1<<11) /* DMA controller is still busy.*/
|
||||
#define CmdInProgress (1<<12) /* EL3_CMD is still busy.*/
|
||||
#define IntLatch 0x0001
|
||||
#define HostError 0x0002
|
||||
#define TxComplete 0x0004
|
||||
#define TxAvailable 0x0008
|
||||
#define RxComplete 0x0010
|
||||
#define RxEarly 0x0020
|
||||
#define IntReq 0x0040
|
||||
#define StatsFull 0x0080
|
||||
#define DMADone (1<<8)
|
||||
#define DownComplete (1<<9)
|
||||
#define UpComplete (1<<10)
|
||||
#define DMAInProgress (1<<11) /* DMA controller is still busy.*/
|
||||
#define CmdInProgress (1<<12) /* EL3_CMD is still busy.*/
|
||||
|
||||
/* Polling Registers */
|
||||
|
||||
@@ -100,17 +100,17 @@
|
||||
|
||||
/* Register window 0 offets */
|
||||
|
||||
#define Wn0EepromCmd 10 /* Window 0: EEPROM command register. */
|
||||
#define Wn0EepromData 12 /* Window 0: EEPROM results register. */
|
||||
#define Wn0EepromCmd 10 /* Window 0: EEPROM command register. */
|
||||
#define Wn0EepromData 12 /* Window 0: EEPROM results register. */
|
||||
#define IntrStatus 0x0E /* Valid in all windows. */
|
||||
|
||||
/* Register window 0 EEPROM bits */
|
||||
|
||||
#define EEPROM_Read 0x80
|
||||
#define EEPROM_WRITE 0x40
|
||||
#define EEPROM_ERASE 0xC0
|
||||
#define EEPROM_EWENB 0x30 /* Enable erasing/writing for 10 msec. */
|
||||
#define EEPROM_EWDIS 0x00 /* Disable EWENB before 10 msec timeout. */
|
||||
#define EEPROM_Read 0x80
|
||||
#define EEPROM_WRITE 0x40
|
||||
#define EEPROM_ERASE 0xC0
|
||||
#define EEPROM_EWENB 0x30 /* Enable erasing/writing for 10 msec. */
|
||||
#define EEPROM_EWDIS 0x00 /* Disable EWENB before 10 msec timeout. */
|
||||
|
||||
/* EEPROM locations. */
|
||||
|
||||
@@ -129,13 +129,13 @@
|
||||
|
||||
/* Register window 1 offsets, the window used in normal operation */
|
||||
|
||||
#define TX_FIFO 0x10
|
||||
#define RX_FIFOa 0x10
|
||||
#define RxErrors 0x14
|
||||
#define RxStatus 0x18
|
||||
#define TX_FIFO 0x10
|
||||
#define RX_FIFO 0x10
|
||||
#define RxErrors 0x14
|
||||
#define RxStatus 0x18
|
||||
#define Timer 0x1A
|
||||
#define TxStatus 0x1B
|
||||
#define TxFree 0x1C /* Remaining free bytes in Tx buffer. */
|
||||
#define TxStatus 0x1B
|
||||
#define TxFree 0x1C /* Remaining free bytes in Tx buffer. */
|
||||
|
||||
/* Register Window 2 */
|
||||
|
||||
@@ -147,47 +147,47 @@
|
||||
#define Wn3_MAC_Ctrl 6
|
||||
#define Wn3_Options 8
|
||||
|
||||
#define BFEXT(value, offset, bitcount) \
|
||||
#define BFEXT(value, offset, bitcount) \
|
||||
((((unsigned long)(value)) >> (offset)) & ((1 << (bitcount)) - 1))
|
||||
|
||||
#define BFINS(lhs, rhs, offset, bitcount) \
|
||||
(((lhs) & ~((((1 << (bitcount)) - 1)) << (offset))) | \
|
||||
(((lhs) & ~((((1 << (bitcount)) - 1)) << (offset))) | \
|
||||
(((rhs) & ((1 << (bitcount)) - 1)) << (offset)))
|
||||
|
||||
#define RAM_SIZE(v) BFEXT(v, 0, 3)
|
||||
#define RAM_WIDTH(v) BFEXT(v, 3, 1)
|
||||
#define RAM_SPEED(v) BFEXT(v, 4, 2)
|
||||
#define RAM_WIDTH(v) BFEXT(v, 3, 1)
|
||||
#define RAM_SPEED(v) BFEXT(v, 4, 2)
|
||||
#define ROM_SIZE(v) BFEXT(v, 6, 2)
|
||||
#define RAM_SPLIT(v) BFEXT(v, 16, 2)
|
||||
#define RAM_SPLIT(v) BFEXT(v, 16, 2)
|
||||
#define XCVR(v) BFEXT(v, 20, 4)
|
||||
#define AUTOSELECT(v) BFEXT(v, 24, 1)
|
||||
#define AUTOSELECT(v) BFEXT(v, 24, 1)
|
||||
|
||||
/* Register Window 4: Xcvr/media bits */
|
||||
|
||||
#define Wn4_FIFODiag 4
|
||||
#define Wn4_NetDiag 6
|
||||
#define Wn4_FIFODiag 4
|
||||
#define Wn4_NetDiag 6
|
||||
#define Wn4_PhysicalMgmt 8
|
||||
#define Wn4_Media 10
|
||||
#define Wn4_Media 10
|
||||
|
||||
#define Media_SQE 0x0008 /* Enable SQE error counting for AUI. */
|
||||
#define Media_10TP 0x00C0 /* Enable link beat and jabber for 10baseT. */
|
||||
#define Media_Lnk 0x0080 /* Enable just link beat for 100TX/100FX. */
|
||||
#define Media_LnkBeat 0x0800
|
||||
#define Media_SQE 0x0008 /* Enable SQE error counting for AUI. */
|
||||
#define Media_10TP 0x00C0 /* Enable link beat and jabber for 10baseT. */
|
||||
#define Media_Lnk 0x0080 /* Enable just link beat for 100TX/100FX. */
|
||||
#define Media_LnkBeat 0x0800
|
||||
|
||||
/* Register Window 7: Bus Master control */
|
||||
|
||||
#define Wn7_MasterAddr 0
|
||||
#define Wn7_MasterLen 6
|
||||
#define Wn7_MasterStatus 12
|
||||
#define Wn7_MasterAddr 0
|
||||
#define Wn7_MasterLen 6
|
||||
#define Wn7_MasterStatus 12
|
||||
|
||||
/* Boomerang bus master control registers. */
|
||||
|
||||
#define PktStatus 0x20
|
||||
#define PktStatus 0x20
|
||||
#define DownListPtr 0x24
|
||||
#define FragAddr 0x28
|
||||
#define FragLen 0x2c
|
||||
#define FragAddr 0x28
|
||||
#define FragLen 0x2c
|
||||
#define TxFreeThreshold 0x2f
|
||||
#define UpPktStatus 0x30
|
||||
#define UpPktStatus 0x30
|
||||
#define UpListPtr 0x38
|
||||
|
||||
/* The Rx and Tx descriptor lists. */
|
||||
|
||||
@@ -656,7 +656,7 @@ char * kbd_initialize(void)
|
||||
| KBD_MODE_DISABLE_MOUSE
|
||||
| KBD_MODE_KCC);
|
||||
|
||||
/* AMCC powerpc portables need this to use scan-code set 1 -- Cort */
|
||||
/* ibm powerpc portables need this to use scan-code set 1 -- Cort */
|
||||
kbd_write_command_w(KBD_CCMD_READ_MODE);
|
||||
if (!(kbd_wait_for_input() & KBD_MODE_KCC)) {
|
||||
/*
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include "memio.h"
|
||||
#include "articiaS.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#ifndef CFG_NS16550
|
||||
static uint32 ComPort1;
|
||||
|
||||
@@ -152,6 +150,8 @@ const NS16550_t Com1 = (NS16550_t) CFG_NS16550_COM2;
|
||||
|
||||
int serial_init (void)
|
||||
{
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
uint32 clock_divisor = 115200 / gd->baudrate;
|
||||
|
||||
NS16550_init (Com0, clock_divisor);
|
||||
@@ -239,6 +239,8 @@ void serial_puts (const char *string)
|
||||
|
||||
void serial_setbrg (void)
|
||||
{
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
uint32 clock_divisor = 115200 / gd->baudrate;
|
||||
|
||||
NS16550_init (Com0, clock_divisor);
|
||||
|
||||
@@ -76,7 +76,6 @@ SECTIONS
|
||||
*(.rodata)
|
||||
*(.rodata1)
|
||||
*(.rodata.str1.4)
|
||||
*(.eh_frame)
|
||||
}
|
||||
.fini : { *(.fini) } =0
|
||||
.ctors : { *(.ctors) }
|
||||
@@ -109,13 +108,11 @@ SECTIONS
|
||||
_edata = .;
|
||||
PROVIDE (edata = .);
|
||||
|
||||
. = .;
|
||||
__u_boot_cmd_start = .;
|
||||
.u_boot_cmd : { *(.u_boot_cmd) }
|
||||
__u_boot_cmd_end = .;
|
||||
|
||||
|
||||
. = .;
|
||||
__start___ex_table = .;
|
||||
__ex_table : { *(__ex_table) }
|
||||
__stop___ex_table = .;
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "via686.h"
|
||||
#include "i8259.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#undef VIA_DEBUG
|
||||
|
||||
#ifdef VIA_DEBUG
|
||||
@@ -228,31 +226,33 @@ __asm (" .globl via_calibrate_time_base \n"
|
||||
|
||||
extern unsigned long via_calibrate_time_base(void);
|
||||
|
||||
void via_calibrate_bus_freq (void)
|
||||
void via_calibrate_bus_freq(void)
|
||||
{
|
||||
unsigned long tb;
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/* This is 20 microseconds */
|
||||
#define CALIBRATE_TIME 28636
|
||||
unsigned long tb;
|
||||
|
||||
/* Enable the timer (and disable speaker) */
|
||||
unsigned char c;
|
||||
/* This is 20 microseconds */
|
||||
#define CALIBRATE_TIME 28636
|
||||
|
||||
c = in_byte (0x61);
|
||||
out_byte (0x61, ((c & ~0x02) | 0x01));
|
||||
|
||||
/* Set timer 2 to low/high writing */
|
||||
out_byte (0x43, 0xb0);
|
||||
out_byte (0x42, CALIBRATE_TIME & 0xff);
|
||||
out_byte (0x42, CALIBRATE_TIME >> 8);
|
||||
/* Enable the timer (and disable speaker) */
|
||||
unsigned char c;
|
||||
c = in_byte(0x61);
|
||||
out_byte(0x61, ((c & ~0x02) | 0x01));
|
||||
|
||||
/* Read the time base */
|
||||
tb = via_calibrate_time_base ();
|
||||
/* Set timer 2 to low/high writing */
|
||||
out_byte(0x43, 0xb0);
|
||||
out_byte(0x42, CALIBRATE_TIME & 0xff);
|
||||
out_byte(0x42, CALIBRATE_TIME >>8);
|
||||
|
||||
if (tb >= 700000)
|
||||
gd->bus_clk = 133333333;
|
||||
else
|
||||
gd->bus_clk = 100000000;
|
||||
/* Read the time base */
|
||||
tb = via_calibrate_time_base();
|
||||
|
||||
if (tb >= 700000)
|
||||
gd->bus_clk = 133333333;
|
||||
else
|
||||
gd->bus_clk = 100000000;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
#include "memio.h"
|
||||
#include <part.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
unsigned char *cursor_position;
|
||||
unsigned int cursor_row;
|
||||
unsigned int cursor_col;
|
||||
@@ -56,7 +54,6 @@ int video_rows(void);
|
||||
int video_cols(void);
|
||||
|
||||
char *prompt_string = "=>";
|
||||
unsigned char video_get_attr(void);
|
||||
|
||||
void video_set_color(unsigned char attr)
|
||||
{
|
||||
@@ -483,6 +480,7 @@ extern char version_string[];
|
||||
void video_banner(void)
|
||||
{
|
||||
block_dev_desc_t *ide;
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
int i;
|
||||
char *s;
|
||||
int maxdev;
|
||||
|
||||
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* Mostly done after the Scitech Bios emulation
|
||||
* Written by Hans-Jörg Frieden
|
||||
* Hyperion Entertainment
|
||||
*/
|
||||
#include "x86emu.h"
|
||||
#include "glue.h"
|
||||
|
||||
#undef DEBUG
|
||||
#ifdef DEBUG
|
||||
#define PRINTF(fmt, args...) printf(fmt, ## args)
|
||||
#else
|
||||
#define PRINTF(fmt, args...)
|
||||
#endif
|
||||
|
||||
#define BIOS_SEG 0xFFF0
|
||||
#define PCIBIOS_SUCCESSFUL 0
|
||||
#define PCIBIOS_DEVICE_NOT_FOUND 0x86
|
||||
|
||||
typedef unsigned char UBYTE;
|
||||
typedef unsigned short UWORD;
|
||||
typedef unsigned long ULONG;
|
||||
|
||||
typedef char BYTE;
|
||||
typedef short WORT;
|
||||
typedef long LONG;
|
||||
|
||||
static inline UBYTE read_byte(volatile UBYTE* from)
|
||||
{
|
||||
int x;
|
||||
asm volatile ("lbz %0,%1\n eieio" : "=r" (x) : "m" (*from));
|
||||
return (UBYTE)x;
|
||||
}
|
||||
|
||||
static inline void write_byte(volatile UBYTE *to, int x)
|
||||
{
|
||||
asm volatile ("stb %1,%0\n eieio" : "=m" (*to) : "r" (x));
|
||||
}
|
||||
|
||||
static inline UWORD read_word_little(volatile UWORD *from)
|
||||
{
|
||||
int x;
|
||||
asm volatile ("lhbrx %0,0,%1\n eieio" : "=r" (x) : "r" (from), "m" (*from));
|
||||
return (UWORD)x;
|
||||
}
|
||||
|
||||
static inline UWORD read_word_big(volatile UWORD *from)
|
||||
{
|
||||
int x;
|
||||
asm volatile ("lhz %0,%1\n eieio" : "=r" (x) : "m" (*from));
|
||||
return (UWORD)x;
|
||||
}
|
||||
|
||||
static inline void write_word_little(volatile UWORD *to, int x)
|
||||
{
|
||||
asm volatile ("sthbrx %1,0,%2\n eieio" : "=m" (*to) : "r" (x), "r" (to));
|
||||
}
|
||||
|
||||
static inline void write_word_big(volatile UWORD *to, int x)
|
||||
{
|
||||
asm volatile ("sth %1,%0\n eieio" : "=m" (*to) : "r" (x));
|
||||
}
|
||||
|
||||
static inline ULONG read_long_little(volatile ULONG *from)
|
||||
{
|
||||
unsigned long x;
|
||||
asm volatile ("lwbrx %0,0,%1\n eieio" : "=r" (x) : "r" (from), "m"(*from));
|
||||
return (ULONG)x;
|
||||
}
|
||||
|
||||
static inline ULONG read_long_big(volatile ULONG *from)
|
||||
{
|
||||
unsigned long x;
|
||||
asm volatile ("lwz %0,%1\n eieio" : "=r" (x) : "m" (*from));
|
||||
return (ULONG)x;
|
||||
}
|
||||
|
||||
static inline void write_long_little(volatile ULONG *to, ULONG x)
|
||||
{
|
||||
asm volatile ("stwbrx %1,0,%2\n eieio" : "=m" (*to) : "r" (x), "r" (to));
|
||||
}
|
||||
|
||||
static inline void write_long_big(volatile ULONG *to, ULONG x)
|
||||
{
|
||||
asm volatile ("stw %1,%0\n eieio" : "=m" (*to) : "r" (x));
|
||||
}
|
||||
|
||||
#define port_to_mem(from) (0xFE000000|(from))
|
||||
#define in_byte(from) read_byte( (UBYTE *)port_to_mem(from))
|
||||
#define in_word(from) read_word_little((UWORD *)port_to_mem(from))
|
||||
#define in_long(from) read_long_little((ULONG *)port_to_mem(from))
|
||||
#define out_byte(to, val) write_byte((UBYTE *)port_to_mem(to), val)
|
||||
#define out_word(to, val) write_word_little((UWORD *)port_to_mem(to), val)
|
||||
#define out_long(to, val) write_long_little((ULONG *)port_to_mem(to), val)
|
||||
|
||||
static void X86API undefined_intr(int intno)
|
||||
{
|
||||
extern u16 A1_rdw(u32 addr);
|
||||
if (A1_rdw(intno * 4 + 2) == BIOS_SEG)
|
||||
{
|
||||
PRINTF("Undefined interrupt %xh called AX = %xh, BX = %xh, CX = %xh, DX = %xh\n",
|
||||
intno, M.x86.R_AX, M.x86.R_BX, M.x86.R_CX, M.x86.R_DX);
|
||||
X86EMU_halt_sys();
|
||||
}
|
||||
else
|
||||
{
|
||||
PRINTF("Calling interrupt %xh, AL=%xh, AH=%xh\n", intno, M.x86.R_AL, M.x86.R_AH);
|
||||
X86EMU_prepareForInt(intno);
|
||||
}
|
||||
}
|
||||
|
||||
static void X86API int42(int intno);
|
||||
static void X86API int15(int intno);
|
||||
|
||||
static void X86API int10(int intno)
|
||||
{
|
||||
if (A1_rdw(intno*4+2) == BIOS_SEG)
|
||||
int42(intno);
|
||||
else
|
||||
{
|
||||
PRINTF("int10: branching to %04X:%04X, AL=%xh, AH=%xh\n", A1_rdw(intno*4+2), A1_rdw(intno*4),
|
||||
M.x86.R_AL, M.x86.R_AH);
|
||||
X86EMU_prepareForInt(intno);
|
||||
}
|
||||
}
|
||||
|
||||
static void X86API int1A(int intno)
|
||||
{
|
||||
int device;
|
||||
|
||||
switch(M.x86.R_AX)
|
||||
{
|
||||
case 0xB101: /* PCI Bios Present? */
|
||||
M.x86.R_AL = 0x00;
|
||||
M.x86.R_EDX = 0x20494350;
|
||||
M.x86.R_BX = 0x0210;
|
||||
M.x86.R_CL = 3;
|
||||
CLEAR_FLAG(F_CF);
|
||||
break;
|
||||
case 0xB102: /* Find device */
|
||||
device = mypci_find_device(M.x86.R_DX, M.x86.R_CX, M.x86.R_SI);
|
||||
if (device != -1)
|
||||
{
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
M.x86.R_BH = mypci_bus(device);
|
||||
M.x86.R_BL = mypci_devfn(device);
|
||||
}
|
||||
else
|
||||
{
|
||||
M.x86.R_AH = PCIBIOS_DEVICE_NOT_FOUND;
|
||||
}
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
break;
|
||||
case 0xB103: /* Find PCI class code */
|
||||
M.x86.R_AH = PCIBIOS_DEVICE_NOT_FOUND;
|
||||
/*printf("Find by class not yet implmented"); */
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
break;
|
||||
case 0xB108: /* read config byte */
|
||||
M.x86.R_CL = mypci_read_cfg_byte(M.x86.R_BH, M.x86.R_BL, M.x86.R_DI);
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
/*printf("read_config_byte %x,%x,%x -> %x\n", M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, */
|
||||
/* M.x86.R_CL); */
|
||||
break;
|
||||
case 0xB109: /* read config word */
|
||||
M.x86.R_CX = mypci_read_cfg_word(M.x86.R_BH, M.x86.R_BL, M.x86.R_DI);
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
/*printf("read_config_word %x,%x,%x -> %x\n", M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, */
|
||||
/* M.x86.R_CX); */
|
||||
break;
|
||||
case 0xB10A: /* read config dword */
|
||||
M.x86.R_ECX = mypci_read_cfg_long(M.x86.R_BH, M.x86.R_BL, M.x86.R_DI);
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
/*printf("read_config_long %x,%x,%x -> %x\n", M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, */
|
||||
/* M.x86.R_ECX); */
|
||||
break;
|
||||
case 0xB10B: /* write config byte */
|
||||
mypci_write_cfg_byte(M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, M.x86.R_CL);
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
/*printf("write_config_byte %x,%x,%x <- %x\n", M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, */
|
||||
/* M.x86.R_CL); */
|
||||
break;
|
||||
case 0xB10C: /* write config word */
|
||||
mypci_write_cfg_word(M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, M.x86.R_CX);
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
/*printf("write_config_word %x,%x,%x <- %x\n", M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, */
|
||||
/* M.x86.R_CX); */
|
||||
break;
|
||||
case 0xB10D: /* write config dword */
|
||||
mypci_write_cfg_long(M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, M.x86.R_ECX);
|
||||
M.x86.R_AH = PCIBIOS_SUCCESSFUL;
|
||||
CONDITIONAL_SET_FLAG((M.x86.R_AH != PCIBIOS_SUCCESSFUL), F_CF);
|
||||
/*printf("write_config_long %x,%x,%x <- %x\n", M.x86.R_BH, M.x86.R_BL, M.x86.R_DI, */
|
||||
/* M.x86.R_ECX); */
|
||||
break;
|
||||
default:
|
||||
PRINTF("BIOS int %xh: Unknown function AX=%04xh\n", intno, M.x86.R_AX);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void bios_init(void)
|
||||
{
|
||||
int i;
|
||||
X86EMU_intrFuncs bios_intr_tab[256];
|
||||
|
||||
for (i=0; i<256; i++)
|
||||
{
|
||||
write_long_little(M.mem_base+i*4, BIOS_SEG<<16);
|
||||
bios_intr_tab[i] = undefined_intr;
|
||||
}
|
||||
|
||||
bios_intr_tab[0x10] = int10;
|
||||
bios_intr_tab[0x1A] = int1A;
|
||||
bios_intr_tab[0x42] = int42;
|
||||
bios_intr_tab[0x15] = int15;
|
||||
|
||||
bios_intr_tab[0x6D] = int42;
|
||||
|
||||
X86EMU_setupIntrFuncs(bios_intr_tab);
|
||||
video_init();
|
||||
}
|
||||
|
||||
unsigned char setup_40x25[] =
|
||||
{
|
||||
0x38, 0x28, 0x2d, 0x0a, 0x1f, 6, 0x19,
|
||||
0x1c, 2, 7, 6, 7, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
unsigned char setup_80x25[] =
|
||||
{
|
||||
0x71, 0x50, 0x5a, 0x0a, 0x1f, 6, 0x19,
|
||||
0x1c, 2, 7, 6, 7, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
unsigned char setup_graphics[] =
|
||||
{
|
||||
0x38, 0x28, 0x20, 0x0a, 0x7f, 6, 0x64,
|
||||
0x70, 2, 1, 6, 7, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
unsigned char setup_bw[] =
|
||||
{
|
||||
0x61, 0x50, 0x52, 0x0f, 0x19, 6, 0x19,
|
||||
0x19, 2, 0x0d, 0x0b, 0x0c, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
unsigned char * setup_modes[] =
|
||||
{
|
||||
setup_40x25, /* mode 0: 40x25 bw text */
|
||||
setup_40x25, /* mode 1: 40x25 col text */
|
||||
setup_80x25, /* mode 2: 80x25 bw text */
|
||||
setup_80x25, /* mode 3: 80x25 col text */
|
||||
setup_graphics, /* mode 4: 320x200 col graphics */
|
||||
setup_graphics, /* mode 5: 320x200 bw graphics */
|
||||
setup_graphics, /* mode 6: 640x200 bw graphics */
|
||||
setup_bw /* mode 7: 80x25 mono text */
|
||||
};
|
||||
|
||||
unsigned int setup_cols[] =
|
||||
{
|
||||
40, 40, 80, 80, 40, 40, 80, 80
|
||||
};
|
||||
|
||||
unsigned char setup_modesets[] =
|
||||
{
|
||||
0x2C, 0x28, 0x2D, 0x29, 0x2A, 0x2E, 0x1E, 0x29
|
||||
};
|
||||
|
||||
unsigned int setup_bufsize[] =
|
||||
{
|
||||
2048, 2048, 4096, 2096, 16384, 16384, 16384, 4096
|
||||
};
|
||||
|
||||
void bios_set_mode(int mode)
|
||||
{
|
||||
int i;
|
||||
unsigned char mode_set = setup_modesets[mode]; /* Control register value */
|
||||
unsigned char *setup_regs = setup_modes[mode]; /* Register 3D4 Array */
|
||||
|
||||
/* Switch video off */
|
||||
out_byte(0x3D8, mode_set & 0x37);
|
||||
|
||||
/* Set up parameters at 3D4h */
|
||||
for (i=0; i<16; i++)
|
||||
{
|
||||
out_byte(0x3D4, (unsigned char)i);
|
||||
out_byte(0x3D5, *setup_regs);
|
||||
setup_regs++;
|
||||
}
|
||||
|
||||
/* Enable video */
|
||||
out_byte(0x3D8, mode_set);
|
||||
|
||||
/* Set overscan */
|
||||
if (mode == 6) out_byte(0x3D9, 0x3F);
|
||||
else out_byte(0x3D9, 0x30);
|
||||
}
|
||||
|
||||
static void bios_print_string(void)
|
||||
{
|
||||
extern void video_bios_print_string(char *string, int x, int y, int attr, int count);
|
||||
char *s = (char *)(M.x86.R_ES<<4) + M.x86.R_BP;
|
||||
int attr;
|
||||
if (M.x86.R_AL & 0x02) attr = - 1;
|
||||
else attr = M.x86.R_BL;
|
||||
video_bios_print_string(s, M.x86.R_DH, M.x86.R_DL, attr, M.x86.R_CX);
|
||||
}
|
||||
|
||||
static void X86API int42(int intno)
|
||||
{
|
||||
switch (M.x86.R_AH)
|
||||
{
|
||||
case 0x00:
|
||||
bios_set_mode(M.x86.R_AL);
|
||||
break;
|
||||
case 0x13:
|
||||
bios_print_string();
|
||||
break;
|
||||
default:
|
||||
PRINTF("Warning: VIDEO BIOS interrupt %xh unimplemented function %xh, AL = %xh\n",
|
||||
intno, M.x86.R_AH, M.x86.R_AL);
|
||||
}
|
||||
}
|
||||
|
||||
static void X86API int15(int intno)
|
||||
{
|
||||
PRINTF("Called interrupt 15h: AX = %xh, BX = %xh, CX = %xh, DX = %xh\n",
|
||||
M.x86.R_AX, M.x86.R_BX, M.x86.R_CX, M.x86.R_DX);
|
||||
}
|
||||
@@ -0,0 +1,515 @@
|
||||
#include <common.h>
|
||||
#include <pci.h>
|
||||
#include <74xx_7xx.h>
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#undef DEBUG
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define PRINTF(format, args...) _printf(format , ## args)
|
||||
#else
|
||||
#define PRINTF(format, argc...)
|
||||
#endif
|
||||
|
||||
static pci_dev_t to_pci(int bus, int devfn)
|
||||
{
|
||||
return PCI_BDF(bus, (devfn>>3), devfn&3);
|
||||
}
|
||||
|
||||
int mypci_find_device(int vendor, int product, int index)
|
||||
{
|
||||
return pci_find_device(vendor, product, index);
|
||||
}
|
||||
|
||||
int mypci_bus(int device)
|
||||
{
|
||||
return PCI_BUS(device);
|
||||
}
|
||||
|
||||
int mypci_devfn(int device)
|
||||
{
|
||||
return (PCI_DEV(device)<<3) | PCI_FUNC(device);
|
||||
}
|
||||
|
||||
|
||||
#define mypci_read_func(type, size) \
|
||||
type mypci_read_cfg_##size##(int bus, int devfn, int offset) \
|
||||
{ \
|
||||
type c; \
|
||||
pci_read_config_##size##(to_pci(bus, devfn), offset, &c); \
|
||||
return c; \
|
||||
}
|
||||
|
||||
#define mypci_write_func(type, size) \
|
||||
void mypci_write_cfg_##size##(int bus, int devfn, int offset, int value) \
|
||||
{ \
|
||||
pci_write_config_##size##(to_pci(bus, devfn), offset, value); \
|
||||
}
|
||||
|
||||
mypci_read_func(u8,byte);
|
||||
mypci_read_func(u16,word);
|
||||
|
||||
mypci_write_func(u8,byte);
|
||||
mypci_write_func(u16,word);
|
||||
|
||||
u32 mypci_read_cfg_long(int bus, int devfn, int offset)
|
||||
{
|
||||
u32 c;
|
||||
pci_read_config_dword(to_pci(bus, devfn), offset, &c);
|
||||
return c;
|
||||
}
|
||||
|
||||
void mypci_write_cfg_long(int bus, int devfn, int offset, int value)
|
||||
{
|
||||
pci_write_config_dword(to_pci(bus, devfn), offset, value);
|
||||
}
|
||||
|
||||
void _printf(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char buf[CFG_PBSIZE];
|
||||
|
||||
va_start(args, fmt);
|
||||
(void)vsprintf(buf, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
printf(buf);
|
||||
}
|
||||
|
||||
char *_getenv(char *name)
|
||||
{
|
||||
return getenv(name);
|
||||
}
|
||||
|
||||
unsigned long get_bar_size(pci_dev_t dev, int offset)
|
||||
{
|
||||
u32 bar_back, bar_value;
|
||||
|
||||
/* Save old BAR value */
|
||||
pci_read_config_dword(dev, offset, &bar_back);
|
||||
|
||||
/* Write all 1's. */
|
||||
pci_write_config_dword(dev, offset, ~0);
|
||||
|
||||
/* Now read back the relevant bits */
|
||||
pci_read_config_dword(dev, offset, &bar_value);
|
||||
|
||||
/* Restore original value */
|
||||
pci_write_config_dword(dev, offset, bar_back);
|
||||
|
||||
if (bar_value == 0) return 0xFFFFFFFF; /* This BAR is disabled */
|
||||
|
||||
if ((bar_value & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_MEMORY)
|
||||
{
|
||||
/* This is a memory space BAR. Mask it out so we get the size of it */
|
||||
return ~(bar_value & PCI_BASE_ADDRESS_MEM_MASK) + 1;
|
||||
}
|
||||
|
||||
/* Not suitable */
|
||||
return 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
void enable_compatibility_hole(void)
|
||||
{
|
||||
u8 cfg;
|
||||
pci_dev_t art = PCI_BDF(0,0,0);
|
||||
|
||||
pci_read_config_byte(art, 0x54, &cfg);
|
||||
/* cfg |= 0x08; */
|
||||
cfg |= 0x20;
|
||||
pci_write_config_byte(art, 0x54, cfg);
|
||||
}
|
||||
|
||||
void disable_compatibility_hole(void)
|
||||
{
|
||||
u8 cfg;
|
||||
pci_dev_t art = PCI_BDF(0,0,0);
|
||||
|
||||
pci_read_config_byte(art, 0x54, &cfg);
|
||||
/* cfg &= ~0x08; */
|
||||
cfg &= ~0x20;
|
||||
pci_write_config_byte(art, 0x54, cfg);
|
||||
}
|
||||
|
||||
void map_rom(pci_dev_t dev, u32 address)
|
||||
{
|
||||
pci_write_config_dword(dev, PCI_ROM_ADDRESS, address|PCI_ROM_ADDRESS_ENABLE);
|
||||
}
|
||||
|
||||
void unmap_rom(pci_dev_t dev)
|
||||
{
|
||||
pci_write_config_dword(dev, PCI_ROM_ADDRESS, 0);
|
||||
}
|
||||
|
||||
void bat_map(u8 batnum, u32 address, u32 length)
|
||||
{
|
||||
u32 temp = address;
|
||||
address &= 0xFFFE0000;
|
||||
temp &= 0x0001FFFF;
|
||||
length = (length - 1 ) >> 17;
|
||||
length <<= 2;
|
||||
|
||||
switch (batnum)
|
||||
{
|
||||
case 0:
|
||||
__asm volatile ("mtdbatu 0, %0" : : "r" (address | length | 3));
|
||||
__asm volatile ("mtdbatl 0, %0" : : "r" (address | 0x22));
|
||||
break;
|
||||
case 1:
|
||||
__asm volatile ("mtdbatu 1, %0" : : "r" (address | length | 3));
|
||||
__asm volatile ("mtdbatl 1, %0" : : "r" (address | 0x22));
|
||||
break;
|
||||
case 2:
|
||||
__asm volatile ("mtdbatu 2, %0" : : "r" (address | length | 3));
|
||||
__asm volatile ("mtdbatl 2, %0" : : "r" (address | 0x22));
|
||||
break;
|
||||
case 3:
|
||||
__asm volatile ("mtdbatu 3, %0" : : "r" (address | length | 3));
|
||||
__asm volatile ("mtdbatl 3, %0" : : "r" (address | 0x22));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int find_image(u32 rom_address, u32 rom_size, void **image, u32 *image_size);
|
||||
|
||||
int attempt_map_rom(pci_dev_t dev, void *copy_address)
|
||||
{
|
||||
u32 rom_size = 0;
|
||||
u32 rom_address = 0;
|
||||
u32 bar_size = 0;
|
||||
u32 bar_backup = 0;
|
||||
int i,j;
|
||||
void *image = 0;
|
||||
u32 image_size = 0;
|
||||
int did_correct = 0;
|
||||
u32 prefetch_addr = 0;
|
||||
u32 prefetch_size = 0;
|
||||
u32 prefetch_idx = 0;
|
||||
|
||||
/* Get the size of the expansion rom */
|
||||
pci_write_config_dword(dev, PCI_ROM_ADDRESS, 0xFFFFFFFF);
|
||||
pci_read_config_dword(dev, PCI_ROM_ADDRESS, &rom_size);
|
||||
if ((rom_size & 0x01) == 0)
|
||||
{
|
||||
PRINTF("No ROM\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
rom_size &= 0xFFFFF800;
|
||||
rom_size = (~rom_size)+1;
|
||||
|
||||
PRINTF("ROM Size is %dK\n", rom_size/1024);
|
||||
|
||||
/*
|
||||
* Try to find a place for the ROM. We always attempt to use
|
||||
* one of the card's bases for this, as this will be in any
|
||||
* bridge's resource range as well as being free of conflicts
|
||||
* with other cards. In a graphics card it is very unlikely
|
||||
* that there won't be any base address that is large enough to
|
||||
* hold the rom.
|
||||
*
|
||||
* FIXME: To work around this, theoretically the largest base
|
||||
* could be used if none is found in the loop below.
|
||||
*/
|
||||
|
||||
for (i = PCI_BASE_ADDRESS_0; i <= PCI_BASE_ADDRESS_5; i += 4)
|
||||
{
|
||||
bar_size = get_bar_size(dev, i);
|
||||
PRINTF("PCI_BASE_ADDRESS_%d is %dK large\n",
|
||||
(i - PCI_BASE_ADDRESS_0)/4,
|
||||
bar_size/1024);
|
||||
if (bar_size != 0xFFFFFFFF && bar_size >= rom_size)
|
||||
{
|
||||
PRINTF("Found a match for rom size\n");
|
||||
pci_read_config_dword(dev, i, &rom_address);
|
||||
rom_address &= 0xFFFFFFF0;
|
||||
if (rom_address != 0 && rom_address != 0xFFFFFFF0) break;
|
||||
}
|
||||
}
|
||||
|
||||
if (rom_address == 0 || rom_address == 0xFFFFFFF0)
|
||||
{
|
||||
PRINTF("No suitable rom address found\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Disable the BAR */
|
||||
pci_read_config_dword(dev, i, &bar_backup);
|
||||
pci_write_config_dword(dev, i, 0);
|
||||
|
||||
/* Map ROM */
|
||||
pci_write_config_dword(dev, PCI_ROM_ADDRESS, rom_address | PCI_ROM_ADDRESS_ENABLE);
|
||||
|
||||
/* Copy the rom to a place in the emulator space */
|
||||
PRINTF("Claiming BAT 2\n");
|
||||
bat_map(2, rom_address, rom_size);
|
||||
/* show_bat_mapping(); */
|
||||
|
||||
if (0 == find_image(rom_address, rom_size, &image, &image_size))
|
||||
{
|
||||
PRINTF("No x86 BIOS image found\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRINTF("Copying %ld bytes from 0x%lx to 0x%lx\n", (long)image_size, (long)image, (long)copy_address);
|
||||
|
||||
/* memcpy(copy_address, rom_address, rom_size); */
|
||||
{
|
||||
unsigned char *from = (unsigned char *)image; /* rom_address; */
|
||||
unsigned char *to = (unsigned char *)copy_address;
|
||||
for (j=0; j<image_size /*rom_size*/; j++)
|
||||
{
|
||||
*to++ = *from++;
|
||||
}
|
||||
}
|
||||
|
||||
PRINTF("Copy is done\n");
|
||||
|
||||
/* Unmap the ROM and restore the BAR */
|
||||
pci_write_config_dword(dev, PCI_ROM_ADDRESS, 0);
|
||||
pci_write_config_dword(dev, i, bar_backup);
|
||||
|
||||
/* FIXME: Shouldn't be needed anymore*/
|
||||
/* bat_map(2, 0x80000000, 256*1024*1024);
|
||||
show_bat_mapping(); */
|
||||
|
||||
/*
|
||||
* Since most cards can probably only do 16 bit IO addressing, we
|
||||
* correct their IO base into an appropriate value.
|
||||
* This should do for most.
|
||||
*/
|
||||
for (i = PCI_BASE_ADDRESS_0; i <= PCI_BASE_ADDRESS_5; i += 4)
|
||||
{
|
||||
unsigned long value;
|
||||
pci_read_config_dword(dev, i, &value);
|
||||
if (value & 0x01) /* IO */
|
||||
{
|
||||
did_correct = 1;
|
||||
pci_write_config_dword(dev, i, 0x1001);
|
||||
break;
|
||||
}
|
||||
|
||||
if (value & PCI_BASE_ADDRESS_MEM_PREFETCH)
|
||||
{
|
||||
prefetch_idx = i;
|
||||
prefetch_addr = value & PCI_BASE_ADDRESS_MEM_MASK;
|
||||
prefetch_size = get_bar_size(dev, i);
|
||||
}
|
||||
}
|
||||
|
||||
if (1) /* did_correct) */
|
||||
{
|
||||
extern pci_dev_t pci_find_bridge_for_bus(struct pci_controller *hose, int busnr);
|
||||
int busnr = PCI_BUS(dev);
|
||||
if (busnr)
|
||||
{
|
||||
pci_dev_t bridge;
|
||||
PRINTF("Need to correct bridge device for IO range change\n");
|
||||
bridge = pci_find_bridge_for_bus(NULL, busnr);
|
||||
if (bridge == PCI_ANY_ID)
|
||||
{
|
||||
PRINTF("Didn't find bridge. Hope that's OK\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Set upper I/O base/limit to 0
|
||||
*/
|
||||
pci_write_config_byte(bridge, 0x30, 0x00);
|
||||
pci_write_config_byte(bridge, 0x31, 0x00);
|
||||
pci_write_config_byte(bridge, 0x32, 0x00);
|
||||
pci_write_config_byte(bridge, 0x33, 0x00);
|
||||
if (did_correct)
|
||||
{
|
||||
/*
|
||||
* set lower I/O base to 1000
|
||||
* That is, bits 0:3 are set to 0001 by default.
|
||||
* bits 7:4 contain I/O address bits 15:12
|
||||
* all others are assumed 0.
|
||||
*/
|
||||
pci_write_config_byte(bridge, 0x1C, 0x11);
|
||||
/*
|
||||
* Set lower I/O limit to 1FFF
|
||||
* That is, bits 0:3 are reserved and always 0000
|
||||
* Bits 7:4 contain I/O address bits 15:12
|
||||
* All others are assumed F.
|
||||
*/
|
||||
pci_write_config_byte(bridge, 0x1D, 0x10);
|
||||
pci_write_config_byte(bridge, 0x0D, 0x20);
|
||||
PRINTF("Corrected bridge resource range of bridge at %02x:%02x:%02x\n",
|
||||
PCI_BUS(bridge), PCI_DEV(bridge), PCI_FUNC(bridge));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* This card doesn't have I/O, we disable I/O forwarding
|
||||
*/
|
||||
pci_write_config_byte(bridge, 0x1C, 0x11);
|
||||
pci_write_config_byte(bridge, 0x1D, 0x00);
|
||||
pci_write_config_byte(bridge, PCI_INTERRUPT_LINE, 0);
|
||||
pci_write_config_byte(bridge, PCI_INTERRUPT_PIN, 0);
|
||||
pci_write_config_dword(bridge, PCI_COMMAND, PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | PCI_COMMAND_IO);
|
||||
PRINTF("Disabled bridge resource range of bridge at %02x:%02x:%02x\n",
|
||||
PCI_BUS(bridge), PCI_DEV(bridge), PCI_FUNC(bridge));
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Correct the prefetchable memory base, which is not set correctly by
|
||||
* the U-Boot autoconfig stuff
|
||||
*/
|
||||
if (prefetch_idx)
|
||||
{
|
||||
/* PRINTF("Setting prefetchable range to %x, %x (%x and %x)\n", */
|
||||
/* prefetch_addr, prefetch_addr+prefetch_size, */
|
||||
/* prefetch_addr>>16, (prefetch_addr+prefetch_size)>>16); */
|
||||
/* pci_write_config_word(bridge, PCI_PREF_MEMORY_BASE, (prefetch_addr>>16)); */
|
||||
/* pci_write_config_word(bridge, PCI_PREF_MEMORY_LIMIT, (prefetch_addr+prefetch_size)>>16); */
|
||||
}
|
||||
|
||||
pci_write_config_word(bridge, PCI_PREF_MEMORY_BASE, 0x1000);
|
||||
pci_write_config_word(bridge, PCI_PREF_MEMORY_LIMIT, 0x0000);
|
||||
|
||||
pci_write_config_byte(bridge, 0xD0, 0x0A);
|
||||
pci_write_config_byte(bridge, 0xD3, 0x04);
|
||||
|
||||
/*
|
||||
* Set the interrupt pin to 0
|
||||
*/
|
||||
#if 0
|
||||
pci_write_config_byte(dev, PCI_INTERRUPT_LINE, 0);
|
||||
pci_write_config_byte(dev, PCI_INTERRUPT_PIN, 0);
|
||||
#endif
|
||||
pci_write_config_byte(bridge, PCI_INTERRUPT_LINE, 0);
|
||||
pci_write_config_byte(bridge, PCI_INTERRUPT_PIN, 0);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* Finally, enable the card's IO and memory response */
|
||||
pci_write_config_dword(dev, PCI_COMMAND, PCI_COMMAND_MEMORY | PCI_COMMAND_IO);
|
||||
pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 0);
|
||||
pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int find_image(u32 rom_address, u32 rom_size, void **image, u32 *image_size)
|
||||
{
|
||||
int i = 0;
|
||||
unsigned char *rom = (unsigned char *)rom_address;
|
||||
/* if (*rom != 0x55 || *(rom+1) != 0xAA) return 0; /* No bios rom this is, yes. */ */
|
||||
|
||||
for (;;)
|
||||
{
|
||||
unsigned short pci_data_offset = *(rom+0x18) + 256 * *(rom+0x19);
|
||||
unsigned short pci_image_length = (*(rom+pci_data_offset+0x10) + 256 * *(rom+pci_data_offset+0x11)) * 512;
|
||||
unsigned char pci_image_type = *(rom+pci_data_offset+0x14);
|
||||
if (*rom != 0x55 || *(rom+1) != 0xAA)
|
||||
{
|
||||
PRINTF("Invalid header this is\n");
|
||||
return 0;
|
||||
}
|
||||
PRINTF("Image %i: Type %d (%s)\n", i++, pci_image_type,
|
||||
pci_image_type==0 ? "x86" :
|
||||
pci_image_type==1 ? "OpenFirmware" :
|
||||
"Unknown");
|
||||
if (pci_image_type == 0)
|
||||
{
|
||||
*image = rom;
|
||||
*image_size = pci_image_length;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (*(rom+pci_data_offset+0x15) & 0x80)
|
||||
{
|
||||
PRINTF("LAST image encountered, no image found\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
rom += pci_image_length;
|
||||
}
|
||||
}
|
||||
|
||||
void show_bat_mapping(void)
|
||||
{
|
||||
u32 dbat0u, dbat0l, ibat0u, ibat0l;
|
||||
u32 dbat1u, dbat1l, ibat1u, ibat1l;
|
||||
u32 dbat2u, dbat2l, ibat2u, ibat2l;
|
||||
u32 dbat3u, dbat3l, ibat3u, ibat3l;
|
||||
u32 msr, hid0, l2cr_reg;
|
||||
|
||||
__asm volatile ("mfdbatu %0,0" : "=r" (dbat0u));
|
||||
__asm volatile ("mfdbatl %0,0" : "=r" (dbat0l));
|
||||
__asm volatile ("mfibatu %0,0" : "=r" (ibat0u));
|
||||
__asm volatile ("mfibatl %0,0" : "=r" (ibat0l));
|
||||
|
||||
__asm volatile ("mfdbatu %0,1" : "=r" (dbat1u));
|
||||
__asm volatile ("mfdbatl %0,1" : "=r" (dbat1l));
|
||||
__asm volatile ("mfibatu %0,1" : "=r" (ibat1u));
|
||||
__asm volatile ("mfibatl %0,1" : "=r" (ibat1l));
|
||||
|
||||
__asm volatile ("mfdbatu %0,2" : "=r" (dbat2u));
|
||||
__asm volatile ("mfdbatl %0,2" : "=r" (dbat2l));
|
||||
__asm volatile ("mfibatu %0,2" : "=r" (ibat2u));
|
||||
__asm volatile ("mfibatl %0,2" : "=r" (ibat2l));
|
||||
|
||||
__asm volatile ("mfdbatu %0,3" : "=r" (dbat3u));
|
||||
__asm volatile ("mfdbatl %0,3" : "=r" (dbat3l));
|
||||
__asm volatile ("mfibatu %0,3" : "=r" (ibat3u));
|
||||
__asm volatile ("mfibatl %0,3" : "=r" (ibat3l));
|
||||
|
||||
__asm volatile ("mfmsr %0" : "=r" (msr));
|
||||
__asm volatile ("mfspr %0,1008": "=r" (hid0));
|
||||
__asm volatile ("mfspr %0,1017": "=r" (l2cr_reg));
|
||||
|
||||
printf("dbat0u: %08x dbat0l: %08x ibat0u: %08x ibat0l: %08x\n",
|
||||
dbat0u, dbat0l, ibat0u, ibat0l);
|
||||
printf("dbat1u: %08x dbat1l: %08x ibat1u: %08x ibat1l: %08x\n",
|
||||
dbat1u, dbat1l, ibat1u, ibat1l);
|
||||
printf("dbat2u: %08x dbat2l: %08x ibat2u: %08x ibat2l: %08x\n",
|
||||
dbat2u, dbat2l, ibat2u, ibat2l);
|
||||
printf("dbat3u: %08x dbat3l: %08x ibat3u: %08x ibat3l: %08x\n",
|
||||
dbat3u, dbat3l, ibat3u, ibat3l);
|
||||
|
||||
printf("\nMSR: %08x HID0: %08x L2CR: %08x \n", msr,hid0, l2cr_reg);
|
||||
}
|
||||
|
||||
|
||||
void remove_init_data(void)
|
||||
{
|
||||
char *s;
|
||||
|
||||
/* Invalidate and disable data cache */
|
||||
invalidate_l1_data_cache();
|
||||
dcache_disable();
|
||||
|
||||
s = getenv("x86_cache");
|
||||
|
||||
if (!s)
|
||||
{
|
||||
icache_enable();
|
||||
dcache_enable();
|
||||
}
|
||||
else if (s)
|
||||
{
|
||||
if (strcmp(s, "dcache")==0)
|
||||
{
|
||||
dcache_enable();
|
||||
}
|
||||
else if (strcmp(s, "icache") == 0)
|
||||
{
|
||||
icache_enable();
|
||||
}
|
||||
else if (strcmp(s, "on")== 0 || strcmp(s, "both") == 0)
|
||||
{
|
||||
dcache_enable();
|
||||
icache_enable();
|
||||
}
|
||||
}
|
||||
|
||||
/* show_bat_mapping();*/
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
#ifndef GLUE_H
|
||||
#define GLUE_H
|
||||
|
||||
typedef unsigned int pci_dev_t;
|
||||
|
||||
int mypci_find_device(int vendor, int product, int index);
|
||||
int mypci_bus(int device);
|
||||
int mypci_devfn(int device);
|
||||
unsigned long get_bar_size(pci_dev_t dev, int offset);
|
||||
|
||||
u8 mypci_read_cfg_byte(int bus, int devfn, int offset);
|
||||
u16 mypci_read_cfg_word(int bus, int devfn, int offset);
|
||||
u32 mypci_read_cfg_long(int bus, int devfn, int offset);
|
||||
|
||||
void mypci_write_cfg_byte(int bus, int devfn, int offset, u8 value);
|
||||
void mypci_write_cfg_word(int bus, int devfn, int offset, u16 value);
|
||||
void mypci_write_cfg_long(int bus, int devfn, int offset, u32 value);
|
||||
|
||||
void _printf(const char *fmt, ...);
|
||||
char *_getenv(char *name);
|
||||
|
||||
void *malloc(size_t size);
|
||||
void memset(void *addr, int value, size_t size);
|
||||
void memcpy(void *to, void *from, size_t numbytes);
|
||||
int strcmp(char *, char *);
|
||||
|
||||
void enable_compatibility_hole(void);
|
||||
void disable_compatibility_hole(void);
|
||||
|
||||
void map_rom(pci_dev_t dev, unsigned long address);
|
||||
void unmap_rom(pci_dev_t dev);
|
||||
int attempt_map_rom(pci_dev_t dev, void *copy_address);
|
||||
|
||||
#define PCI_BASE_ADDRESS_SPACE 0x01 /* 0 = memory, 1 = I/O */
|
||||
#define PCI_BASE_ADDRESS_SPACE_IO 0x01
|
||||
#define PCI_BASE_ADDRESS_SPACE_MEMORY 0x00
|
||||
#define PCI_BASE_ADDRESS_MEM_MASK (~0x0fUL)
|
||||
|
||||
#define PCI_BASE_ADDRESS_0 0x10 /* 32 bits */
|
||||
#define PCI_BASE_ADDRESS_1 0x14 /* 32 bits [htype 0,1 only] */
|
||||
#define PCI_BASE_ADDRESS_2 0x18 /* 32 bits [htype 0 only] */
|
||||
#define PCI_BASE_ADDRESS_3 0x1c /* 32 bits */
|
||||
#define PCI_BASE_ADDRESS_4 0x20 /* 32 bits */
|
||||
#define PCI_BASE_ADDRESS_5 0x24 /* 32 bits */
|
||||
#define PCI_BUS(d) (((d) >> 16) & 0xff)
|
||||
#define PCI_DEV(d) (((d) >> 11) & 0x1f)
|
||||
#define PCI_FUNC(d) (((d) >> 8) & 0x7)
|
||||
#define PCI_BDF(b,d,f) ((b) << 16 | (d) << 11 | (f) << 8)
|
||||
|
||||
#define PCI_ANY_ID (~0)
|
||||
#define PCI_ROM_ADDRESS 0x30 /* Bits 31..11 are address, 10..1 reserved */
|
||||
#define PCI_ROM_ADDRESS_ENABLE 0x01
|
||||
|
||||
#define OFF(addr) ((addr) & 0xFFFF)
|
||||
#define SEG(addr) (((addr)>>4) &0xF000)
|
||||
|
||||
#endif
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 3.1.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS16\BC3;%BC3_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS16\BC3;%BC3_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC3_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC3.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_SNAP=
|
||||
PATH %SCITECH_BIN%;%BC3_PATH%\BIN;%DEFPATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC3_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BC3_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BC3_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ 3.1 DOS compilation configuration set up.
|
||||
@@ -0,0 +1,37 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Enable Win32 SDK if desired (sdk on command line)
|
||||
if NOT .%1%==.sdk goto createfiles
|
||||
call win32sdk.bat borland
|
||||
|
||||
:createfiles
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 4.5 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,32 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 16 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS16\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS16\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC16.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ 4.5 16 bit DOS compilation configuration set up.
|
||||
@@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 32 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 4.5 32 bit DOS compilation configuration set up (DPMI32).
|
||||
@@ -0,0 +1,32 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\SNAP\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\SNAP\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=1
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 4.5 Snap compilation configuration set up.
|
||||
@@ -0,0 +1,46 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 32 bit mode with Phar Lap TNT
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BC4;%BC4_PATH%\LIB;%TNT_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BC4;%BC4_PATH%\LIB;%TNT_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;%TNT_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=1
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%TNT_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM If you set the following to a 1, a TNT DosStyle app will be created.
|
||||
REM Otherwise a TNT NtStyle app will be created. NtStyle apps will *only*
|
||||
REM run under real DOS when using our libraries, since we require access
|
||||
REM to functions that the Win32 API does not support (such as direct access
|
||||
REM to video memory, calling Int 10h BIOS functions etc). DosStyle apps
|
||||
REM will however run fine in both DOS and a Win95 DOS box (NT DOS boxes don't
|
||||
REM work too well).
|
||||
REM
|
||||
REM If you are using the RealTime DOS extender, your apps *must* be NtStyle,
|
||||
REM and hence will never be able to run under Win95 or WinNT, only DOS.
|
||||
|
||||
SET DOSSTYLE=
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 4.5 32 bit DOS compilation configuration set up (TNT).
|
||||
@@ -0,0 +1,32 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 32 bit Windows VxD mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\VXD\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\VXD\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=1
|
||||
SET USE_TNT=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 4.5 32-bit VxD compilation configuration set up.
|
||||
@@ -0,0 +1,32 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 16 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN16\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN16\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC16.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=1
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ 4.5 16 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,37 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 4.5 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BC4;%BC4_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BC4;%BC4_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC4_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_BC5=
|
||||
SET WIN32_GUI=1
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC4
|
||||
PATH %SCITECH_BIN%;%BC4_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM: Enable Win32 SDK if desired (sdk on command line)
|
||||
if NOT .%1%==.sdk goto createfiles
|
||||
call win32sdk.bat borland
|
||||
|
||||
:createfiles
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC4_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC4_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 4.5 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET C_INCLUDE=%BC5_PATH%\INCLUDE
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%C_INCLUDE%
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Enable Win32 SDK if desired (sdk on command line)
|
||||
if NOT .%1%==.sdk goto createfiles
|
||||
call win32sdk.bat borland
|
||||
|
||||
:createfiles
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 16 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS16\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS16\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC16.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ 5.0 16 bit DOS compilation configuration set up.
|
||||
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit DOS compilation configuration set up (DPMI32).
|
||||
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\SMX32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\SMX32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=1
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit SMX compilation configuration set up (SMX32).
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\SNAP\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\SNAP\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=1
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 Snap compilation configuration set up.
|
||||
@@ -0,0 +1,48 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit mode with Phar Lap TNT
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BC5;%BC5_PATH%\LIB;%TNT_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BC5;%BC5_PATH%\LIB;%TNT_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;%TNT_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=1
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%TNT_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM If you set the following to a 1, a TNT DosStyle app will be created.
|
||||
REM Otherwise a TNT NtStyle app will be created. NtStyle apps will *only*
|
||||
REM run under real DOS when using our libraries, since we require access
|
||||
REM to functions that the Win32 API does not support (such as direct access
|
||||
REM to video memory, calling Int 10h BIOS functions etc). DosStyle apps
|
||||
REM will however run fine in both DOS and a Win95 DOS box (NT DOS boxes don't
|
||||
REM work too well).
|
||||
REM
|
||||
REM If you are using the RealTime DOS extender, your apps *must* be NtStyle,
|
||||
REM and hence will never be able to run under Win95 or WinNT, only DOS.
|
||||
|
||||
SET DOSSTYLE=
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit DOS compilation configuration set up (TNT).
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\VXD\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\VXD\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=1
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit Windows (VxD) compilation configuration set up.
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 16 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN16\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN16\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC16.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=1
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_BC5=1
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ 5.0 16 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET C_INCLUDE=%BC5_PATH%\INCLUDE
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%C_INCLUDE%
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=1
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Enable Win32 SDK if desired (sdk on command line)
|
||||
if NOT .%1%==.sdk goto createfiles
|
||||
call win32sdk.bat borland
|
||||
|
||||
:createfiles
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BC5;%BC5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BC5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=1
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BC5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BC5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BC5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ 5.0 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET C_INCLUDE=%BCB5_PATH%\INCLUDE
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%C_INCLUDE%
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Enable Win32 SDK if desired (sdk on command line)
|
||||
if NOT .%1%==.sdk goto createfiles
|
||||
call win32sdk.bat borland
|
||||
|
||||
:createfiles
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 16 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS16\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS16\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC16.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 16 bit DOS compilation configuration set up.
|
||||
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit DOS compilation configuration set up (DPMI32).
|
||||
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\SMX32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\SMX32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=1
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit SMX compilation configuration set up (SMX32).
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\SNAP\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\SNAP\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=1
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 Snap compilation configuration set up.
|
||||
@@ -0,0 +1,48 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit mode with Phar Lap TNT
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\DOS32\BCB5;%BCB5_PATH%\LIB;%TNT_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\DOS32\BCB5;%BCB5_PATH%\LIB;%TNT_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;%TNT_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=1
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%TNT_PATH%\BIN;%DEFPATH%%BC_CD_PATH%
|
||||
|
||||
REM If you set the following to a 1, a TNT DosStyle app will be created.
|
||||
REM Otherwise a TNT NtStyle app will be created. NtStyle apps will *only*
|
||||
REM run under real DOS when using our libraries, since we require access
|
||||
REM to functions that the Win32 API does not support (such as direct access
|
||||
REM to video memory, calling Int 10h BIOS functions etc). DosStyle apps
|
||||
REM will however run fine in both DOS and a Win95 DOS box (NT DOS boxes don't
|
||||
REM work too well).
|
||||
REM
|
||||
REM If you are using the RealTime DOS extender, your apps *must* be NtStyle,
|
||||
REM and hence will never be able to run under Win95 or WinNT, only DOS.
|
||||
|
||||
SET DOSSTYLE=
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit DOS compilation configuration set up (TNT).
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\VXD\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\VXD\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=1
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit Windows (VxD) compilation configuration set up.
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 16 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN16\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN16\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC16.MK
|
||||
SET USE_DPMI16=
|
||||
SET USE_WIN16=1
|
||||
SET USE_WIN32=
|
||||
SET USE_VXD=
|
||||
SET USE_BC5=1
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET WIN32_GUI=
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\turboc.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 16 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET C_INCLUDE=%BCB5_PATH%\INCLUDE
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%C_INCLUDE%
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=1
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Enable Win32 SDK if desired (sdk on command line)
|
||||
if NOT .%1%==.sdk goto createfiles
|
||||
call win32sdk.bat borland
|
||||
|
||||
:createfiles
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
REM Setup for compiling with Borland C++ Builder 5.0 in 32 bit Windows mode.
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\RELEASE\WIN32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
SET LIB=%SCITECH_LIB%\LIB\DEBUG\WIN32\BCB5;%BCB5_PATH%\LIB;.
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
SET INCLUDE=INCLUDE;%SCITECH%\INCLUDE;%PRIVATE%\INCLUDE;%BCB5_PATH%\INCLUDE;
|
||||
SET MAKESTARTUP=%SCITECH%\MAKEDEFS\BC32.MK
|
||||
SET USE_WIN16=
|
||||
SET USE_WIN32=1
|
||||
SET USE_VXD=
|
||||
SET USE_TNT=
|
||||
SET USE_SMX32=
|
||||
SET USE_SMX16=
|
||||
SET USE_BC5=1
|
||||
SET WIN32_GUI=1
|
||||
SET USE_SNAP=
|
||||
SET BC_LIBBASE=BC5
|
||||
PATH %SCITECH_BIN%;%BCB5_PATH%\BIN;%DEFPATH%%BC5_CD_PATH%
|
||||
|
||||
REM: Create Borland compile/link configuration scripts
|
||||
echo -I%INCLUDE% > %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% >> %BCB5_PATH%\BIN\bcc32.cfg
|
||||
echo -L%LIB% > %BCB5_PATH%\BIN\tlink32.cfg
|
||||
|
||||
echo Borland C++ Builder 5.0 32 bit Windows compilation configuration set up.
|
||||
@@ -0,0 +1,22 @@
|
||||
#! /bin/sh
|
||||
|
||||
if [ $# -lt 1 ] || ( [ "$1" != gcc-linux ] && [ "$1" != qnx4 ] ) ; then
|
||||
echo Usage: $0 compiler_name [DMAKE commands]
|
||||
echo
|
||||
echo Current compilers:
|
||||
echo " gcc-linux - GNU C/C++ 2.7 or higher, 32 bit"
|
||||
echo " qnx4 - Watcom C/C++ 10.6 or higher, 32 bit"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
unset DBG OPT OPT_SIZE BUILD_DLL IMPORT_DLL FPU CHECKS BETA
|
||||
. ${1}.sh
|
||||
|
||||
shift
|
||||
dmake $* && exit 0
|
||||
|
||||
echo *************************************************
|
||||
echo * An error occurred while building the library. *
|
||||
echo *************************************************
|
||||
exit 1
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
rem Disable checked build and build release code
|
||||
set CHECKED=
|
||||
call build_it.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
rem Enable checked build and build debug code
|
||||
set CHECKED=1
|
||||
call build_it.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
@@ -0,0 +1,432 @@
|
||||
@echo off
|
||||
rem Generic batch file to build a version of the library. This batch file
|
||||
rem assumes that the correct batch files exist to setup the appropriate
|
||||
rem compilation environments, and that the DMAKE.EXE program is available
|
||||
rem somewhere on the path.
|
||||
rem
|
||||
rem Builds as release or debug depending on the value of the CHECKED
|
||||
rem environment variable.
|
||||
|
||||
rem Unset all environment variables that change the compile process
|
||||
set DBG=
|
||||
set OPT=
|
||||
set OPT_SIZE=
|
||||
set BUILD_DLL=
|
||||
set IMPORT_DLL=
|
||||
set FPU=
|
||||
set CHECKS=
|
||||
set BETA=
|
||||
|
||||
if %1==bc31-d16 goto bc31-d16
|
||||
if %1==bc45-d16 goto bc45-d16
|
||||
if %1==bc45-d32 goto bc45-d32
|
||||
if %1==bc45-tnt goto bc45-tnt
|
||||
if %1==bc45-w16 goto bc45-w16
|
||||
if %1==bc45-w32 goto bc45-w32
|
||||
if %1==bc45-c32 goto bc45-c32
|
||||
if %1==bc45-vxd goto bc45-vxd
|
||||
if %1==bc45-snp goto bc45-snp
|
||||
if %1==bc50-d16 goto bc50-d16
|
||||
if %1==bc50-d32 goto bc50-d32
|
||||
if %1==bc50-tnt goto bc50-tnt
|
||||
if %1==bc50-w16 goto bc50-w16
|
||||
if %1==bc50-w32 goto bc50-w32
|
||||
if %1==bc50-c32 goto bc50-c32
|
||||
if %1==bc50-vxd goto bc50-vxd
|
||||
if %1==bc50-snp goto bc50-snp
|
||||
if %1==gcc2-d32 goto gcc2-d32
|
||||
if %1==gcc2-w32 goto gcc2-w32
|
||||
if %1==gcc2-c32 goto gcc2-c32
|
||||
if %1==gcc2-linux goto gcc2-linux
|
||||
if %1==vc40-d16 goto vc40-d16
|
||||
if %1==vc40-tnt goto vc40-tnt
|
||||
if %1==vc40-w16 goto vc40-w16
|
||||
if %1==vc40-w32 goto vc40-w32
|
||||
if %1==vc40-c32 goto vc40-c32
|
||||
if %1==vc40-drv9x goto vc40-drv9x
|
||||
if %1==vc40-drvnt goto vc40-drvnt
|
||||
if %1==vc40-rtt goto vc40-rtt
|
||||
if %1==vc40-snp goto vc40-snp
|
||||
if %1==vc50-d16 goto vc50-d16
|
||||
if %1==vc50-tnt goto vc50-tnt
|
||||
if %1==vc50-w16 goto vc50-w16
|
||||
if %1==vc50-w32 goto vc50-w32
|
||||
if %1==vc50-c32 goto vc50-c32
|
||||
if %1==vc50-drv9x goto vc50-drv9x
|
||||
if %1==vc50-drvnt goto vc50-drvnt
|
||||
if %1==vc50-rtt goto vc50-rtt
|
||||
if %1==vc50-snp goto vc50-snp
|
||||
if %1==vc60-d16 goto vc60-d16
|
||||
if %1==vc60-tnt goto vc60-tnt
|
||||
if %1==vc60-w16 goto vc60-w16
|
||||
if %1==vc60-w32 goto vc60-w32
|
||||
if %1==vc60-c32 goto vc60-c32
|
||||
if %1==vc60-drv9x goto vc60-drv9x
|
||||
if %1==vc60-drvnt goto vc60-drvnt
|
||||
if %1==vc60-drvw2k goto vc60-drvw2k
|
||||
if %1==vc60-rtt goto vc60-rtt
|
||||
if %1==vc60-snp goto vc60-snp
|
||||
if %1==wc10ad16 goto wc10ad16
|
||||
if %1==wc10ad32 goto wc10ad32
|
||||
if %1==wc10atnt goto wc10atnt
|
||||
if %1==wc10aw16 goto wc10aw16
|
||||
if %1==wc10aw32 goto wc10aw32
|
||||
if %1==wc10ac32 goto wc10ac32
|
||||
if %1==wc10ao32 goto wc10ao32
|
||||
if %1==wc10ap32 goto wc10ap32
|
||||
if %1==wc10asnp goto wc10asnp
|
||||
if %1==wc10-d16 goto wc10-d16
|
||||
if %1==wc10-d32 goto wc10-d32
|
||||
if %1==wc10-tnt goto wc10-tnt
|
||||
if %1==wc10-w16 goto wc10-w16
|
||||
if %1==wc10-w32 goto wc10-w32
|
||||
if %1==wc10-c32 goto wc10-c32
|
||||
if %1==wc10-o32 goto wc10-o32
|
||||
if %1==wc10-p32 goto wc10-p32
|
||||
if %1==wc10-snp goto wc10-snp
|
||||
if %1==wc11-d16 goto wc11-d16
|
||||
if %1==wc11-d32 goto wc11-d32
|
||||
if %1==wc11-tnt goto wc11-tnt
|
||||
if %1==wc11-w16 goto wc11-w16
|
||||
if %1==wc11-w32 goto wc11-w32
|
||||
if %1==wc11-c32 goto wc11-c32
|
||||
if %1==wc11-o32 goto wc11-o32
|
||||
if %1==wc11-p32 goto wc11-p32
|
||||
if %1==wc11-snp goto wc11-snp
|
||||
|
||||
echo Usage: BUILD 'compiler_name' [DMAKE commands]
|
||||
echo.
|
||||
echo Where 'compiler_name' is of the form comp-os, where
|
||||
echo 'comp' defines the compiler and 'os' defines the OS environment.
|
||||
echo For instance 'bc50-w32' is for Borland C++ 5.0 for Win32.
|
||||
echo The value of 'comp' can be any of the following:
|
||||
echo.
|
||||
echo bc45 - Borland C++ 4.5x
|
||||
echo bc50 - Borland C++ 5.x
|
||||
echo vc40 - Visual C++ 4.x
|
||||
echo vc50 - Visual C++ 5.x
|
||||
echo vc60 - Visual C++ 6.x
|
||||
echo wc10 - Watcom C++ 10.6
|
||||
echo wc11 - Watcom C++ 11.0
|
||||
echo gcc2 - GNU C/C++ 2.9x
|
||||
echo.
|
||||
echo The value of 'os' can be one of the following:
|
||||
echo.
|
||||
echo d16 - 16-bit DOS
|
||||
echo d32 - 32-bit DOS
|
||||
echo w16 - 16-bit Windows GUI mode
|
||||
echo c32 - 32-bit Windows console mode
|
||||
echo w32 - 32-bit Windows GUI mode
|
||||
echo o16 - 16-bit OS/2 console mode
|
||||
echo o32 - 32-bit OS/2 console mode
|
||||
echo p32 - 32-bit OS/2 Presentation Manager
|
||||
echo snp - 32-bit SciTech Snap application
|
||||
echo linux - 32-bit Linux application
|
||||
goto end
|
||||
|
||||
rem -------------------------------------------------------------------------
|
||||
rem Setup for the specified compiler
|
||||
|
||||
:bc31-d16
|
||||
call bc31-d16.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-d16
|
||||
call bc45-d16.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-d32
|
||||
call bc45-d32.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-tnt
|
||||
call bc45-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-w16
|
||||
call bc45-w16.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-w32
|
||||
call bc45-w32.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-c32
|
||||
call bc45-c32.bat
|
||||
goto compileit
|
||||
|
||||
:bc45-vxd
|
||||
call bc45-vxd.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-d16
|
||||
call bc50-d16.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-d32
|
||||
call bc50-d32.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-tnt
|
||||
call bc50-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-w16
|
||||
call bc50-w16.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-w32
|
||||
call bc50-w32.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-c32
|
||||
call bc50-c32.bat
|
||||
goto compileit
|
||||
|
||||
:bc50-vxd
|
||||
call bc50-vxd.bat
|
||||
goto compileit
|
||||
|
||||
:gcc2-d32
|
||||
call gcc2-d32.bat
|
||||
goto compileit
|
||||
|
||||
:gcc2-w32
|
||||
call gcc2-w32.bat
|
||||
goto compileit
|
||||
|
||||
:gcc2-c32
|
||||
call gcc2-c32.bat
|
||||
goto compileit
|
||||
|
||||
:gcc2-linux
|
||||
call gcc2-linux.bat
|
||||
goto compileit
|
||||
|
||||
:sc70-d16
|
||||
call sc70-d16.bat
|
||||
goto compileit
|
||||
|
||||
:sc70-w16
|
||||
call sc70-w16.bat
|
||||
goto compileit
|
||||
|
||||
:sc70-tnt
|
||||
call sc70-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:sc70-w32
|
||||
call sc70-w32.bat
|
||||
goto compileit
|
||||
|
||||
:sc70-c32
|
||||
call sc70-c32.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-d16
|
||||
call vc40-d16.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-tnt
|
||||
call vc40-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-w16
|
||||
call vc40-w16.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-w32
|
||||
call vc40-w32.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-c32
|
||||
call vc40-c32.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-drv9x
|
||||
call vc40-drv9x.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-drvnt
|
||||
call vc40-drvnt.bat
|
||||
goto compileit
|
||||
|
||||
:vc40-rtt
|
||||
call vc40-rtt.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-d16
|
||||
call vc50-d16.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-tnt
|
||||
call vc50-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-w16
|
||||
call vc50-w16.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-w32
|
||||
call vc50-w32.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-c32
|
||||
call vc50-c32.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-drv9x
|
||||
call vc50-drv9x.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-drvnt
|
||||
call vc50-drvnt.bat
|
||||
goto compileit
|
||||
|
||||
:vc50-rtt
|
||||
call vc50-rtt.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-d16
|
||||
call vc60-d16.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-tnt
|
||||
call vc60-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-w16
|
||||
call vc60-w16.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-w32
|
||||
call vc60-w32.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-c32
|
||||
call vc60-c32.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-drv9x
|
||||
call vc60-drv9x.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-drvnt
|
||||
call vc60-drvnt.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-drvw2k
|
||||
call vc60-drvw2k.bat
|
||||
goto compileit
|
||||
|
||||
:vc60-rtt
|
||||
call vc60-rtt.bat
|
||||
goto compileit
|
||||
|
||||
:wc10ad16
|
||||
call wc10ad16.bat
|
||||
goto compileit
|
||||
|
||||
:wc10ad32
|
||||
call wc10ad32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10atnt
|
||||
call wc10atnt.bat
|
||||
goto compileit
|
||||
|
||||
:wc10aw16
|
||||
call wc10aw16.bat
|
||||
goto compileit
|
||||
|
||||
:wc10aw32
|
||||
call wc10aw32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10ac32
|
||||
call wc10ac32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10ao32
|
||||
call wc10ao32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10ap32
|
||||
call wc10ap32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-d16
|
||||
call wc10-d16.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-d32
|
||||
call wc10-d32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-tnt
|
||||
call wc10-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-w16
|
||||
call wc10-w16.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-w32
|
||||
call wc10-w32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-c32
|
||||
call wc10-c32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-o32
|
||||
call wc10-o32.bat
|
||||
goto compileit
|
||||
|
||||
:wc10-p32
|
||||
call wc10-p32.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-d16
|
||||
call wc11-d16.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-d32
|
||||
call wc11-d32.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-tnt
|
||||
call wc11-tnt.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-w16
|
||||
call wc11-w16.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-w32
|
||||
call wc11-w32.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-c32
|
||||
call wc11-c32.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-o32
|
||||
call wc11-o32.bat
|
||||
goto compileit
|
||||
|
||||
:wc11-p32
|
||||
call wc11-p32.bat
|
||||
goto compileit
|
||||
|
||||
:compileit
|
||||
k_rm -f *.lib *.a
|
||||
dmake %2 %3 %4 %5 %6 %7 %8 %9
|
||||
if errorlevel 1 goto errorend
|
||||
goto end
|
||||
|
||||
:errorend
|
||||
echo *************************************************
|
||||
echo * An error occurred while building the library. *
|
||||
echo *************************************************
|
||||
:end
|
||||
@@ -0,0 +1,6 @@
|
||||
@echo off
|
||||
%1
|
||||
cd %3
|
||||
%4 %5 %6 %7 %8 %9
|
||||
%2
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#! /bin/sh
|
||||
|
||||
cd $1
|
||||
PROG=$2
|
||||
shift 2
|
||||
rm -f *.lib *.a
|
||||
$PROG $*
|
||||
RET=$?
|
||||
cd ..
|
||||
exit $RET
|
||||
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
cd %1
|
||||
k_rm -f *.lib *.a
|
||||
shift 1
|
||||
%1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
@@ -0,0 +1,46 @@
|
||||
#= Don't edit this line unless you move djgpp.env outside
|
||||
#= of the djgpp installation directory. If you do move
|
||||
#= it, set DJDIR to the directory you installed DJGPP in.
|
||||
#=
|
||||
DJDIR=%:/>DJGPP%
|
||||
|
||||
+USER=dosuser
|
||||
+TMPDIR=%DJDIR%/tmp
|
||||
+EMU387=%DJDIR%/bin/emu387.dxe
|
||||
+LFN=y
|
||||
|
||||
[bison]
|
||||
BISON_HAIRY=%DJDIR%/lib/bison.hai
|
||||
BISON_SIMPLE=%DJDIR%/lib/bison.sim
|
||||
|
||||
[cpp]
|
||||
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%include;%SCITECH%/include;%PRIVATE%/include;.;%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/contrib/grx20/include
|
||||
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%include;%SCITECH%/include;%PRIVATE%/include;.;%DJDIR%/include;%DJDIR%/contrib/grx20/include
|
||||
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
|
||||
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
|
||||
|
||||
[gcc]
|
||||
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
|
||||
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib;%SCITECH%/lib/release/dos32/dj2
|
||||
|
||||
[info]
|
||||
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
|
||||
INFO_COLORS=0x1f.0x31
|
||||
|
||||
[emacs]
|
||||
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
|
||||
|
||||
[less]
|
||||
LESSBINFMT=*k<%X>
|
||||
LESSCHARDEF=8bcccbcc12bc5b95.b127.b
|
||||
LESS=%LESS% -h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$
|
||||
|
||||
[locate]
|
||||
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat
|
||||
|
||||
[ls]
|
||||
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
|
||||
[dir]
|
||||
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
|
||||
[vdir]
|
||||
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
|
||||
@@ -0,0 +1,46 @@
|
||||
#= Don't edit this line unless you move djgpp.env outside
|
||||
#= of the djgpp installation directory. If you do move
|
||||
#= it, set DJDIR to the directory you installed DJGPP in.
|
||||
#=
|
||||
DJDIR=%:/>DJGPP%
|
||||
|
||||
+USER=dosuser
|
||||
+TMPDIR=%DJDIR%/tmp
|
||||
+EMU387=%DJDIR%/bin/emu387.dxe
|
||||
+LFN=y
|
||||
|
||||
[bison]
|
||||
BISON_HAIRY=%DJDIR%/lib/bison.hai
|
||||
BISON_SIMPLE=%DJDIR%/lib/bison.sim
|
||||
|
||||
[cpp]
|
||||
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%include;%SCITECH%/include;%PRIVATE%/include;.;%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/contrib/grx20/include
|
||||
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%include;%SCITECH%/include;%PRIVATE%/include;.;%DJDIR%/include;%DJDIR%/contrib/grx20/include
|
||||
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
|
||||
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
|
||||
|
||||
[gcc]
|
||||
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
|
||||
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib;%SCITECH%/lib/debug/dos32/dj2
|
||||
|
||||
[info]
|
||||
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
|
||||
INFO_COLORS=0x1f.0x31
|
||||
|
||||
[emacs]
|
||||
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
|
||||
|
||||
[less]
|
||||
LESSBINFMT=*k<%X>
|
||||
LESSCHARDEF=8bcccbcc12bc5b95.b127.b
|
||||
LESS=%LESS% -h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$
|
||||
|
||||
[locate]
|
||||
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat
|
||||
|
||||
[ls]
|
||||
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
|
||||
[dir]
|
||||
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
|
||||
[vdir]
|
||||
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
|
||||
@@ -0,0 +1 @@
|
||||
perl c:\scitech\src\perl\findint3.per
|
||||
@@ -0,0 +1,16 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Setup for compiling with GCC/G++ for BeOS
|
||||
|
||||
if [ "$CHECKED" = "1" ]; then
|
||||
echo Checked debug build enabled.
|
||||
else
|
||||
echo Release build enabled.
|
||||
fi
|
||||
|
||||
export MAKESTARTUP=$SCITECH/makedefs/gcc_beos.mk
|
||||
export INCLUDE="-Iinclude -I$SCITECH/include -I$PRIVATE/include"
|
||||
export USE_X11=0
|
||||
export USE_BEOS=1
|
||||
|
||||
echo GCC BeOS console compilation environment set up
|
||||
@@ -0,0 +1,16 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Setup for compiling with GCC/G++ for FreeBSD
|
||||
|
||||
if [ "$CHECKED" = "1" ]; then
|
||||
echo Checked debug build enabled.
|
||||
else
|
||||
echo Release build enabled.
|
||||
fi
|
||||
|
||||
export MAKESTARTUP=$SCITECH/makedefs/gcc_freebsd.mk
|
||||
export INCLUDE="-Iinclude -I$SCITECH/include -I$PRIVATE/include"
|
||||
export USE_X11=1
|
||||
export USE_FREEBSD=1
|
||||
|
||||
echo GCC FreeBSD console compilation environment set up
|
||||
@@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Setup for compiling with GCC/G++ for Linux
|
||||
|
||||
if [ "$CHECKED" = "1" ]; then
|
||||
echo Checked debug build enabled.
|
||||
else
|
||||
echo Release build enabled.
|
||||
fi
|
||||
|
||||
export MAKESTARTUP=$SCITECH/makedefs/gcc_linux.mk
|
||||
export INCLUDE="include;$SCITECH/include;$PRIVATE/include"
|
||||
export USE_LINUX=1
|
||||
|
||||
if [ "x$LIBC" = x ]; then
|
||||
echo "GCC Linux console compilation environment set up (glib)"
|
||||
else
|
||||
echo "GCC Linux console compilation environment set up (libc5)"
|
||||
fi
|
||||
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
REM Setup for compiling with GNU C compiler
|
||||
|
||||
if .%CHECKED%==.1 goto checked_build
|
||||
set LIB=%SCITECH_LIB%\LIB\release\win32\gcc2
|
||||
echo Release build enabled.
|
||||
goto setvars
|
||||
|
||||
:checked_build
|
||||
set LIB=%SCITECH_LIB%\LIB\debug\win32\gcc2
|
||||
echo Checked debug build enabled.
|
||||
goto setvars
|
||||
|
||||
:setvars
|
||||
set INCLUDE=include;%SCITECH%\include;%PRIVATE%\include
|
||||
set MAKESTARTUP=%SCITECH%\makedefs\gcc_win32.mk
|
||||
set MAKE_MODE=
|
||||
set USE_WIN16=
|
||||
set USE_WIN32=1
|
||||
set WIN32_GUI=
|
||||
set USE_SNAP=
|
||||
set GCC_LIBBASE=gcc2
|
||||
PATH %SCITECH_BIN%;%GCC2_PATH%\NATIVE\BIN;%DEFPATH%
|
||||
|
||||
echo GCC 2.9.x 32-bit Win32 console compilation environment set up
|
||||
|
||||
Loaded 100 of 4578 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user