Compare commits
71 Commits
v1.3.3-rc3
...
v1.3.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
180a90abda | ||
|
|
a734c06bf7 | ||
|
|
16bedc661d | ||
|
|
3cc27b426a | ||
|
|
311f344693 | ||
|
|
a559317143 | ||
|
|
91f221317a | ||
|
|
dd22394413 | ||
|
|
a9da341df1 | ||
|
|
a38dc3ea86 | ||
|
|
4f805c1e3a | ||
|
|
35fca4c44d | ||
|
|
cda2a4a996 | ||
|
|
2dd7082e06 | ||
|
|
fdd1247a66 | ||
|
|
a8409f4f1a | ||
|
|
cf39b07948 | ||
|
|
085551c05c | ||
|
|
1510b82d50 | ||
|
|
70fab1908f | ||
|
|
65dcfa7920 | ||
|
|
5ddd67efa5 | ||
|
|
ee0cfa7080 | ||
|
|
02b9b22446 | ||
|
|
c9dca3c3f3 | ||
|
|
20e5ed1374 | ||
|
|
79dd171268 | ||
|
|
869d14b4cc | ||
|
|
f3612a7b19 | ||
|
|
36f32675f4 | ||
|
|
91a616741f | ||
|
|
881031d973 | ||
|
|
e5e9d6c9c0 | ||
|
|
cfd60441d8 | ||
|
|
cce9cfdabc | ||
|
|
9606b3c81b | ||
|
|
ceb6b4fbe1 | ||
|
|
2ab02fd456 | ||
|
|
f3f3175746 | ||
|
|
1b5605ca57 | ||
|
|
c59518e159 | ||
|
|
273c37d843 | ||
|
|
bc11756daf | ||
|
|
f3b6d528e4 | ||
|
|
7ea8325b41 | ||
|
|
4604f552a9 | ||
|
|
356cd17cc2 | ||
|
|
597f6c26a1 | ||
|
|
726c0f1e5f | ||
|
|
574b319512 | ||
|
|
045b4d2d71 | ||
|
|
4d49b28038 | ||
|
|
878b3b1e19 | ||
|
|
1df368aed3 | ||
|
|
8fbc985bda | ||
|
|
e419e12d04 | ||
|
|
f5a2425919 | ||
|
|
4d31cdc45d | ||
|
|
ef2642625c | ||
|
|
a00eccfebc | ||
|
|
cb5d88b961 | ||
|
|
d1c1ba85c7 | ||
|
|
4adb3023de | ||
|
|
b9bbefce1a | ||
|
|
66f5fa9263 | ||
|
|
a5fe514e8a | ||
|
|
49387dba91 | ||
|
|
908261f3fd | ||
|
|
0f8c62a14b | ||
|
|
12a67a9e51 | ||
|
|
b83dcc13ae |
744
CHANGELOG
744
CHANGELOG
@@ -1,3 +1,747 @@
|
|||||||
|
commit 16bedc661de0dae767b1377d8413373a3fbcfa79
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Mon May 19 07:14:38 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Canyonlands: Disable PCIe0/SATA in dev-tree depending on selection
|
||||||
|
|
||||||
|
When SATA is selected (via jumper J6) we need to disable the first PCIe
|
||||||
|
node in the device tree, so that Linux doesn't initialize it. Otherwise
|
||||||
|
the Linux SATA driver will fail to detect the devices.
|
||||||
|
|
||||||
|
The same goes the other way around too. So if PCIe is selected we need
|
||||||
|
to disable the SATA node in the device tree.
|
||||||
|
|
||||||
|
This is because PCIe port 0 and SATA on 460EX share the same pins
|
||||||
|
(multiplexed) and we have to configure in U-Boot which peripheral is
|
||||||
|
enabled.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit 3cc27b426aeefe2930f911692e9df3143fb2565f
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 18 19:09:58 2008 +0200
|
||||||
|
|
||||||
|
i386: Fix multiple definitions of __show_boot_progress
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit 311f3446930c1e64c12026c1cfd00500b05be52d
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 18 19:09:57 2008 +0200
|
||||||
|
|
||||||
|
sc530_spunk: add missing SOBJS entry
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit a559317143b4f95927b08cd388707e6f077e95fa
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 18 19:09:56 2008 +0200
|
||||||
|
|
||||||
|
sc520_spunk: Fix flash
|
||||||
|
|
||||||
|
flash.c:593: warning: dereferencing type-punned pointer will break strict-aliasing rules
|
||||||
|
flash.c:398: error: label at end of compound statement
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit 91f221317af64191ee8caf303ea9305943158691
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 18 19:09:49 2008 +0200
|
||||||
|
|
||||||
|
drivers/pcmcia: add missing i82365
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit dd223944132f97ffa52977ea95e5a52428f5cc2f
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 18 19:09:47 2008 +0200
|
||||||
|
|
||||||
|
i386/bootm: remove unused var
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit a9da341df19b32ad2ecb58ce529f7e4fada7814e
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 18 19:09:45 2008 +0200
|
||||||
|
|
||||||
|
example/gitignore: update with all generated examples
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit a38dc3ea8614f8b0c41e432b445a9959b9711295
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Thu May 15 00:42:45 2008 +0200
|
||||||
|
|
||||||
|
TQM8272: fix out-of-tree building
|
||||||
|
|
||||||
|
...and add to MAKEALL script
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit 4f805c1e3a60b9263da8ec3bcd1f45edcefa7dcf
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Wed May 14 23:34:53 2008 +0200
|
||||||
|
|
||||||
|
environment: fix bug introduced by commit a8409f4f1ac8
|
||||||
|
|
||||||
|
env_get_char is not a function, but a pointer to one.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit cda2a4a9961fd4341b7db305cb22fc05957e8b77
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Wed May 14 13:55:30 2008 +0200
|
||||||
|
|
||||||
|
Fix config files for out-of-tree building
|
||||||
|
|
||||||
|
Several board/<...>/config.mk files include dynamically built (by
|
||||||
|
the Makefile) config files but used the wrong file name of
|
||||||
|
$(TOPDIR)/board/$(BOARDDIR)/config.tmp
|
||||||
|
instead if the correct
|
||||||
|
$(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
|
The bug is nasty because the build result is correct for the (normal)
|
||||||
|
in-tree builds, and because 'sinclude' is used no errors get raised
|
||||||
|
even for out-of-tree build tests. But out-of-tree builds use an
|
||||||
|
incomplete and thus usually incorrect configuration...
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit 2dd7082e06d580404010b06fe4e0e8b7038a00c8
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Wed May 14 13:40:03 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Fix bogus Canyonlands config.mk
|
||||||
|
|
||||||
|
This patch fixes the canyonlands config.mk file to enable correct
|
||||||
|
out-of-tree builds. Thanks to Wolfgang Denk for spotting this.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit fdd1247a66d788a3446244f6fde9955a93c26322
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Wed May 14 10:32:32 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Individual handling of ddr2_fixed.c for canyonlands_nand build
|
||||||
|
|
||||||
|
Canyonlands has a file ddr2_fixed.c which needs special treatment when
|
||||||
|
building in separate directory. It has to be linked to build directory
|
||||||
|
otherwise it is not seen.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit a8409f4f1ac84c36273c1a1e341189662521bcfb
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Wed May 14 12:22:49 2008 +0200
|
||||||
|
|
||||||
|
environment: cleanup prototype declarations of env functions.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit cf39b07948015c480b72a6e732cf7d839aa93a9e
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Wed May 14 12:21:48 2008 +0200
|
||||||
|
|
||||||
|
linkstation_HGLAN: Fix out of tree building.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit 085551c05ca09e6c491ea11a1c6727a36776a545
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Wed May 14 10:32:32 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Individual handling of ddr2_fixed.c for canyonlands_nand build
|
||||||
|
|
||||||
|
Canyonlands has a file ddr2_fixed.c which needs special treatment when
|
||||||
|
building in separate directory. It has to be linked to build directory
|
||||||
|
otherwise it is not seen.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit 1510b82d50615f344e89d42533e8224cce067dc0
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Tue May 13 23:15:52 2008 +0200
|
||||||
|
|
||||||
|
Makefile: fix "error: version_autogenerated.h: No such file or directory"
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit 70fab1908fc1734a403711eaabbef546bc4b77dc
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Tue May 13 20:22:01 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Add 405EX(r) revision C PVR definitions and detection code
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit 65dcfa79204f4750b905a173a5365e0b2eb6c2f6
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Mon May 12 01:11:21 2008 +0200
|
||||||
|
|
||||||
|
Revert "pci: Add CONFIG_PCI_SKIP_HOST_BRIDGE config option"
|
||||||
|
|
||||||
|
This reverts commit 55774b512fdf63c0516d441cc5da7c54bbffb7f2
|
||||||
|
which broke many PowerPC boards.
|
||||||
|
|
||||||
|
commit ee0cfa70803a3e629ea581a9b216f8ecef402bfc
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Mon May 12 00:56:28 2008 +0200
|
||||||
|
|
||||||
|
Revert "Avoid initrd and logbuffer area overlaps"
|
||||||
|
|
||||||
|
This reverts commit 1b5605ca57fbb364f4d78eeee28b974ed875e888
|
||||||
|
which breaks building on all PPC boards that don't use a log buffer.
|
||||||
|
|
||||||
|
commit 02b9b22446e3d7ad6a6382be17a1ce79a7de589b
|
||||||
|
Author: Nick Spence <nick.spence@freescale.com>
|
||||||
|
Date: Sat May 10 14:02:04 2008 -0700
|
||||||
|
|
||||||
|
Fix offset calculation for multi-type legacy images.
|
||||||
|
|
||||||
|
Calculation of tail was incorrect when size % 4 == 0.
|
||||||
|
|
||||||
|
New code removes the conditional and does the same thing but with arithmetic
|
||||||
|
|
||||||
|
Signed-off-by: Nick Spence <nick.spence@freescale.com>
|
||||||
|
|
||||||
|
commit c9dca3c3f37d2647aec4509b24b16d15882ae3e4
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Mon May 12 00:40:58 2008 +0200
|
||||||
|
|
||||||
|
Revert "Change env_get_char from a global function ptr to a function."
|
||||||
|
|
||||||
|
This reverts commit c0559be371b2a64b1a817088c3308688e2182f93
|
||||||
|
which is known to break booting from dataflash and NAND.
|
||||||
|
|
||||||
|
commit 20e5ed137483823aaea5178169f3b144c7a4d9e0
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 11 23:13:57 2008 +0200
|
||||||
|
|
||||||
|
API: remove duplicate syscall check
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit 79dd1712689d6a5031d7cbff54957049680751c7
|
||||||
|
Author: Markus Klotzbücher <mk@denx.de>
|
||||||
|
Date: Thu May 8 16:00:55 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Kilauea: Add CONFIG_BOOTP_SUBNETMASK to Kilauea board config
|
||||||
|
|
||||||
|
When using dhcp/bootp the "netmask" environment variable is not set
|
||||||
|
because CONFIG_BOOTP_SUBNETMASK is not defined. But usually this is
|
||||||
|
desireable, so the following patch adds this this option to the board
|
||||||
|
config.
|
||||||
|
|
||||||
|
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit 869d14b4cc2e47de2ddcb117bad0407a44436684
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Sat May 10 10:30:36 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Update Makalu defconfig to use device-tree booting as default
|
||||||
|
|
||||||
|
This patch reworks the default environment on Makalu. Now "net_nfs" for
|
||||||
|
example uses the device-tree style booting formerly know as "net_nfs_fdt".
|
||||||
|
Also the addresses in RAM were changed because of the new image booting
|
||||||
|
support, which check for image overwriting. So the addresses needed to
|
||||||
|
get adjusted.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit f3612a7b199cab3942f60d9c1392eb39d58cc699
|
||||||
|
Author: Becky Bruce <bgill@freescale.com>
|
||||||
|
Date: Wed May 7 13:28:16 2008 -0500
|
||||||
|
|
||||||
|
PPC: fix map_physmem build warning
|
||||||
|
|
||||||
|
map_physmem currently generates a warning when CONFIG_PHYS_64BIT is
|
||||||
|
enabled. This quiets the warning.
|
||||||
|
|
||||||
|
Signed-off-by: Becky Bruce <Becky.Bruce@freescale.com>
|
||||||
|
|
||||||
|
commit 36f32675f40292002ee1fed252c180a43022d2d4
|
||||||
|
Author: Becky Bruce <bgill@freescale.com>
|
||||||
|
Date: Wed May 7 13:24:57 2008 -0500
|
||||||
|
|
||||||
|
Update pci code to use phys_addr_t
|
||||||
|
|
||||||
|
Physical addrs need to be represented by phys_addr_t, not
|
||||||
|
unsigned long. Otherwise, systems that use CONFIG_PHYS_64BIT
|
||||||
|
are going to fail mightily.
|
||||||
|
|
||||||
|
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
|
||||||
|
|
||||||
|
commit 91a616741fc128cdb88f39bddcd4d72fe17466d0
|
||||||
|
Author: Nick Spence <nick.spence@freescale.com>
|
||||||
|
Date: Thu May 8 22:32:22 2008 -0700
|
||||||
|
|
||||||
|
Support legacy multi-type images without FDT section.
|
||||||
|
|
||||||
|
This patch enables legacy multi-type images containing only a Linux kernel
|
||||||
|
and root file system to be loaded, maintaining compatibility with previous
|
||||||
|
versions of u-boot.
|
||||||
|
|
||||||
|
This is required when using old image files such as a Linux 2.4 kernel /
|
||||||
|
filesystem.
|
||||||
|
|
||||||
|
Signed-off-by: Nick Spence <nick.spence@freescale.com>
|
||||||
|
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
|
||||||
|
|
||||||
|
commit 881031d9732783b7aeae2198fc7eb480ae8974a6
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Sat May 10 00:38:02 2008 +0200
|
||||||
|
|
||||||
|
Update CHANGELOG.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit e5e9d6c9c08160be7e5a36e04d125ccce99b8774
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Sat May 10 00:36:09 2008 +0200
|
||||||
|
|
||||||
|
post/cpu/ppc4xx/Makefile: line length cleanup
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit cce9cfdabcf416ecd2aacc3681c91e5378c75a3d
|
||||||
|
Author: Stelian Pop <stelian@popies.net>
|
||||||
|
Date: Thu May 8 22:52:09 2008 +0200
|
||||||
|
|
||||||
|
Fix @ -> <at> substitution
|
||||||
|
|
||||||
|
When applying the AT91CAP9 patches upstream, something transformed
|
||||||
|
the '@' character into the ' <at> ' sequence.
|
||||||
|
|
||||||
|
The patch below restores the original form in all the places where
|
||||||
|
it has been modified (the AT91CAP9 files, the AT91SAM9260 files which
|
||||||
|
were copied from AT91CAP9, and a couple of other files where the
|
||||||
|
' <at> ' sequence was present).
|
||||||
|
|
||||||
|
Signed-off-by: Stelian Pop <stelian@popies.net>
|
||||||
|
|
||||||
|
commit 9606b3c81b3c47a1d58514e9a232c6f461a17597
|
||||||
|
Author: Stelian Pop <stelian@popies.net>
|
||||||
|
Date: Thu May 8 22:52:10 2008 +0200
|
||||||
|
|
||||||
|
Update origin and copyright information in arch-at91sam9 header files
|
||||||
|
|
||||||
|
When doing the AT91CAP9/AT91SAM9 port, a number of header files were
|
||||||
|
copied from the Linux kernel sources. This patch explicitly specifies
|
||||||
|
this origin for all the copied headers, and for those missing copyright
|
||||||
|
information, adds it.
|
||||||
|
|
||||||
|
Additionaly, the header file 'at91sam926x_mc.h' has been superceeded
|
||||||
|
in the latest kernel sources by 'at91sam9_smc.h'.
|
||||||
|
|
||||||
|
The copyright information has been confirmed by the AT91 Linux kernel
|
||||||
|
maintainer, Andrew Victor <avictor.za@gmail.com>.
|
||||||
|
|
||||||
|
Signed-off-by: Stelian Pop <stelian@popies.net>
|
||||||
|
|
||||||
|
commit ceb6b4fbe1dcc40bb672ef8133ddf4813e97cbb1
|
||||||
|
Author: Stelian Pop <stelian@popies.net>
|
||||||
|
Date: Thu May 8 22:52:11 2008 +0200
|
||||||
|
|
||||||
|
Add copyright information in Atmel boards partition.c
|
||||||
|
|
||||||
|
When Ulf did the dataflash.c cleanup, he didn't add his copyright on
|
||||||
|
the new created files. This patch fixes the problem.
|
||||||
|
|
||||||
|
Signed-off-by: Stelian Pop <stelian@popies.net>
|
||||||
|
|
||||||
|
commit 2ab02fd456d8ef92ae9f5439618d1fa7ca16e5f3
|
||||||
|
Author: Guennadi Liakhovetski <lg@denx.de>
|
||||||
|
Date: Thu May 8 10:09:27 2008 +0200
|
||||||
|
|
||||||
|
mx31ads: fix 32kHz clock handling
|
||||||
|
|
||||||
|
According to schematics and to RedBoot sources, the MX31ADS uses a 32768Hz
|
||||||
|
oscillator as a SKIL source. Fix previously wrongly assumed 32000Hz value.
|
||||||
|
Also fix a typo when verifying a jumper configuration. While at it, make
|
||||||
|
two needlessly global functions static.
|
||||||
|
|
||||||
|
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
|
||||||
|
|
||||||
|
commit 1b5605ca57fbb364f4d78eeee28b974ed875e888
|
||||||
|
Author: Marian Balakowicz <m8@semihalf.com>
|
||||||
|
Date: Wed May 7 13:10:04 2008 +0200
|
||||||
|
|
||||||
|
Avoid initrd and logbuffer area overlaps
|
||||||
|
|
||||||
|
Add logbuffer to reserved LMB areas to prevent initrd allocation
|
||||||
|
from overlaping with it.
|
||||||
|
|
||||||
|
Make sure to use correct logbuffer base address.
|
||||||
|
|
||||||
|
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
|
||||||
|
|
||||||
|
commit c59518e15949b3403df5c5b0c2c48ea0e5bea24b
|
||||||
|
Author: Marian Balakowicz <m8@semihalf.com>
|
||||||
|
Date: Wed May 7 13:08:54 2008 +0200
|
||||||
|
|
||||||
|
ppc: Cleanup get_effective_memsize() use
|
||||||
|
|
||||||
|
Removed duplicated effective memory size calculation code.
|
||||||
|
|
||||||
|
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
|
||||||
|
|
||||||
|
commit 273c37d843d5b581090378016cd12dd9c586907b
|
||||||
|
Author: Marian Balakowicz <m8@semihalf.com>
|
||||||
|
Date: Wed May 7 09:03:53 2008 +0200
|
||||||
|
|
||||||
|
Fix build errors when CONFIG_LOGBUFFER and CONFIG_FIT are enabled
|
||||||
|
|
||||||
|
Recent modifcations to LOGBUFFER handling code were incorrecly
|
||||||
|
introduced to fit_check_kernel() routine during
|
||||||
|
"Merge branch 'new-image' of git://www.denx.de/git/u-boot-testing",
|
||||||
|
commit 27f33e9f45ef7f9685cbdc65066a1828e85dde4f.
|
||||||
|
|
||||||
|
This patch cleans up this merge issue.
|
||||||
|
|
||||||
|
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
|
||||||
|
|
||||||
|
commit bc11756daff89a3de09ca80adac962b88cf06e6e
|
||||||
|
Author: Grant Erickson <gerickson@nuovations.com>
|
||||||
|
Date: Tue May 6 20:16:15 2008 -0700
|
||||||
|
|
||||||
|
Propagate Error Status to the Shell on fw_printenv Errors
|
||||||
|
|
||||||
|
Changed implementation such that fw_printenv returns failure status
|
||||||
|
when one or more specified variables do not exist or when incorrect
|
||||||
|
command syntax is used.
|
||||||
|
|
||||||
|
This aids scripting fw_printenv such that the script can key of the
|
||||||
|
return status rather than relying on standard error "scraping".
|
||||||
|
|
||||||
|
Signed-off-by: Grant Erickson <gerickson@nuovations.com>
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit f3b6d528e4dd719640a4bfcd954f4e4c7f5db0d6
|
||||||
|
Author: Grant Erickson <gerickson@nuovations.com>
|
||||||
|
Date: Tue May 6 16:18:00 2008 -0700
|
||||||
|
|
||||||
|
Fix Compilation Errors with 'tools/env/fw_printenv'
|
||||||
|
|
||||||
|
In the current top-of-tree, 1.3.3.-rc2, the optional tool
|
||||||
|
'tools/env/fw_printenv' fails to compile for two reasons:
|
||||||
|
|
||||||
|
1) The header watchdog.h cannot be found.
|
||||||
|
2) The header zlib.h is picked up from the tool chain rather than the
|
||||||
|
project causing a prototype conflict for crc32.
|
||||||
|
|
||||||
|
This patch addresses both of these issues.
|
||||||
|
|
||||||
|
Platforms Tested On:
|
||||||
|
- AMCC "Kilauea"
|
||||||
|
|
||||||
|
Signed-off-by: Grant Erickson <gerickson@nuovations.com>
|
||||||
|
|
||||||
|
commit 597f6c26a18b389903a64692bacbf9a1ca69355b
|
||||||
|
Author: James Yang <James.Yang@freescale.com>
|
||||||
|
Date: Mon May 5 10:22:53 2008 -0500
|
||||||
|
|
||||||
|
Fix readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating
|
||||||
|
|
||||||
|
When CONFIG_CMDLINE_EDITING is enabled, readline_into_buffer() doesn't
|
||||||
|
work before relocating to RAM because command history is written into
|
||||||
|
a global array that is not writable before relocation. This patch
|
||||||
|
defers to the no-editing and no-history code in readline_into_buffer()
|
||||||
|
if it is called before relocation.
|
||||||
|
|
||||||
|
Signed-off-by: James Yang <James.Yang@freescale.com>
|
||||||
|
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
|
||||||
|
|
||||||
|
commit 726c0f1e5f108dccea052965123b95837d2bd402
|
||||||
|
Author: Detlev Zundel <dzu@denx.de>
|
||||||
|
Date: Mon May 5 16:11:22 2008 +0200
|
||||||
|
|
||||||
|
cosmetic: Adjust coding style for switch statements to be consistent
|
||||||
|
|
||||||
|
Signed-off-by: Detlev Zundel <dzu@denx.de>
|
||||||
|
|
||||||
|
commit 574b319512b13e10800f0045e39b993f4ca25e42
|
||||||
|
Author: Detlev Zundel <dzu@denx.de>
|
||||||
|
Date: Mon May 5 16:11:21 2008 +0200
|
||||||
|
|
||||||
|
Fix disk type output in disk/part.c
|
||||||
|
|
||||||
|
Signed-off-by: Detlev Zundel <dzu@denx.de>
|
||||||
|
|
||||||
|
commit 045b4d2d7168ef09c7349dcf6ecebe7432b74171
|
||||||
|
Author: Vlad Lungu <vlad.lungu@windriver.com>
|
||||||
|
Date: Mon May 5 14:20:03 2008 +0300
|
||||||
|
|
||||||
|
Mail address change, documentation modified
|
||||||
|
|
||||||
|
Signed-off-by: Vlad Lungu <vlad.lungu@windrvier.com>
|
||||||
|
|
||||||
|
commit 4d49b28038e2819088e8356a77212fc95a89ce5a
|
||||||
|
Author: Michal Simek <monstr@monstr.eu>
|
||||||
|
Date: Sun May 4 15:42:41 2008 +0200
|
||||||
|
|
||||||
|
microblaze: Repare intc handling
|
||||||
|
|
||||||
|
Signed-off-by: Michal Simek <monstr@monstr.eu>
|
||||||
|
|
||||||
|
commit 878b3b1e193e570caf3e96ad8e31e561f68d0287
|
||||||
|
Author: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
Date: Sun May 4 15:17:52 2008 +0200
|
||||||
|
|
||||||
|
include/gitignore: update to all architectures
|
||||||
|
|
||||||
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||||
|
|
||||||
|
commit 1df368aed3b8bc240fe1595d290b0e91b22961da
|
||||||
|
Author: Marcel Ziswiler <marcel@ziswiler.com>
|
||||||
|
Date: Mon May 5 02:12:06 2008 +0200
|
||||||
|
|
||||||
|
ide: Remove spurious second include of io.h
|
||||||
|
|
||||||
|
Removed the second include, with all the #ifdef around as suggested by Wolfgang.
|
||||||
|
|
||||||
|
Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
|
||||||
|
|
||||||
|
commit 8fbc985bdad09b23b7eb4df1d2ea589619d8db4c
|
||||||
|
Author: Adrian Filipi <adrian.filipi@eurotech.com>
|
||||||
|
Date: Tue May 6 16:46:37 2008 -0400
|
||||||
|
|
||||||
|
Fix some typos
|
||||||
|
|
||||||
|
This patch fixes three typos.
|
||||||
|
The first is a repetition of CONFIG_CMD_BSP.
|
||||||
|
The second makes the #endif comment match its #if.
|
||||||
|
The third is a spelling error.
|
||||||
|
|
||||||
|
Signed-off-by: Adrian Filipi <adrian.filipi@eurotech.com>
|
||||||
|
|
||||||
|
commit e419e12d04ae3b280c99a87a2ea4ad7a40628bcb
|
||||||
|
Author: Grant Erickson <gerickson@nuovations.com>
|
||||||
|
Date: Sun May 4 16:45:01 2008 -0700
|
||||||
|
|
||||||
|
Recognize 'powerpc' As an Alias for IH_ARCH_PPC
|
||||||
|
|
||||||
|
Add support for the recognition of 'powerpc' as an alias for the PowerPC
|
||||||
|
architecture type since Linux is already trending in that direction,
|
||||||
|
preferring 'powerpc' to 'ppc'.
|
||||||
|
|
||||||
|
Signed-off-by: Grant Erickson <gerickson@nuovations.com>
|
||||||
|
|
||||||
|
commit f5a24259190c388c2527bdc49fee34577d862cc7
|
||||||
|
Author: Wheatley Travis <Travis.Wheatley@freescale.com>
|
||||||
|
Date: Fri May 2 13:35:15 2008 -0700
|
||||||
|
|
||||||
|
7450 and 86xx L2 cache invalidate bug corrections
|
||||||
|
|
||||||
|
The 7610 and related parts have an L2IP bit in the L2CR that is
|
||||||
|
monitored to signal when the L2 cache invalidate is complete whereas the
|
||||||
|
7450 and related parts utilize L2I for this purpose. However, the
|
||||||
|
current code does not account for this difference. Additionally the 86xx
|
||||||
|
L2 cache invalidate code used an "andi" instruction where an "andis"
|
||||||
|
instruction should have been used.
|
||||||
|
|
||||||
|
This patch addresses both of these bugs.
|
||||||
|
|
||||||
|
Signed-off-by: Travis Wheatley <travis.wheatley@freescale.com>
|
||||||
|
Acked-By: Jon Loeliger <jdl@freescale.com>
|
||||||
|
|
||||||
|
commit 4d31cdc45d3592a5545a649fb5a24b458a4e4b72
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Fri May 9 10:16:13 2008 +0200
|
||||||
|
|
||||||
|
Avoid infinite loop "Generating include/autoconf.mk"
|
||||||
|
|
||||||
|
Fix a bogus circular dependency that caused an infinite loop of
|
||||||
|
"Generating include/autoconf.mk" again and again.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit ef2642625cbfb1c3695e3478d08ae515052a4950
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Thu May 8 11:10:46 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Kilauea: Fix incorrect FPGA FIFO address
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit a00eccfebc954ad9485161efeca7d9aaf626d530
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Thu May 8 11:05:15 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Add fdt support to all remaining AMCC PPC4xx eval boards
|
||||||
|
|
||||||
|
This patch adds fdt (flattened device tree) support to all remaining AMCC
|
||||||
|
eval boards. Most newer boards already support device tree. With this patch,
|
||||||
|
all AMCC boards now enable device tree passing from U-Boot to Linux
|
||||||
|
arch/powerpc kernels.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit cb5d88b9611e0c35c53543ad3b4ab99fa82203e3
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Thu May 8 11:01:09 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: Add weak default ft_board_setup() routine
|
||||||
|
|
||||||
|
This patch adds a default ft_board_setup() routine to the 4xx fdt code.
|
||||||
|
This routine is defined as weak and can be overwritten by a board specific
|
||||||
|
one if needed.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit d1c1ba85c7915053adf6a8d14a08ac6fcb750d01
|
||||||
|
Author: Stefan Roese <sr@denx.de>
|
||||||
|
Date: Thu May 8 10:48:58 2008 +0200
|
||||||
|
|
||||||
|
ppc4xx: acadia: Add fdt support and fix section overlap problem
|
||||||
|
|
||||||
|
This patch adds fdt (flattened device tree) support to the AMCC
|
||||||
|
Acadia eval board. This increases the image size and it doesn't
|
||||||
|
fit anymore into 256kByte. Since we didn't want to remove features
|
||||||
|
from the configuration, we decided to increase the U-Boot image size
|
||||||
|
(add one flash sector).
|
||||||
|
|
||||||
|
Also changed the default environment definition to make it
|
||||||
|
independent of such changes.
|
||||||
|
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit 4adb3023de75bc150f088c8935db340930ad38c8
|
||||||
|
Author: Ira Snyder <iws@ovro.caltech.edu>
|
||||||
|
Date: Tue Apr 29 11:18:54 2008 -0700
|
||||||
|
|
||||||
|
ppc4xx: Add device tree support to AMCC Yosemite
|
||||||
|
|
||||||
|
Add support for booting with a device tree blob. This is needed to boot
|
||||||
|
ARCH=powerpc kernels. Also add support for setting the eth0 mac address
|
||||||
|
via the ethaddr variable.
|
||||||
|
|
||||||
|
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit b9bbefce1a653ea35f74a66ec117cdda2e043a4b
|
||||||
|
Author: Dave Mitchell <dmitchell@amcc.com>
|
||||||
|
Date: Wed May 7 09:00:23 2008 -0700
|
||||||
|
|
||||||
|
ppc4xx: Fix typos in 460GT/EX FBDV array
|
||||||
|
|
||||||
|
Corrected two typos in the 460GT/EX FBDV array.
|
||||||
|
|
||||||
|
Signed-off-by: Dave Mitchell <dmitchell@amcc.com>
|
||||||
|
Signed-off-by: Stefan Roese <sr@denx.de>
|
||||||
|
|
||||||
|
commit 66f5fa9263629271edc86178b1f224e3c9aab2b3
|
||||||
|
Author: Andy Fleming <afleming@freescale.com>
|
||||||
|
Date: Wed May 7 16:54:31 2008 -0500
|
||||||
|
|
||||||
|
85xx: Limit CPU2 workaround to parts that have the errata
|
||||||
|
|
||||||
|
Signed-off-by: Ebony Zhu <ebony.zhu@freescale.com>
|
||||||
|
Signed-off-by: Andy Fleming <afleming@freescale.com>
|
||||||
|
|
||||||
|
commit a5fe514e8ace564300d2c1d73846ddff49654243
|
||||||
|
Author: Lee Nipper <lee.nipper@freescale.com>
|
||||||
|
Date: Fri Apr 25 15:44:45 2008 -0500
|
||||||
|
|
||||||
|
mpc83xx: system performance settings for MPC8349EMDS.
|
||||||
|
|
||||||
|
These same settings are used on MPC8349ITX, and
|
||||||
|
improve performance on MPC8349EMDS.
|
||||||
|
|
||||||
|
Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
|
||||||
|
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
|
||||||
|
|
||||||
|
commit 49387dba910e485640b575e920ee463b7e611dc3
|
||||||
|
Author: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
|
||||||
|
Date: Tue May 6 13:22:52 2008 +0900
|
||||||
|
|
||||||
|
[MIPS] cpu/mips/cache.S: Fix build warning
|
||||||
|
|
||||||
|
Some old GNU assemblers, such as v2.14 (ELDK 3.1.1), v2.16 (ELDK 4.1.0),
|
||||||
|
warns illegal global symbol references by bal (and jal also) instruction.
|
||||||
|
This does not happen with the latest binutils v2.18.
|
||||||
|
|
||||||
|
Here's an example on gth2_config:
|
||||||
|
|
||||||
|
mips_4KC-gcc -D__ASSEMBLY__ -g -Os -D__KERNEL__ -DTEXT_BASE=0x90000000 -I/home/skuribay/devel/u-boot.git/include -fno-builtin -ffreestanding -nostdinc -isy
|
||||||
|
stem /opt/eldk311/usr/bin/../lib/gcc-lib/mips-linux/3.3.3/include -pipe -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -pipe -msoft-float -march=4kc -mtune=4k
|
||||||
|
c -EB -c -o cache.o cache.S
|
||||||
|
cache.S: Assembler messages:
|
||||||
|
cache.S:243: Warning: Pretending global symbol used as branch target is local.
|
||||||
|
cache.S:250: Warning: Pretending global symbol used as branch target is local.
|
||||||
|
|
||||||
|
In principle, gas might be sensitive to global symbol references in PIC
|
||||||
|
code because they should be processed through GOT (global offset table).
|
||||||
|
But if `bal' instruction is used, it results in PC-based offset jump.
|
||||||
|
This is the cause of this warning.
|
||||||
|
|
||||||
|
In practice, we know it doesn't matter whether PC-based reference or GOT-
|
||||||
|
based. As for this case, both will work before/after relocation. But let's
|
||||||
|
fix the code.
|
||||||
|
|
||||||
|
This patch explicitly sets up a target address, then jump there.
|
||||||
|
Here's an example of disassembled code with/without this patch.
|
||||||
|
|
||||||
|
90000668: 1485ffef bne a0,a1,90000628 <mips_cache_reset+0x20>
|
||||||
|
9000066c: ac80fffc sw zero,-4(a0)
|
||||||
|
90000670: 01402821 move a1,t2
|
||||||
|
-90000674: 0411ffba bal 90000560 <mips_init_icache>
|
||||||
|
-90000678: 01803021 move a2,t4
|
||||||
|
-9000067c: 01602821 move a1,t3
|
||||||
|
-90000680: 0411ffcc bal 900005b4 <mips_init_dcache>
|
||||||
|
-90000684: 01a03021 move a2,t5
|
||||||
|
-90000688: 03000008 jr t8
|
||||||
|
-9000068c: 00000000 nop
|
||||||
|
+90000674: 01803021 move a2,t4
|
||||||
|
+90000678: 8f8f83ec lw t7,-31764(gp)
|
||||||
|
+9000067c: 01e0f809 jalr t7
|
||||||
|
+90000680: 00000000 nop
|
||||||
|
+90000684: 01602821 move a1,t3
|
||||||
|
+90000688: 01a03021 move a2,t5
|
||||||
|
+9000068c: 8f8f81e0 lw t7,-32288(gp)
|
||||||
|
+90000690: 01e0f809 jalr t7
|
||||||
|
+90000694: 00000000 nop
|
||||||
|
+90000698: 03000008 jr t8
|
||||||
|
+9000069c: 00000000 nop
|
||||||
|
|
||||||
|
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
|
||||||
|
|
||||||
|
commit 0f8c62a14b523c56874ebcb67c1a16c99aad48b3
|
||||||
|
Author: Vlad Lungu <vlad.lungu@windriver.com>
|
||||||
|
Date: Mon May 5 14:04:00 2008 +0300
|
||||||
|
|
||||||
|
Allow building mips versions with ELDK 3.1.1
|
||||||
|
|
||||||
|
.gpword works only with local symbols on certain binutils versions
|
||||||
|
|
||||||
|
Signed-off-by: Vlad Lungu <vlad.lungu@windrvier.com>
|
||||||
|
|
||||||
|
commit 12a67a9e51f6b3ec26cb0f077fb5685a447c359d
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Mon May 5 12:52:36 2008 +0200
|
||||||
|
|
||||||
|
MAKEALL: add inka4x0 board
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit b83dcc13ae7b2dab394bfef6f699750d11490ee2
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Sun May 4 21:34:23 2008 +0200
|
||||||
|
|
||||||
|
kb9202 board: fix build problem.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
|
commit 6adf61dc4cb5c53a2df990cbc8df2bceacbfd869
|
||||||
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
|
Date: Sun May 4 12:10:33 2008 +0200
|
||||||
|
|
||||||
|
Prepare for v1.3.3-rc3
|
||||||
|
|
||||||
|
Update ChNAGELOG, minor white space cleanup.
|
||||||
|
|
||||||
|
Signed-off-by: Wolfgang Denk <wd@denx.de>
|
||||||
|
|
||||||
commit 7c0773fde6100b61be2558cb5d8c442a3194aecb
|
commit 7c0773fde6100b61be2558cb5d8c442a3194aecb
|
||||||
Author: Wolfgang Denk <wd@denx.de>
|
Author: Wolfgang Denk <wd@denx.de>
|
||||||
Date: Sun May 4 00:35:15 2008 +0200
|
Date: Sun May 4 00:35:15 2008 +0200
|
||||||
|
|||||||
@@ -607,7 +607,7 @@ Thomas Lange <thomas@corelatus.se>
|
|||||||
dbau1x00 MIPS32 Au1000
|
dbau1x00 MIPS32 Au1000
|
||||||
gth2 MIPS32 Au1000
|
gth2 MIPS32 Au1000
|
||||||
|
|
||||||
Vlad Lungu <vlad@comsys.ro>
|
Vlad Lungu <vlad.lungu@windriver.com>
|
||||||
qemu_mips MIPS32
|
qemu_mips MIPS32
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|||||||
2
MAKEALL
2
MAKEALL
@@ -42,6 +42,7 @@ LIST_5xxx=" \
|
|||||||
fo300 \
|
fo300 \
|
||||||
icecube_5100 \
|
icecube_5100 \
|
||||||
icecube_5200 \
|
icecube_5200 \
|
||||||
|
inka4x0 \
|
||||||
lite5200b \
|
lite5200b \
|
||||||
mcc200 \
|
mcc200 \
|
||||||
mecp5200 \
|
mecp5200 \
|
||||||
@@ -305,6 +306,7 @@ LIST_8260=" \
|
|||||||
TQM8260_AC \
|
TQM8260_AC \
|
||||||
TQM8260_AD \
|
TQM8260_AD \
|
||||||
TQM8260_AE \
|
TQM8260_AE \
|
||||||
|
TQM8272 \
|
||||||
ZPC1900 \
|
ZPC1900 \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|||||||
16
Makefile
16
Makefile
@@ -24,7 +24,7 @@
|
|||||||
VERSION = 1
|
VERSION = 1
|
||||||
PATCHLEVEL = 3
|
PATCHLEVEL = 3
|
||||||
SUBLEVEL = 3
|
SUBLEVEL = 3
|
||||||
EXTRAVERSION = -rc3
|
EXTRAVERSION =
|
||||||
U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
||||||
VERSION_FILE = $(obj)include/version_autogenerated.h
|
VERSION_FILE = $(obj)include/version_autogenerated.h
|
||||||
|
|
||||||
@@ -424,13 +424,19 @@ $(obj)System.map: $(obj)u-boot
|
|||||||
# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
|
# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
|
||||||
# the dep file is only include in this top level makefile to determine when
|
# the dep file is only include in this top level makefile to determine when
|
||||||
# to regenerate the autoconf.mk file.
|
# to regenerate the autoconf.mk file.
|
||||||
$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
|
$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
|
||||||
@$(XECHO) Generating include/autoconf.mk ; \
|
@$(XECHO) Generating $@ ; \
|
||||||
set -e ; \
|
set -e ; \
|
||||||
: Generate the dependancies ; \
|
: Generate the dependancies ; \
|
||||||
$(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
|
$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
|
||||||
|
-MQ $(obj)include/autoconf.mk include/common.h > $@
|
||||||
|
|
||||||
|
$(obj)include/autoconf.mk: $(obj)include/config.h
|
||||||
|
@$(XECHO) Generating $@ ; \
|
||||||
|
set -e ; \
|
||||||
: Extract the config macros ; \
|
: Extract the config macros ; \
|
||||||
$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
|
$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
|
||||||
|
sed -n -f tools/scripts/define2mk.sed > $@
|
||||||
|
|
||||||
sinclude $(obj)include/autoconf.mk.dep
|
sinclude $(obj)include/autoconf.mk.dep
|
||||||
|
|
||||||
|
|||||||
1
README
1
README
@@ -623,7 +623,6 @@ The following options need to be configured:
|
|||||||
CONFIG_CMD_SPI * SPI serial bus support
|
CONFIG_CMD_SPI * SPI serial bus support
|
||||||
CONFIG_CMD_USB * USB support
|
CONFIG_CMD_USB * USB support
|
||||||
CONFIG_CMD_VFD * VFD support (TRAB)
|
CONFIG_CMD_VFD * VFD support (TRAB)
|
||||||
CONFIG_CMD_BSP * Board SPecific functions
|
|
||||||
CONFIG_CMD_CDP * Cisco Discover Protocol support
|
CONFIG_CMD_CDP * Cisco Discover Protocol support
|
||||||
CONFIG_CMD_FSL * Microblaze FSL support
|
CONFIG_CMD_FSL * Microblaze FSL support
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <environment.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <api_public.h>
|
#include <api_public.h>
|
||||||
|
|
||||||
@@ -40,7 +41,6 @@
|
|||||||
|
|
||||||
/* U-Boot routines needed */
|
/* U-Boot routines needed */
|
||||||
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
|
||||||
extern uchar *env_get_addr(int);
|
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
@@ -582,7 +582,7 @@ int syscall(int call, int *retval, ...)
|
|||||||
va_list ap;
|
va_list ap;
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
if (call < 0 || call >= calls_no || calls_table[call] == NULL) {
|
if (call < 0 || call >= calls_no) {
|
||||||
debugf("invalid call #%d\n", call);
|
debugf("invalid call #%d\n", call);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
# MA 02111-1307 USA
|
# MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/textbase.mk
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/textbase.mk
|
||||||
ifndef TEXT_BASE
|
ifndef TEXT_BASE
|
||||||
TEXT_BASE = 0xFE000000
|
TEXT_BASE = 0xFE000000
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
ifndef TEXT_BASE
|
ifndef TEXT_BASE
|
||||||
TEXT_BASE = 0xFFFC0000
|
TEXT_BASE = 0xFFF80000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(debug),1)
|
ifeq ($(debug),1)
|
||||||
|
|||||||
@@ -476,8 +476,37 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
val[3] = gd->bd->bi_flashsize;
|
val[3] = gd->bd->bi_flashsize;
|
||||||
rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
|
rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
|
||||||
val, sizeof(val), 1);
|
val, sizeof(val), 1);
|
||||||
if (rc)
|
if (rc) {
|
||||||
printf("Unable to update property NOR mapping, err=%s\n",
|
printf("Unable to update property NOR mapping, err=%s\n",
|
||||||
fdt_strerror(rc));
|
fdt_strerror(rc));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gd->board_type == BOARD_CANYONLANDS_SATA) {
|
||||||
|
/*
|
||||||
|
* When SATA is selected we need to disable the first PCIe
|
||||||
|
* node in the device tree, so that Linux doesn't initialize
|
||||||
|
* it.
|
||||||
|
*/
|
||||||
|
rc = fdt_find_and_setprop(blob, "/plb/pciex@d00000000", "status",
|
||||||
|
"disabled", sizeof("disabled"), 1);
|
||||||
|
if (rc) {
|
||||||
|
printf("Unable to update property status in PCIe node, err=%s\n",
|
||||||
|
fdt_strerror(rc));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (gd->board_type == BOARD_CANYONLANDS_PCIE) {
|
||||||
|
/*
|
||||||
|
* When PCIe is selected we need to disable the SATA
|
||||||
|
* node in the device tree, so that Linux doesn't initialize
|
||||||
|
* it.
|
||||||
|
*/
|
||||||
|
rc = fdt_find_and_setprop(blob, "/plb/sata@bffd1000", "status",
|
||||||
|
"disabled", sizeof("disabled"), 1);
|
||||||
|
if (rc) {
|
||||||
|
printf("Unable to update property status in PCIe node, err=%s\n",
|
||||||
|
fdt_strerror(rc));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
|
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
|
||||||
|
|||||||
@@ -24,20 +24,12 @@
|
|||||||
# AMCC 460EX/460GT Evaluation Board (Canyonlands) board
|
# AMCC 460EX/460GT Evaluation Board (Canyonlands) board
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
ifndef TEXT_BASE
|
ifndef TEXT_BASE
|
||||||
TEXT_BASE = 0xFFFA0000
|
TEXT_BASE = 0xFFFA0000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_NAND_U_BOOT),y)
|
|
||||||
LDSCRIPT = $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_PCIBOOT_U_BOOT),y)
|
|
||||||
LDSCRIPT = $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds
|
|
||||||
endif
|
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_440=1
|
PLATFORM_CPPFLAGS += -DCONFIG_440=1
|
||||||
|
|
||||||
ifeq ($(debug),1)
|
ifeq ($(debug),1)
|
||||||
|
|||||||
@@ -230,14 +230,22 @@ int misc_init_r(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_emac_count(void)
|
static int is_405exr(void)
|
||||||
{
|
{
|
||||||
u32 pvr = get_pvr();
|
u32 pvr = get_pvr();
|
||||||
|
|
||||||
|
if (pvr & 0x00000004)
|
||||||
|
return 0; /* bit 2 set -> 405EX */
|
||||||
|
|
||||||
|
return 1; /* bit 2 cleared -> 405EXr */
|
||||||
|
}
|
||||||
|
|
||||||
|
int board_emac_count(void)
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* 405EXr only has one EMAC interface, 405EX has two
|
* 405EXr only has one EMAC interface, 405EX has two
|
||||||
*/
|
*/
|
||||||
if ((pvr == PVR_405EXR1_RA) || (pvr == PVR_405EXR2_RA))
|
if (is_405exr())
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return 2;
|
return 2;
|
||||||
@@ -245,12 +253,10 @@ int board_emac_count(void)
|
|||||||
|
|
||||||
static int board_pcie_count(void)
|
static int board_pcie_count(void)
|
||||||
{
|
{
|
||||||
u32 pvr = get_pvr();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 405EXr only has one EMAC interface, 405EX has two
|
* 405EXr only has one EMAC interface, 405EX has two
|
||||||
*/
|
*/
|
||||||
if ((pvr == PVR_405EXR1_RA) || (pvr == PVR_405EXR2_RA))
|
if (is_405exr())
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return 2;
|
return 2;
|
||||||
@@ -259,9 +265,8 @@ static int board_pcie_count(void)
|
|||||||
int checkboard (void)
|
int checkboard (void)
|
||||||
{
|
{
|
||||||
char *s = getenv("serial#");
|
char *s = getenv("serial#");
|
||||||
u32 pvr = get_pvr();
|
|
||||||
|
|
||||||
if ((pvr == PVR_405EXR1_RA) || (pvr == PVR_405EXR2_RA))
|
if (is_405exr())
|
||||||
printf("Board: Haleakala - AMCC PPC405EXr Evaluation Board");
|
printf("Board: Haleakala - AMCC PPC405EXr Evaluation Board");
|
||||||
else
|
else
|
||||||
printf("Board: Kilauea - AMCC PPC405EX Evaluation Board");
|
printf("Board: Kilauea - AMCC PPC405EX Evaluation Board");
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <spd_sdram.h>
|
#include <spd_sdram.h>
|
||||||
|
#include <libfdt.h>
|
||||||
|
#include <fdt_support.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
@@ -554,3 +556,24 @@ void board_reset(void)
|
|||||||
/* give reset to BCSR */
|
/* give reset to BCSR */
|
||||||
*(unsigned char *)(CFG_BCSR_BASE | 0x06) = 0x09;
|
*(unsigned char *)(CFG_BCSR_BASE | 0x06) = 0x09;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
|
||||||
|
void ft_board_setup(void *blob, bd_t *bd)
|
||||||
|
{
|
||||||
|
u32 val[4];
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
ft_cpu_setup(blob, bd);
|
||||||
|
|
||||||
|
/* Fixup NOR mapping */
|
||||||
|
val[0] = 0; /* chip select number */
|
||||||
|
val[1] = 0; /* always 0 */
|
||||||
|
val[2] = gd->bd->bi_flashstart;
|
||||||
|
val[3] = gd->bd->bi_flashsize;
|
||||||
|
rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
|
||||||
|
val, sizeof(val), 1);
|
||||||
|
if (rc)
|
||||||
|
printf("Unable to update property NOR mapping, err=%s\n",
|
||||||
|
fdt_strerror(rc));
|
||||||
|
}
|
||||||
|
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# (C) Copyright 2003-2008
|
# (C) Copyright 2003-2008
|
||||||
# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de.
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
#
|
#
|
||||||
# See file CREDITS for list of people who contributed to this
|
# See file CREDITS for list of people who contributed to this
|
||||||
# project.
|
# project.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/arch/at91cap9.h>
|
#include <asm/arch/at91cap9.h>
|
||||||
#include <asm/arch/at91cap9_matrix.h>
|
#include <asm/arch/at91cap9_matrix.h>
|
||||||
#include <asm/arch/at91sam926x_mc.h>
|
#include <asm/arch/at91sam9_smc.h>
|
||||||
#include <asm/arch/at91_pmc.h>
|
#include <asm/arch/at91_pmc.h>
|
||||||
#include <asm/arch/at91_rstc.h>
|
#include <asm/arch/at91_rstc.h>
|
||||||
#include <asm/arch/gpio.h>
|
#include <asm/arch/gpio.h>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
|
* (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
* (C) Copyright 2008
|
||||||
|
* Ulf Samuelsson <ulf@atmel.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License as
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2002
|
* (C) Copyright 2002
|
||||||
* Gary Jennejohn, DENX Software Engineering, <gj <at> denx.de>
|
* Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
* (C) Copyright 2008
|
||||||
|
* Ulf Samuelsson <ulf@atmel.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License as
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# (C) Copyright 2003-2008
|
# (C) Copyright 2003-2008
|
||||||
# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de.
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
#
|
#
|
||||||
# See file CREDITS for list of people who contributed to this
|
# See file CREDITS for list of people who contributed to this
|
||||||
# project.
|
# project.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/arch/at91sam9260.h>
|
#include <asm/arch/at91sam9260.h>
|
||||||
#include <asm/arch/at91sam9260_matrix.h>
|
#include <asm/arch/at91sam9260_matrix.h>
|
||||||
#include <asm/arch/at91sam926x_mc.h>
|
#include <asm/arch/at91sam9_smc.h>
|
||||||
#include <asm/arch/at91_pmc.h>
|
#include <asm/arch/at91_pmc.h>
|
||||||
#include <asm/arch/at91_rstc.h>
|
#include <asm/arch/at91_rstc.h>
|
||||||
#include <asm/arch/gpio.h>
|
#include <asm/arch/gpio.h>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
|
* (C) Copyright 2006 ATMEL Rousset, Lacressonniere Nicolas
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
* (C) Copyright 2008
|
||||||
|
* Ulf Samuelsson <ulf@atmel.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License as
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2002
|
* (C) Copyright 2002
|
||||||
* Gary Jennejohn, DENX Software Engineering, <gj <at> denx.de>
|
* Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
# 0x00100000 boot from RAM (for testing only)
|
# 0x00100000 boot from RAM (for testing only)
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
ifndef TEXT_BASE
|
ifndef TEXT_BASE
|
||||||
## Standard: boot high
|
## Standard: boot high
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ int checkboard (void)
|
|||||||
uint pci_slot = get_pci_slot ();
|
uint pci_slot = get_pci_slot ();
|
||||||
|
|
||||||
uint cpu_board_rev = get_cpu_board_revision ();
|
uint cpu_board_rev = get_cpu_board_revision ();
|
||||||
|
uint svr;
|
||||||
|
|
||||||
printf ("Board: CDS Version 0x%02x, PCI Slot %d\n",
|
printf ("Board: CDS Version 0x%02x, PCI Slot %d\n",
|
||||||
get_board_version (), pci_slot);
|
get_board_version (), pci_slot);
|
||||||
@@ -71,12 +72,16 @@ int checkboard (void)
|
|||||||
*/
|
*/
|
||||||
local_bus_init ();
|
local_bus_init ();
|
||||||
|
|
||||||
|
svr = get_svr();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fix CPU2 errata: A core hang possible while executing a
|
* Fix CPU2 errata: A core hang possible while executing a
|
||||||
* msync instruction and a snoopable transaction from an I/O
|
* msync instruction and a snoopable transaction from an I/O
|
||||||
* master tagged to make quick forward progress is present.
|
* master tagged to make quick forward progress is present.
|
||||||
|
* Fixed in Silicon Rev.2.1
|
||||||
*/
|
*/
|
||||||
ecm->eebpcr |= (1 << 16);
|
if (!(SVR_MAJ(svr) >= 2 && SVR_MIN(svr) >= 1))
|
||||||
|
ecm->eebpcr |= (1 << 16);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hack TSEC 3 and 4 IO voltages.
|
* Hack TSEC 3 and 4 IO voltages.
|
||||||
|
|||||||
@@ -23,18 +23,21 @@
|
|||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
OBJS = $(BOARD).o ide.o hwctl.o avr.o
|
OBJS = $(BOARD).o ide.o hwctl.o avr.o
|
||||||
|
|
||||||
$(LIB): .depend $(OBJS) $(SOBJS)
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
$(AR) crv $@ $(OBJS) $(SOBJS)
|
OBJS := $(addprefix $(obj),$(OBJS))
|
||||||
|
|
||||||
|
$(LIB): $(obj).depend $(OBJS)
|
||||||
|
$(AR) crv $@ $(OBJS)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
|
# defines $(obj).depend target
|
||||||
$(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
|
include $(SRCTREE)/rules.mk
|
||||||
|
|
||||||
sinclude .depend
|
sinclude $(obj).depend
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
# 0x07F00000 boot from RAM
|
# 0x07F00000 boot from RAM
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
ifndef TEXT_BASE
|
ifndef TEXT_BASE
|
||||||
# For flash image - all models
|
# For flash image - all models
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
# 0xFFF00000 boot high (standard configuration)
|
# 0xFFF00000 boot high (standard configuration)
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
ifndef TEXT_BASE
|
ifndef TEXT_BASE
|
||||||
TEXT_BASE = 0xFFF00000
|
TEXT_BASE = 0xFFF00000
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ lowlevel_init:
|
|||||||
mov r1, #CS4_BASE
|
mov r1, #CS4_BASE
|
||||||
ldrh r1, [r1, #0x2]
|
ldrh r1, [r1, #0x2]
|
||||||
/* Is 27MHz switch set? */
|
/* Is 27MHz switch set? */
|
||||||
ands r1, r1, #0x16
|
ands r1, r1, #0x10
|
||||||
|
|
||||||
/* 532-133-66.5 */
|
/* 532-133-66.5 */
|
||||||
ldr r0, =CCM_BASE
|
ldr r0, =CCM_BASE
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
By Vlad Lungu vlad@comsys.ro 2007-Oct-01
|
By Vlad Lungu vlad.lungu@windriver.com 2007-Oct-01
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
Qemu is a full system emulator. See
|
Qemu is a full system emulator. See
|
||||||
|
|
||||||
@@ -9,3 +9,7 @@ Limitations & comments
|
|||||||
Supports the "-m mips" configuration of qemu: serial,NE2000,IDE.
|
Supports the "-m mips" configuration of qemu: serial,NE2000,IDE.
|
||||||
Support is big endian only for now (or at least this is what I tested).
|
Support is big endian only for now (or at least this is what I tested).
|
||||||
Derived from au1x00 with a lot of things cut out.
|
Derived from au1x00 with a lot of things cut out.
|
||||||
|
|
||||||
|
Supports emulated flash (patch Jean-Christophe PLAGNIOL-VILLARD) with
|
||||||
|
recent qemu versions. When using emulated flash, launch with
|
||||||
|
-pflash <filename> and erase mips_bios.bin.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007
|
* (C) Copyright 2007
|
||||||
* Vlad Lungu vlad@comsys.ro
|
* Vlad Lungu vlad.lungu@windriver.com
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ done: movb $0x88, %al
|
|||||||
jmp *%ebp /* return to caller */
|
jmp *%ebp /* return to caller */
|
||||||
|
|
||||||
|
|
||||||
.globl __show_boot_progress
|
.globl show_boot_progress
|
||||||
__show_boot_progress:
|
show_boot_progress:
|
||||||
out %al, $0x80
|
out %al, $0x80
|
||||||
xchg %al, %ah
|
xchg %al, %ah
|
||||||
movw $0x680, %dx
|
movw $0x680, %dx
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ OBJS := $(addprefix $(obj),$(COBJS))
|
|||||||
SOBJS := $(addprefix $(obj),$(SOBJS))
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
||||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SOBJS) $(OBJS)
|
rm -f $(SOBJS) $(OBJS)
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#define PROBE_BUFFER_SIZE 1024
|
#define PROBE_BUFFER_SIZE 1024
|
||||||
static unsigned char buffer[PROBE_BUFFER_SIZE];
|
static unsigned char buffer[PROBE_BUFFER_SIZE];
|
||||||
|
|
||||||
|
|
||||||
#define SC520_MAX_FLASH_BANKS 1
|
#define SC520_MAX_FLASH_BANKS 1
|
||||||
#define SC520_FLASH_BANK0_BASE 0x38000000 /* BOOTCS */
|
#define SC520_FLASH_BANK0_BASE 0x38000000 /* BOOTCS */
|
||||||
#define SC520_FLASH_BANKSIZE 0x8000000
|
#define SC520_FLASH_BANKSIZE 0x8000000
|
||||||
@@ -62,7 +61,6 @@ flash_info_t flash_info[SC520_MAX_FLASH_BANKS];
|
|||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
static u32 _probe_flash(u32 addr, u32 bw, int il)
|
static u32 _probe_flash(u32 addr, u32 bw, int il)
|
||||||
{
|
{
|
||||||
u32 result=0;
|
u32 result=0;
|
||||||
@@ -180,7 +178,6 @@ static u32 _probe_flash(u32 addr, u32 bw, int il)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,11 +212,9 @@ static int identify_flash(unsigned address, int width)
|
|||||||
enable_interrupts();
|
enable_interrupts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
vendor = res >> 16;
|
vendor = res >> 16;
|
||||||
device = res & 0xffff;
|
device = res & 0xffff;
|
||||||
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,7 +380,6 @@ void flash_print_info(flash_info_t *info)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
printf(" Size: %ld MB in %d Sectors\n",
|
printf(" Size: %ld MB in %d Sectors\n",
|
||||||
info->size >> 20, info->sector_count);
|
info->size >> 20, info->sector_count);
|
||||||
|
|
||||||
@@ -399,13 +393,13 @@ void flash_print_info(flash_info_t *info)
|
|||||||
}
|
}
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
static u32 _amd_erase_flash(u32 addr, u32 sector)
|
static u32 _amd_erase_flash(u32 addr, u32 sector)
|
||||||
{
|
{
|
||||||
unsigned elapsed;
|
unsigned elapsed;
|
||||||
@@ -467,7 +461,6 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)
|
|||||||
*(volatile u16*)(addr + sector) = 0x0020; /* erase setup */
|
*(volatile u16*)(addr + sector) = 0x0020; /* erase setup */
|
||||||
*(volatile u16*)(addr + sector) = 0x00D0; /* erase confirm */
|
*(volatile u16*)(addr + sector) = 0x00D0; /* erase confirm */
|
||||||
|
|
||||||
|
|
||||||
/* Wait at least 80us - let's wait 1 ms */
|
/* Wait at least 80us - let's wait 1 ms */
|
||||||
__udelay(1000);
|
__udelay(1000);
|
||||||
|
|
||||||
@@ -486,7 +479,6 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern int _intel_erase_flash_end;
|
extern int _intel_erase_flash_end;
|
||||||
asm ("_intel_erase_flash_end:\n"
|
asm ("_intel_erase_flash_end:\n"
|
||||||
".long 0\n");
|
".long 0\n");
|
||||||
@@ -548,7 +540,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
|
|||||||
printf ("\n");
|
printf ("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Start erase on unprotected sectors */
|
/* Start erase on unprotected sectors */
|
||||||
for (sect = s_first; sect<=s_last; sect++) {
|
for (sect = s_first; sect<=s_last; sect++) {
|
||||||
|
|
||||||
@@ -566,7 +557,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
|
|||||||
enable_interrupts();
|
enable_interrupts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
printf("Erase timed out, sector %d\n", sect);
|
printf("Erase timed out, sector %d\n", sect);
|
||||||
return res;
|
return res;
|
||||||
@@ -576,7 +566,6 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,11 +575,11 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
|
|||||||
* 1 - write timeout
|
* 1 - write timeout
|
||||||
* 2 - Flash not erased
|
* 2 - Flash not erased
|
||||||
*/
|
*/
|
||||||
static int _amd_write_word(unsigned start, unsigned dest, unsigned data)
|
static int _amd_write_word(unsigned start, unsigned dest, u16 data)
|
||||||
{
|
{
|
||||||
volatile u16 *addr2 = (u16*)start;
|
volatile u16 *addr2 = (volatile u16*)start;
|
||||||
volatile u16 *dest2 = (u16*)dest;
|
volatile u16 *dest2 = (volatile u16*)dest;
|
||||||
volatile u16 *data2 = (u16*)&data;
|
volatile u16 *data2 = (volatile u16*)&data;
|
||||||
int i;
|
int i;
|
||||||
unsigned elapsed;
|
unsigned elapsed;
|
||||||
|
|
||||||
@@ -601,7 +590,6 @@ static int _amd_write_word(unsigned start, unsigned dest, unsigned data)
|
|||||||
|
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
|
|
||||||
|
|
||||||
addr2[0x5555] = 0x00AA;
|
addr2[0x5555] = 0x00AA;
|
||||||
addr2[0x2aaa] = 0x0055;
|
addr2[0x2aaa] = 0x0055;
|
||||||
addr2[0x5555] = 0x00A0;
|
addr2[0x5555] = 0x00A0;
|
||||||
@@ -630,7 +618,6 @@ extern int _amd_write_word_end;
|
|||||||
asm ("_amd_write_word_end:\n"
|
asm ("_amd_write_word_end:\n"
|
||||||
".long 0\n");
|
".long 0\n");
|
||||||
|
|
||||||
|
|
||||||
static int _intel_write_word(unsigned start, unsigned dest, unsigned data)
|
static int _intel_write_word(unsigned start, unsigned dest, unsigned data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -663,14 +650,12 @@ static int _intel_write_word(unsigned start, unsigned dest, unsigned data)
|
|||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int _intel_write_word_end;
|
extern int _intel_write_word_end;
|
||||||
asm ("_intel_write_word_end:\n"
|
asm ("_intel_write_word_end:\n"
|
||||||
".long 0\n");
|
".long 0\n");
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Copy memory to flash, returns:
|
* Copy memory to flash, returns:
|
||||||
* 0 - OK
|
* 0 - OK
|
||||||
@@ -715,10 +700,8 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
|
|||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wp = (addr & ~3); /* get lower word aligned address */
|
wp = (addr & ~3); /* get lower word aligned address */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* handle unaligned start bytes
|
* handle unaligned start bytes
|
||||||
*/
|
*/
|
||||||
@@ -805,5 +788,4 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ done: movl $0xfffefc32,%edx
|
|||||||
jmp *%ebp /* return to caller */
|
jmp *%ebp /* return to caller */
|
||||||
|
|
||||||
|
|
||||||
.globl __show_boot_progress
|
.globl show_boot_progress
|
||||||
__show_boot_progress:
|
show_boot_progress:
|
||||||
movl $0xfffefc32,%edx
|
movl $0xfffefc32,%edx
|
||||||
xorw $0xffff, %ax
|
xorw $0xffff, %ax
|
||||||
movw %ax,(%edx)
|
movw %ax,(%edx)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# (C) Copyright 2001
|
# (C) Copyright 2001-2008
|
||||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
#
|
#
|
||||||
# See file CREDITS for list of people who contributed to this
|
# See file CREDITS for list of people who contributed to this
|
||||||
@@ -22,19 +22,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
|
ifneq ($(OBJTREE),$(SRCTREE))
|
||||||
|
$(shell mkdir -p $(obj)../tqm8xx/)
|
||||||
|
endif
|
||||||
|
|
||||||
LIB = lib$(BOARD).a
|
LIB = $(obj)lib$(BOARD).a
|
||||||
|
|
||||||
OBJS = $(BOARD).o ../tqm8xx/load_sernum_ethaddr.o
|
COBJS = $(BOARD).o ../tqm8xx/load_sernum_ethaddr.o
|
||||||
|
|
||||||
$(LIB): .depend $(OBJS)
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
$(AR) crv $@ $(OBJS)
|
OBJS := $(addprefix $(obj),$(COBJS))
|
||||||
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
||||||
|
|
||||||
|
$(LIB): $(obj).depend $(OBJS)
|
||||||
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
|
# defines $(obj).depend target
|
||||||
$(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
|
include $(SRCTREE)/rules.mk
|
||||||
|
|
||||||
sinclude .depend
|
sinclude $(obj).depend
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
# MarelV38B board
|
# MarelV38B board
|
||||||
#
|
#
|
||||||
|
|
||||||
sinclude $(TOPDIR)/board/$(BOARDDIR)/config.tmp
|
sinclude $(OBJTREE)/board/$(BOARDDIR)/config.tmp
|
||||||
|
|
||||||
TEXT_BASE = 0xFF000000
|
TEXT_BASE = 0xFF000000
|
||||||
|
|
||||||
|
|||||||
@@ -433,17 +433,6 @@ static int fit_check_kernel (const void *fit, int os_noffset, int verify)
|
|||||||
}
|
}
|
||||||
show_boot_progress (105);
|
show_boot_progress (105);
|
||||||
|
|
||||||
#ifdef CONFIG_LOGBUFFER
|
|
||||||
#ifndef CONFIG_ALT_LB_ADDR
|
|
||||||
kbd=gd->bd;
|
|
||||||
/* Prevent initrd from overwriting logbuffer */
|
|
||||||
if (initrd_high < (kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD))
|
|
||||||
initrd_high = kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD;
|
|
||||||
debug ("## Logbuffer at 0x%08lX ", kbd->bi_memsize-LOGBUFF_LEN);
|
|
||||||
#else
|
|
||||||
debug ("## Logbuffer at 0x%08lX ", CONFIG_ALT_LB_ADDR);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
if (!fit_image_check_target_arch (fit, os_noffset)) {
|
if (!fit_image_check_target_arch (fit, os_noffset)) {
|
||||||
puts ("Unsupported Architecture\n");
|
puts ("Unsupported Architecture\n");
|
||||||
show_boot_progress (-105);
|
show_boot_progress (-105);
|
||||||
|
|||||||
@@ -52,10 +52,6 @@
|
|||||||
# include <status_led.h>
|
# include <status_led.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __PPC__
|
|
||||||
#include <asm/io.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_IDE_8xx_DIRECT
|
#ifdef CONFIG_IDE_8xx_DIRECT
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -68,16 +68,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
/************************************************************************
|
/************************************************************************
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
/* Function that returns a pointer to a value from the environment */
|
|
||||||
/* (Only memory version supported / needed). */
|
|
||||||
extern uchar *env_get_addr(int);
|
|
||||||
|
|
||||||
/* Function that updates CRC of the enironment */
|
|
||||||
extern void env_crc_update (void);
|
|
||||||
|
|
||||||
/************************************************************************
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table with supported baudrates (defined in config_xyz.h)
|
* Table with supported baudrates (defined in config_xyz.h)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ extern void env_relocate_spec (void);
|
|||||||
extern uchar env_get_char_spec(int);
|
extern uchar env_get_char_spec(int);
|
||||||
|
|
||||||
static uchar env_get_char_init (int index);
|
static uchar env_get_char_init (int index);
|
||||||
|
uchar (*env_get_char)(int) = env_get_char_init;
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* Default settings to be used when no valid environment is found
|
* Default settings to be used when no valid environment is found
|
||||||
@@ -181,19 +182,6 @@ uchar env_get_char_memory (int index)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uchar env_get_char (int index)
|
|
||||||
{
|
|
||||||
uchar c;
|
|
||||||
|
|
||||||
/* if relocated to RAM */
|
|
||||||
if (gd->flags & GD_FLG_RELOC)
|
|
||||||
c = env_get_char_memory(index);
|
|
||||||
else
|
|
||||||
c = env_get_char_init(index);
|
|
||||||
|
|
||||||
return (c);
|
|
||||||
}
|
|
||||||
|
|
||||||
uchar *env_get_addr (int index)
|
uchar *env_get_addr (int index)
|
||||||
{
|
{
|
||||||
if (gd->env_valid) {
|
if (gd->env_valid) {
|
||||||
@@ -227,6 +215,11 @@ void env_relocate (void)
|
|||||||
DEBUGF ("%s[%d] malloced ENV at %p\n", __FUNCTION__,__LINE__,env_ptr);
|
DEBUGF ("%s[%d] malloced ENV at %p\n", __FUNCTION__,__LINE__,env_ptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* After relocation to RAM, we can always use the "memory" functions
|
||||||
|
*/
|
||||||
|
env_get_char = env_get_char_memory;
|
||||||
|
|
||||||
if (gd->env_valid == 0) {
|
if (gd->env_valid == 0) {
|
||||||
#if defined(CONFIG_GTH) || defined(CFG_ENV_IS_NOWHERE) /* Environment not changable */
|
#if defined(CONFIG_GTH) || defined(CFG_ENV_IS_NOWHERE) /* Environment not changable */
|
||||||
puts ("Using default environment\n\n");
|
puts ("Using default environment\n\n");
|
||||||
|
|||||||
@@ -38,9 +38,6 @@ env_t *env_ptr = NULL;
|
|||||||
|
|
||||||
char * env_name_spec = "EEPROM";
|
char * env_name_spec = "EEPROM";
|
||||||
|
|
||||||
extern uchar env_get_char_memory (int index);
|
|
||||||
|
|
||||||
|
|
||||||
uchar env_get_char_spec (int index)
|
uchar env_get_char_spec (int index)
|
||||||
{
|
{
|
||||||
uchar c;
|
uchar c;
|
||||||
|
|||||||
@@ -63,8 +63,6 @@ char * env_name_spec = "NVRAM";
|
|||||||
extern uchar default_environment[];
|
extern uchar default_environment[];
|
||||||
extern int default_environment_size;
|
extern int default_environment_size;
|
||||||
|
|
||||||
extern uchar env_get_char_memory (int index);
|
|
||||||
|
|
||||||
#ifdef CONFIG_AMIGAONEG3SE
|
#ifdef CONFIG_AMIGAONEG3SE
|
||||||
uchar env_get_char_spec (int index)
|
uchar env_get_char_spec (int index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -396,7 +396,6 @@ void *ft_get_prop(void *bphp, const char *propname, int *szp)
|
|||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
void ft_setup(void *blob, bd_t * bd, ulong initrd_start, ulong initrd_end)
|
void ft_setup(void *blob, bd_t * bd, ulong initrd_start, ulong initrd_end)
|
||||||
{
|
{
|
||||||
u32 *p;
|
u32 *p;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
* MA 02111-1307 USA
|
* MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
@@ -36,10 +35,6 @@
|
|||||||
#include <dataflash.h>
|
#include <dataflash.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LOGBUFFER
|
|
||||||
#include <logbuff.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE)
|
#if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE)
|
||||||
#include <rtc.h>
|
#include <rtc.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -93,6 +88,7 @@ static table_entry_t uimage_arch[] = {
|
|||||||
{ IH_ARCH_MIPS64, "mips64", "MIPS 64 Bit", },
|
{ IH_ARCH_MIPS64, "mips64", "MIPS 64 Bit", },
|
||||||
{ IH_ARCH_NIOS, "nios", "NIOS", },
|
{ IH_ARCH_NIOS, "nios", "NIOS", },
|
||||||
{ IH_ARCH_NIOS2, "nios2", "NIOS II", },
|
{ IH_ARCH_NIOS2, "nios2", "NIOS II", },
|
||||||
|
{ IH_ARCH_PPC, "powerpc", "PowerPC", },
|
||||||
{ IH_ARCH_PPC, "ppc", "PowerPC", },
|
{ IH_ARCH_PPC, "ppc", "PowerPC", },
|
||||||
{ IH_ARCH_S390, "s390", "IBM S390", },
|
{ IH_ARCH_S390, "s390", "IBM S390", },
|
||||||
{ IH_ARCH_SH, "sh", "SuperH", },
|
{ IH_ARCH_SH, "sh", "SuperH", },
|
||||||
@@ -241,7 +237,7 @@ void image_multi_getimg (image_header_t *hdr, ulong idx,
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32_t *size;
|
uint32_t *size;
|
||||||
ulong offset, tail, count, img_data;
|
ulong offset, count, img_data;
|
||||||
|
|
||||||
/* get number of component */
|
/* get number of component */
|
||||||
count = image_multi_count (hdr);
|
count = image_multi_count (hdr);
|
||||||
@@ -257,19 +253,15 @@ void image_multi_getimg (image_header_t *hdr, ulong idx,
|
|||||||
if (idx < count) {
|
if (idx < count) {
|
||||||
*len = uimage_to_cpu (size[idx]);
|
*len = uimage_to_cpu (size[idx]);
|
||||||
offset = 0;
|
offset = 0;
|
||||||
tail = 0;
|
|
||||||
|
|
||||||
/* go over all indices preceding requested component idx */
|
/* go over all indices preceding requested component idx */
|
||||||
for (i = 0; i < idx; i++) {
|
for (i = 0; i < idx; i++) {
|
||||||
/* add up i-th component size */
|
/* add up i-th component size, rounding up to 4 bytes */
|
||||||
offset += uimage_to_cpu (size[i]);
|
offset += (uimage_to_cpu (size[i]) + 3) & ~3 ;
|
||||||
|
|
||||||
/* add up alignment for i-th component */
|
|
||||||
tail += (4 - uimage_to_cpu (size[i]) % 4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* calculate idx-th component data address */
|
/* calculate idx-th component data address */
|
||||||
*data = img_data + offset + tail;
|
*data = img_data + offset;
|
||||||
} else {
|
} else {
|
||||||
*len = 0;
|
*len = 0;
|
||||||
*data = 0;
|
*data = 0;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
#include <post.h>
|
#include <post.h>
|
||||||
|
|
||||||
#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST)
|
#if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || defined(CONFIG_CMDLINE_EDITING)
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -67,11 +67,9 @@ static int abortboot(int);
|
|||||||
|
|
||||||
char console_buffer[CFG_CBSIZE]; /* console I/O buffer */
|
char console_buffer[CFG_CBSIZE]; /* console I/O buffer */
|
||||||
|
|
||||||
#ifndef CONFIG_CMDLINE_EDITING
|
|
||||||
static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen);
|
static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen);
|
||||||
static char erase_seq[] = "\b \b"; /* erase sequence */
|
static char erase_seq[] = "\b \b"; /* erase sequence */
|
||||||
static char tab_seq[] = " "; /* used to expand TABs */
|
static char tab_seq[] = " "; /* used to expand TABs */
|
||||||
#endif /* CONFIG_CMDLINE_EDITING */
|
|
||||||
|
|
||||||
#ifdef CONFIG_BOOT_RETRY_TIME
|
#ifdef CONFIG_BOOT_RETRY_TIME
|
||||||
static uint64_t endtime = 0; /* must be set, default is instant timeout */
|
static uint64_t endtime = 0; /* must be set, default is instant timeout */
|
||||||
@@ -947,11 +945,26 @@ int readline_into_buffer (const char *const prompt, char * buffer)
|
|||||||
initted = 1;
|
initted = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
puts (prompt);
|
|
||||||
|
|
||||||
rc = cread_line(prompt, p, &len);
|
/*
|
||||||
return rc < 0 ? rc : len;
|
* History uses a global array which is not
|
||||||
#else
|
* writable until after relocation to RAM.
|
||||||
|
* Revert to non-history version if still
|
||||||
|
* running from flash.
|
||||||
|
*/
|
||||||
|
if (gd->flags & GD_FLG_RELOC) {
|
||||||
|
if (!initted) {
|
||||||
|
hist_init();
|
||||||
|
initted = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
puts (prompt);
|
||||||
|
|
||||||
|
rc = cread_line(prompt, p, &len);
|
||||||
|
return rc < 0 ? rc : len;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
#endif /* CONFIG_CMDLINE_EDITING */
|
||||||
char * p_buf = p;
|
char * p_buf = p;
|
||||||
int n = 0; /* buffer index */
|
int n = 0; /* buffer index */
|
||||||
int plen = 0; /* prompt length */
|
int plen = 0; /* prompt length */
|
||||||
@@ -1047,12 +1060,13 @@ int readline_into_buffer (const char *const prompt, char * buffer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_CMDLINE_EDITING */
|
#ifdef CONFIG_CMDLINE_EDITING
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_CMDLINE_EDITING
|
|
||||||
static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
|
static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
@@ -1082,7 +1096,6 @@ static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
|
|||||||
(*np)--;
|
(*np)--;
|
||||||
return (p);
|
return (p);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_CMDLINE_EDITING */
|
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -329,14 +329,28 @@ _GLOBAL(dcache_status)
|
|||||||
blr
|
blr
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Invalidate L2 cache using L2I and polling L2IP
|
* Invalidate L2 cache using L2I and polling L2IP or L2I
|
||||||
*/
|
*/
|
||||||
_GLOBAL(l2cache_invalidate)
|
_GLOBAL(l2cache_invalidate)
|
||||||
sync
|
sync
|
||||||
|
mfspr r3, l2cr
|
||||||
oris r3, r3, L2CR_L2I@h
|
oris r3, r3, L2CR_L2I@h
|
||||||
sync
|
sync
|
||||||
mtspr l2cr, r3
|
mtspr l2cr, r3
|
||||||
sync
|
sync
|
||||||
|
mfspr r3, PVR
|
||||||
|
sync
|
||||||
|
rlwinm r3, r3, 16,16,31
|
||||||
|
cmpli 0,r3,0x8000 /* 7451, 7441 */
|
||||||
|
beq 0,inv_7450
|
||||||
|
cmpli 0,r3,0x8001 /* 7455, 7445 */
|
||||||
|
beq 0,inv_7450
|
||||||
|
cmpli 0,r3,0x8002 /* 7457, 7447 */
|
||||||
|
beq 0,inv_7450
|
||||||
|
cmpli 0,r3,0x8003 /* 7447A */
|
||||||
|
beq 0,inv_7450
|
||||||
|
cmpli 0,r3,0x8004 /* 7448 */
|
||||||
|
beq 0,inv_7450
|
||||||
invl2:
|
invl2:
|
||||||
mfspr r3, l2cr
|
mfspr r3, l2cr
|
||||||
andi. r3, r3, L2CR_L2IP
|
andi. r3, r3, L2CR_L2IP
|
||||||
@@ -348,6 +362,11 @@ invl2:
|
|||||||
mtspr l2cr, r3
|
mtspr l2cr, r3
|
||||||
sync
|
sync
|
||||||
blr
|
blr
|
||||||
|
inv_7450:
|
||||||
|
mfspr r3, l2cr
|
||||||
|
andis. r3, r3, L2CR_L2I@h
|
||||||
|
bne inv_7450
|
||||||
|
blr
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Enable L2 cache
|
* Enable L2 cache
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ static u32 mx31_decode_pll(u32 reg, u32 infreq)
|
|||||||
(mfd * pd)) << 10;
|
(mfd * pd)) << 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 mx31_get_mpl_dpdgck_clk(void)
|
static u32 mx31_get_mpl_dpdgck_clk(void)
|
||||||
{
|
{
|
||||||
u32 infreq;
|
u32 infreq;
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ u32 mx31_get_mpl_dpdgck_clk(void)
|
|||||||
return mx31_decode_pll(__REG(CCM_MPCTL), infreq);
|
return mx31_decode_pll(__REG(CCM_MPCTL), infreq);
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 mx31_get_mcu_main_clk(void)
|
static u32 mx31_get_mcu_main_clk(void)
|
||||||
{
|
{
|
||||||
/* For now we assume mpl_dpdgck_clk == mcu_main_clk
|
/* For now we assume mpl_dpdgck_clk == mcu_main_clk
|
||||||
* which should be correct for most boards
|
* which should be correct for most boards
|
||||||
|
|||||||
@@ -69,4 +69,4 @@ int usb_cpu_init_fail (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# endif /* defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410) */
|
# endif /* defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410) */
|
||||||
#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
|
#endif /* defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT) */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# (C) Copyright 2000-2008
|
# (C) Copyright 2000-2008
|
||||||
# Wolfgang Denk, DENX Software Engineering, wd <at> denx.de.
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
#
|
#
|
||||||
# See file CREDITS for list of people who contributed to this
|
# See file CREDITS for list of people who contributed to this
|
||||||
# project.
|
# project.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* AT91CAP9/SAM9 setup stuff
|
* AT91CAP9/SAM9 setup stuff
|
||||||
*
|
*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2006
|
* (C) Copyright 2006
|
||||||
* DENX Software Engineering <mk <at> denx.de>
|
* DENX Software Engineering <mk@denx.de>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ early_board_init_ret:
|
|||||||
/* so we try to indicate progress */
|
/* so we try to indicate progress */
|
||||||
movw $0x01, %ax
|
movw $0x01, %ax
|
||||||
movl $.progress0, %ebp
|
movl $.progress0, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress0:
|
.progress0:
|
||||||
|
|
||||||
/* size memory */
|
/* size memory */
|
||||||
@@ -74,7 +74,7 @@ mem_init_ret:
|
|||||||
/* indicate (lack of) progress */
|
/* indicate (lack of) progress */
|
||||||
movw $0x81, %ax
|
movw $0x81, %ax
|
||||||
movl $.progress0a, %ebp
|
movl $.progress0a, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress0a:
|
.progress0a:
|
||||||
jmp die
|
jmp die
|
||||||
mem_ok:
|
mem_ok:
|
||||||
@@ -82,7 +82,7 @@ mem_ok:
|
|||||||
/* indicate progress */
|
/* indicate progress */
|
||||||
movw $0x02, %ax
|
movw $0x02, %ax
|
||||||
movl $.progress1, %ebp
|
movl $.progress1, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress1:
|
.progress1:
|
||||||
|
|
||||||
/* create a stack after the bss */
|
/* create a stack after the bss */
|
||||||
@@ -104,7 +104,7 @@ no_stack:
|
|||||||
/* indicate (lack of) progress */
|
/* indicate (lack of) progress */
|
||||||
movw $0x82, %ax
|
movw $0x82, %ax
|
||||||
movl $.progress1a, %ebp
|
movl $.progress1a, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress1a:
|
.progress1a:
|
||||||
jmp die
|
jmp die
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ stack_ok:
|
|||||||
/* indicate progress */
|
/* indicate progress */
|
||||||
movw $0x03, %ax
|
movw $0x03, %ax
|
||||||
movl $.progress2, %ebp
|
movl $.progress2, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress2:
|
.progress2:
|
||||||
|
|
||||||
/* copy data section to ram, size must be 4-byte aligned */
|
/* copy data section to ram, size must be 4-byte aligned */
|
||||||
@@ -136,7 +136,7 @@ data_fail:
|
|||||||
/* indicate (lack of) progress */
|
/* indicate (lack of) progress */
|
||||||
movw $0x83, %ax
|
movw $0x83, %ax
|
||||||
movl $.progress2a, %ebp
|
movl $.progress2a, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress2a:
|
.progress2a:
|
||||||
jmp die
|
jmp die
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ data_ok:
|
|||||||
/* indicate progress */
|
/* indicate progress */
|
||||||
movw $0x04, %ax
|
movw $0x04, %ax
|
||||||
movl $.progress3, %ebp
|
movl $.progress3, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress3:
|
.progress3:
|
||||||
|
|
||||||
/* clear bss section in ram, size must be 4-byte aligned */
|
/* clear bss section in ram, size must be 4-byte aligned */
|
||||||
@@ -168,7 +168,7 @@ bss_fail:
|
|||||||
/* indicate (lack of) progress */
|
/* indicate (lack of) progress */
|
||||||
movw $0x84, %ax
|
movw $0x84, %ax
|
||||||
movl $.progress3a, %ebp
|
movl $.progress3a, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress3a:
|
.progress3a:
|
||||||
jmp die
|
jmp die
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ bss_ok:
|
|||||||
/* indicate progress */
|
/* indicate progress */
|
||||||
movw $0x05, %ax
|
movw $0x05, %ax
|
||||||
movl $.progress4, %ebp
|
movl $.progress4, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress4:
|
.progress4:
|
||||||
|
|
||||||
call start_i386boot /* Enter, U-boot! */
|
call start_i386boot /* Enter, U-boot! */
|
||||||
@@ -188,7 +188,7 @@ bss_ok:
|
|||||||
/* indicate (lack of) progress */
|
/* indicate (lack of) progress */
|
||||||
movw $0x85, %ax
|
movw $0x85, %ax
|
||||||
movl $.progress4a, %ebp
|
movl $.progress4a, %ebp
|
||||||
jmp __show_boot_progress
|
jmp show_boot_progress
|
||||||
.progress4a:
|
.progress4a:
|
||||||
|
|
||||||
die: hlt
|
die: hlt
|
||||||
|
|||||||
@@ -240,14 +240,16 @@ NESTED(mips_cache_reset, 0, ra)
|
|||||||
*/
|
*/
|
||||||
move a1, t2
|
move a1, t2
|
||||||
move a2, t4
|
move a2, t4
|
||||||
bal mips_init_icache
|
PTR_LA t7, mips_init_icache
|
||||||
|
jalr t7
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* then initialize D-cache.
|
* then initialize D-cache.
|
||||||
*/
|
*/
|
||||||
move a1, t3
|
move a1, t3
|
||||||
move a2, t5
|
move a2, t5
|
||||||
bal mips_init_dcache
|
PTR_LA t7, mips_init_dcache
|
||||||
|
jalr t7
|
||||||
|
|
||||||
jr RA
|
jr RA
|
||||||
END(mips_cache_reset)
|
END(mips_cache_reset)
|
||||||
|
|||||||
@@ -345,7 +345,8 @@ relocate_code:
|
|||||||
jr t0
|
jr t0
|
||||||
nop
|
nop
|
||||||
|
|
||||||
.gpword _GLOBAL_OFFSET_TABLE_ /* _GLOBAL_OFFSET_TABLE_ - _gp */
|
.word _gp
|
||||||
|
.word _GLOBAL_OFFSET_TABLE_
|
||||||
.word uboot_end_data
|
.word uboot_end_data
|
||||||
.word uboot_end
|
.word uboot_end
|
||||||
.word num_got_entries
|
.word num_got_entries
|
||||||
@@ -358,8 +359,10 @@ in_ram:
|
|||||||
* generated by GNU ld. Skip these reserved entries from relocation.
|
* generated by GNU ld. Skip these reserved entries from relocation.
|
||||||
*/
|
*/
|
||||||
lw t3, -4(t0) /* t3 <-- num_got_entries */
|
lw t3, -4(t0) /* t3 <-- num_got_entries */
|
||||||
lw t4, -16(t0) /* t4 <-- (_GLOBAL_OFFSET_TABLE_ - _gp) */
|
lw t4, -16(t0) /* t4 <-- _GLOBAL_OFFSET_TABLE_ */
|
||||||
add t4, t4, gp /* t4 now holds _GLOBAL_OFFSET_TABLE_ */
|
lw t5, -20(t0) /* t5 <-- _gp */
|
||||||
|
sub t4, t5 /* compute offset*/
|
||||||
|
add t4, t4, gp /* t4 now holds relocated _GLOBAL_OFFSET_TABLE_ */
|
||||||
addi t4, t4, 8 /* Skipping first two entries. */
|
addi t4, t4, 8 /* Skipping first two entries. */
|
||||||
li t2, 2
|
li t2, 2
|
||||||
1:
|
1:
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ _GLOBAL(l2cache_invalidate)
|
|||||||
|
|
||||||
invl2:
|
invl2:
|
||||||
mfspr r3, l2cr
|
mfspr r3, l2cr
|
||||||
andi. r3, r3, L2CR_L2I@h
|
andis. r3, r3, L2CR_L2I@h
|
||||||
bne invl2
|
bne invl2
|
||||||
blr
|
blr
|
||||||
|
|
||||||
|
|||||||
@@ -346,6 +346,26 @@ int checkcpu (void)
|
|||||||
strcpy(addstr, "No Security support");
|
strcpy(addstr, "No Security support");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PVR_405EX1_RC:
|
||||||
|
puts("EX Rev. C");
|
||||||
|
strcpy(addstr, "Security support");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PVR_405EX2_RC:
|
||||||
|
puts("EX Rev. C");
|
||||||
|
strcpy(addstr, "No Security support");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PVR_405EXR1_RC:
|
||||||
|
puts("EXr Rev. C");
|
||||||
|
strcpy(addstr, "Security support");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PVR_405EXR2_RC:
|
||||||
|
puts("EXr Rev. C");
|
||||||
|
strcpy(addstr, "No Security support");
|
||||||
|
break;
|
||||||
|
|
||||||
#if defined(CONFIG_440)
|
#if defined(CONFIG_440)
|
||||||
case PVR_440GP_RB:
|
case PVR_440GP_RB:
|
||||||
puts("GP Rev. B");
|
puts("GP Rev. B");
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007
|
* (C) Copyright 2007-2008
|
||||||
* Stefan Roese, DENX Software Engineering, sr@denx.de.
|
* Stefan Roese, DENX Software Engineering, sr@denx.de.
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <ppc4xx.h>
|
#include <ppc4xx.h>
|
||||||
|
|
||||||
#if defined(CONFIG_OF_LIBFDT)
|
#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
|
||||||
#include <libfdt.h>
|
#include <libfdt.h>
|
||||||
#include <libfdt_env.h>
|
#include <libfdt_env.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
@@ -35,6 +35,26 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
void __ft_board_setup(void *blob, bd_t *bd)
|
||||||
|
{
|
||||||
|
u32 val[4];
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
ft_cpu_setup(blob, bd);
|
||||||
|
|
||||||
|
/* Fixup NOR mapping */
|
||||||
|
val[0] = 0; /* chip select number */
|
||||||
|
val[1] = 0; /* always 0 */
|
||||||
|
val[2] = gd->bd->bi_flashstart;
|
||||||
|
val[3] = gd->bd->bi_flashsize;
|
||||||
|
rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
|
||||||
|
val, sizeof(val), 1);
|
||||||
|
if (rc)
|
||||||
|
printf("Unable to update property NOR mapping, err=%s\n",
|
||||||
|
fdt_strerror(rc));
|
||||||
|
}
|
||||||
|
void ft_board_setup(void *blob, bd_t *bd) __attribute__((weak, alias("__ft_board_setup")));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fixup all PCIe nodes by setting the device_type property
|
* Fixup all PCIe nodes by setting the device_type property
|
||||||
* to "pci-endpoint" instead is "pci" for endpoint ports.
|
* to "pci-endpoint" instead is "pci" for endpoint ports.
|
||||||
@@ -109,4 +129,4 @@ void ft_cpu_setup(void *blob, bd_t *bd)
|
|||||||
*/
|
*/
|
||||||
fdt_pcie_setup(blob);
|
fdt_pcie_setup(blob);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_OF_LIBFDT */
|
#endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ static u8 pll_fbdv_multi_bits[] = {
|
|||||||
/* values for: 101 - 200 */
|
/* values for: 101 - 200 */
|
||||||
0x78, 0xf1, 0x62, 0xc5, 0x0a, 0x94, 0x28, 0xd0, 0x21, 0xc3,
|
0x78, 0xf1, 0x62, 0xc5, 0x0a, 0x94, 0x28, 0xd0, 0x21, 0xc3,
|
||||||
0x06, 0x8c, 0x18, 0xb0, 0x60, 0xc1, 0x02, 0x84, 0x08, 0x90,
|
0x06, 0x8c, 0x18, 0xb0, 0x60, 0xc1, 0x02, 0x84, 0x08, 0x90,
|
||||||
0x20, 0xc0, 0x01, 0x83, 0x77, 0xff, 0x1f, 0xbf, 0x7f, 0xfe,
|
0x20, 0xc0, 0x01, 0x83, 0x07, 0x8f, 0x1f, 0xbf, 0x7f, 0xfe,
|
||||||
0x7d, 0xfa, 0x75, 0xea, 0x55, 0xaa, 0x54, 0xa9, 0x53, 0xa6,
|
0x7d, 0xfa, 0x75, 0xea, 0x55, 0xaa, 0x54, 0xa9, 0x53, 0xa6,
|
||||||
0x4c, 0x99, 0x33, 0xe7, 0x4e, 0x9d, 0x3b, 0xf7, 0x6e, 0xdd,
|
0x4c, 0x99, 0x33, 0xe7, 0x4e, 0x9d, 0x3b, 0xf7, 0x6e, 0xdd,
|
||||||
0x3a, 0xf4, 0x69, 0xd2, 0x25, 0xcb, 0x16, 0xac, 0x58, 0xb1,
|
0x3a, 0xf4, 0x69, 0xd2, 0x25, 0xcb, 0x16, 0xac, 0x58, 0xb1,
|
||||||
|
|||||||
96
disk/part.c
96
disk/part.c
@@ -109,44 +109,45 @@ void dev_print (block_dev_desc_t *dev_desc)
|
|||||||
lbaint_t lba512;
|
lbaint_t lba512;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (dev_desc->type==DEV_TYPE_UNKNOWN) {
|
switch (dev_desc->type) {
|
||||||
puts ("not available\n");
|
case IF_TYPE_SCSI:
|
||||||
return;
|
printf ("(%d:%d) Vendor: %s Prod.: %s Rev: %s\n",
|
||||||
}
|
dev_desc->target,dev_desc->lun,
|
||||||
if (dev_desc->if_type==IF_TYPE_SCSI) {
|
|
||||||
printf ("(%d:%d) ", dev_desc->target,dev_desc->lun);
|
|
||||||
}
|
|
||||||
if (dev_desc->if_type==IF_TYPE_IDE) {
|
|
||||||
printf ("Model: %s Firm: %s Ser#: %s\n",
|
|
||||||
dev_desc->vendor,
|
|
||||||
dev_desc->revision,
|
|
||||||
dev_desc->product);
|
|
||||||
}
|
|
||||||
if (dev_desc->if_type==IF_TYPE_SATA) {
|
|
||||||
printf ("Model: %s Firm: %s Ser#: %s\n",
|
|
||||||
dev_desc->vendor,
|
|
||||||
dev_desc->revision,
|
|
||||||
dev_desc->product);
|
|
||||||
} else {
|
|
||||||
printf ("Vendor: %s Prod.: %s Rev: %s\n",
|
|
||||||
dev_desc->vendor,
|
dev_desc->vendor,
|
||||||
dev_desc->product,
|
dev_desc->product,
|
||||||
dev_desc->revision);
|
dev_desc->revision);
|
||||||
|
break;
|
||||||
|
case IF_TYPE_IDE:
|
||||||
|
case IF_TYPE_SATA:
|
||||||
|
printf ("Model: %s Firm: %s Ser#: %s\n",
|
||||||
|
dev_desc->vendor,
|
||||||
|
dev_desc->revision,
|
||||||
|
dev_desc->product);
|
||||||
|
break;
|
||||||
|
case DEV_TYPE_UNKNOWN:
|
||||||
|
default:
|
||||||
|
puts ("not available\n");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
puts (" Type: ");
|
puts (" Type: ");
|
||||||
if (dev_desc->removable)
|
if (dev_desc->removable)
|
||||||
puts ("Removable ");
|
puts ("Removable ");
|
||||||
switch (dev_desc->type & 0x1F) {
|
switch (dev_desc->type & 0x1F) {
|
||||||
case DEV_TYPE_HARDDISK: puts ("Hard Disk");
|
case DEV_TYPE_HARDDISK:
|
||||||
break;
|
puts ("Hard Disk");
|
||||||
case DEV_TYPE_CDROM: puts ("CD ROM");
|
break;
|
||||||
break;
|
case DEV_TYPE_CDROM:
|
||||||
case DEV_TYPE_OPDISK: puts ("Optical Device");
|
puts ("CD ROM");
|
||||||
break;
|
break;
|
||||||
case DEV_TYPE_TAPE: puts ("Tape");
|
case DEV_TYPE_OPDISK:
|
||||||
break;
|
puts ("Optical Device");
|
||||||
default: printf ("# %02X #", dev_desc->type & 0x1F);
|
break;
|
||||||
break;
|
case DEV_TYPE_TAPE:
|
||||||
|
puts ("Tape");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
printf ("# %02X #", dev_desc->type & 0x1F);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
puts ("\n");
|
puts ("\n");
|
||||||
if ((dev_desc->lba * dev_desc->blksz)>0L) {
|
if ((dev_desc->lba * dev_desc->blksz)>0L) {
|
||||||
@@ -281,20 +282,27 @@ static void print_part_header (const char *type, block_dev_desc_t * dev_desc)
|
|||||||
{
|
{
|
||||||
puts ("\nPartition Map for ");
|
puts ("\nPartition Map for ");
|
||||||
switch (dev_desc->if_type) {
|
switch (dev_desc->if_type) {
|
||||||
case IF_TYPE_IDE: puts ("IDE");
|
case IF_TYPE_IDE:
|
||||||
break;
|
puts ("IDE");
|
||||||
case IF_TYPE_SATA: puts ("SATA");
|
break;
|
||||||
break;
|
case IF_TYPE_SATA:
|
||||||
case IF_TYPE_SCSI: puts ("SCSI");
|
puts ("SATA");
|
||||||
break;
|
break;
|
||||||
case IF_TYPE_ATAPI: puts ("ATAPI");
|
case IF_TYPE_SCSI:
|
||||||
break;
|
puts ("SCSI");
|
||||||
case IF_TYPE_USB: puts ("USB");
|
break;
|
||||||
break;
|
case IF_TYPE_ATAPI:
|
||||||
case IF_TYPE_DOC: puts ("DOC");
|
puts ("ATAPI");
|
||||||
break;
|
break;
|
||||||
default: puts ("UNKNOWN");
|
case IF_TYPE_USB:
|
||||||
break;
|
puts ("USB");
|
||||||
|
break;
|
||||||
|
case IF_TYPE_DOC:
|
||||||
|
puts ("DOC");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
puts ("UNKNOWN");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
printf (" device %d -- Partition Type: %s\n\n",
|
printf (" device %d -- Partition Type: %s\n\n",
|
||||||
dev_desc->dev, type);
|
dev_desc->dev, type);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ The PPC440EP(x)/GR(x) cpu's can boot directly from NAND FLASH,
|
|||||||
completely without NOR FLASH. This can be done by using the NAND
|
completely without NOR FLASH. This can be done by using the NAND
|
||||||
boot feature of the 440 NAND flash controller (NDFC).
|
boot feature of the 440 NAND flash controller (NDFC).
|
||||||
|
|
||||||
Here a short desciption of the different boot stages:
|
Here a short description of the different boot stages:
|
||||||
|
|
||||||
a) IPL (Initial Program Loader, integrated inside CPU)
|
a) IPL (Initial Program Loader, integrated inside CPU)
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* SMSC LAN9[12]1[567] Network driver
|
* SMSC LAN9[12]1[567] Network driver
|
||||||
*
|
*
|
||||||
* (c) 2007 Pengutronix, Sascha Hauer <s.hauer <at> pengutronix.de>
|
* (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ pci_dev_t pci_find_device(unsigned int vendor, unsigned int device, int index)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned long pci_hose_phys_to_bus (struct pci_controller *hose,
|
unsigned long pci_hose_phys_to_bus (struct pci_controller *hose,
|
||||||
unsigned long phys_addr,
|
phys_addr_t phys_addr,
|
||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
{
|
{
|
||||||
struct pci_region *res;
|
struct pci_region *res;
|
||||||
@@ -253,9 +253,9 @@ Done:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long pci_hose_bus_to_phys(struct pci_controller* hose,
|
phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose,
|
||||||
unsigned long bus_addr,
|
unsigned long bus_addr,
|
||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
{
|
{
|
||||||
struct pci_region *res;
|
struct pci_region *res;
|
||||||
int i;
|
int i;
|
||||||
@@ -425,9 +425,6 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
|
|||||||
dev < PCI_BDF(bus,PCI_MAX_PCI_DEVICES-1,PCI_MAX_PCI_FUNCTIONS-1);
|
dev < PCI_BDF(bus,PCI_MAX_PCI_DEVICES-1,PCI_MAX_PCI_FUNCTIONS-1);
|
||||||
dev += PCI_BDF(0,0,1))
|
dev += PCI_BDF(0,0,1))
|
||||||
{
|
{
|
||||||
|
|
||||||
/* Bus 0 is not necessarily PCI bridge. */
|
|
||||||
#if defined(CONFIG_PCI_SKIP_HOST_BRIDGE)
|
|
||||||
/* Skip our host bridge */
|
/* Skip our host bridge */
|
||||||
if ( dev == PCI_BDF(hose->first_busno,0,0) ) {
|
if ( dev == PCI_BDF(hose->first_busno,0,0) ) {
|
||||||
#if defined(CONFIG_PCI_CONFIG_HOST_BRIDGE) /* don't skip host bridge */
|
#if defined(CONFIG_PCI_CONFIG_HOST_BRIDGE) /* don't skip host bridge */
|
||||||
@@ -437,11 +434,10 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
|
|||||||
if (getenv("pciconfighost") == NULL) {
|
if (getenv("pciconfighost") == NULL) {
|
||||||
continue; /* Skip our host bridge */
|
continue; /* Skip our host bridge */
|
||||||
}
|
}
|
||||||
#else /* CONFIG_PCI_CONFIG_HOST_BRIDGE */
|
#else
|
||||||
continue; /* Skip our host bridge */
|
continue; /* Skip our host bridge */
|
||||||
#endif /* CONFIG_PCI_CONFIG_HOST_BRIDGE */
|
#endif
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_PCI_SKIP_HOST_BRIDGE */
|
|
||||||
|
|
||||||
if (PCI_FUNC(dev) && !found_multi)
|
if (PCI_FUNC(dev) && !found_multi)
|
||||||
continue;
|
continue;
|
||||||
@@ -477,11 +473,8 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
|
|||||||
hose->fixup_irq(hose, dev);
|
hose->fixup_irq(hose, dev);
|
||||||
|
|
||||||
#ifdef CONFIG_PCI_SCAN_SHOW
|
#ifdef CONFIG_PCI_SCAN_SHOW
|
||||||
#if defined(CONFIG_PCI_SKIP_HOST_BRIDGE)
|
|
||||||
/* Skip our host bridge */
|
/* Skip our host bridge */
|
||||||
if ( dev != PCI_BDF(hose->first_busno,0,0) )
|
if ( dev != PCI_BDF(hose->first_busno,0,0) ) {
|
||||||
#endif
|
|
||||||
{
|
|
||||||
unsigned char int_line;
|
unsigned char int_line;
|
||||||
|
|
||||||
pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_LINE,
|
pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_LINE,
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ include $(TOPDIR)/config.mk
|
|||||||
|
|
||||||
LIB := $(obj)libpcmcia.a
|
LIB := $(obj)libpcmcia.a
|
||||||
|
|
||||||
|
COBJS-$(CONFIG_I82365) += i82365.o
|
||||||
COBJS-y += mpc8xx_pcmcia.o
|
COBJS-y += mpc8xx_pcmcia.o
|
||||||
COBJS-y += pxa_pcmcia.o
|
COBJS-y += pxa_pcmcia.o
|
||||||
COBJS-y += rpx_pcmcia.o
|
COBJS-y += rpx_pcmcia.o
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
|
||||||
#ifdef CONFIG_I82365
|
|
||||||
|
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <pci.h>
|
#include <pci.h>
|
||||||
#include <pcmcia.h>
|
#include <pcmcia.h>
|
||||||
@@ -1010,5 +1008,3 @@ static void i82365_dump_regions (pci_dev_t dev)
|
|||||||
ide[4], ide[5], ide[6], ide[7]);
|
ide[4], ide[5], ide[6], ide[7]);
|
||||||
}
|
}
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
#endif /* CONFIG_I82365 */
|
|
||||||
|
|||||||
4
examples/.gitignore
vendored
4
examples/.gitignore
vendored
@@ -1,5 +1,9 @@
|
|||||||
|
/82559_eeprom
|
||||||
/hello_world
|
/hello_world
|
||||||
/interrupt
|
/interrupt
|
||||||
|
/mem_to_mem_idma2intr
|
||||||
|
/test_burst
|
||||||
|
/timer
|
||||||
/sched
|
/sched
|
||||||
/smc91111_eeprom
|
/smc91111_eeprom
|
||||||
*.bin
|
*.bin
|
||||||
|
|||||||
4
include/.gitignore
vendored
4
include/.gitignore
vendored
@@ -1,7 +1,7 @@
|
|||||||
/autoconf.mk*
|
/autoconf.mk*
|
||||||
/asm
|
/asm
|
||||||
/asm-blackfin/arch
|
/asm-*/arch
|
||||||
/asm-ppc/arch
|
/asm-*/proc
|
||||||
/bmp_logo.h
|
/bmp_logo.h
|
||||||
/config.h
|
/config.h
|
||||||
/config.mk
|
/config.mk
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91_pio.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91_pio.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2005 Ivan Kokshaysky
|
* Copyright (C) 2005 Ivan Kokshaysky
|
||||||
* Copyright (C) SAN People
|
* Copyright (C) SAN People
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91_pit.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91_pit.h]
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 Andrew Victor
|
||||||
|
* Copyright (C) 2007 Atmel Corporation.
|
||||||
*
|
*
|
||||||
* Periodic Interval Timer (PIT) - System peripherals regsters.
|
* Periodic Interval Timer (PIT) - System peripherals regsters.
|
||||||
* Based on AT91SAM9261 datasheet revision D.
|
* Based on AT91SAM9261 datasheet revision D.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91_pmc.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91_pmc.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2005 Ivan Kokshaysky
|
* Copyright (C) 2005 Ivan Kokshaysky
|
||||||
* Copyright (C) SAN People
|
* Copyright (C) SAN People
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91_rstc.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91_rstc.h]
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 Andrew Victor
|
||||||
|
* Copyright (C) 2007 Atmel Corporation.
|
||||||
*
|
*
|
||||||
* Reset Controller (RSTC) - System peripherals regsters.
|
* Reset Controller (RSTC) - System peripherals regsters.
|
||||||
* Based on AT91SAM9261 datasheet revision D.
|
* Based on AT91SAM9261 datasheet revision D.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91_spi.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91_spi.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2005 Ivan Kokshaysky
|
* Copyright (C) 2005 Ivan Kokshaysky
|
||||||
* Copyright (C) SAN People
|
* Copyright (C) SAN People
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91cap9.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91cap9.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007 Stelian Pop <stelian.pop@leadtechdesign.com>
|
* Copyright (C) 2007 Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
|
* Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91cap9_matrix.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91cap9_matrix.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007 Stelian Pop <stelian.pop@leadtechdesign.com>
|
* Copyright (C) 2007 Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
|
* Copyright (C) 2007 Lead Tech Design <www.leadtechdesign.com>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91sam9260.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91sam9260.h]
|
||||||
*
|
*
|
||||||
* (C) 2006 Andrew Victor
|
* (C) 2006 Andrew Victor
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/at91sam9260_matrix.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91sam9260_matrix.h]
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 Atmel Corporation.
|
||||||
*
|
*
|
||||||
* Memory Controllers (MATRIX, EBI) - System peripherals registers.
|
* Memory Controllers (MATRIX, EBI) - System peripherals registers.
|
||||||
* Based on AT91SAM9260 datasheet revision B.
|
* Based on AT91SAM9260 datasheet revision B.
|
||||||
|
|||||||
@@ -1,140 +0,0 @@
|
|||||||
/*
|
|
||||||
* include/asm-arm/arch-at91/at91sam926x_mc.h
|
|
||||||
*
|
|
||||||
* Memory Controllers (SMC, SDRAMC) - System peripherals registers.
|
|
||||||
* Based on AT91SAM9261 datasheet revision D.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef AT91SAM926x_MC_H
|
|
||||||
#define AT91SAM926x_MC_H
|
|
||||||
|
|
||||||
/* SDRAM Controller (SDRAMC) registers */
|
|
||||||
#define AT91_SDRAMC_MR (AT91_SDRAMC + 0x00) /* SDRAM Controller Mode Register */
|
|
||||||
#define AT91_SDRAMC_MODE (0xf << 0) /* Command Mode */
|
|
||||||
#define AT91_SDRAMC_MODE_NORMAL 0
|
|
||||||
#define AT91_SDRAMC_MODE_NOP 1
|
|
||||||
#define AT91_SDRAMC_MODE_PRECHARGE 2
|
|
||||||
#define AT91_SDRAMC_MODE_LMR 3
|
|
||||||
#define AT91_SDRAMC_MODE_REFRESH 4
|
|
||||||
#define AT91_SDRAMC_MODE_EXT_LMR 5
|
|
||||||
#define AT91_SDRAMC_MODE_DEEP 6
|
|
||||||
|
|
||||||
#define AT91_SDRAMC_TR (AT91_SDRAMC + 0x04) /* SDRAM Controller Refresh Timer Register */
|
|
||||||
#define AT91_SDRAMC_COUNT (0xfff << 0) /* Refresh Timer Counter */
|
|
||||||
|
|
||||||
#define AT91_SDRAMC_CR (AT91_SDRAMC + 0x08) /* SDRAM Controller Configuration Register */
|
|
||||||
#define AT91_SDRAMC_NC (3 << 0) /* Number of Column Bits */
|
|
||||||
#define AT91_SDRAMC_NC_8 (0 << 0)
|
|
||||||
#define AT91_SDRAMC_NC_9 (1 << 0)
|
|
||||||
#define AT91_SDRAMC_NC_10 (2 << 0)
|
|
||||||
#define AT91_SDRAMC_NC_11 (3 << 0)
|
|
||||||
#define AT91_SDRAMC_NR (3 << 2) /* Number of Row Bits */
|
|
||||||
#define AT91_SDRAMC_NR_11 (0 << 2)
|
|
||||||
#define AT91_SDRAMC_NR_12 (1 << 2)
|
|
||||||
#define AT91_SDRAMC_NR_13 (2 << 2)
|
|
||||||
#define AT91_SDRAMC_NB (1 << 4) /* Number of Banks */
|
|
||||||
#define AT91_SDRAMC_NB_2 (0 << 4)
|
|
||||||
#define AT91_SDRAMC_NB_4 (1 << 4)
|
|
||||||
#define AT91_SDRAMC_CAS (3 << 5) /* CAS Latency */
|
|
||||||
#define AT91_SDRAMC_CAS_1 (1 << 5)
|
|
||||||
#define AT91_SDRAMC_CAS_2 (2 << 5)
|
|
||||||
#define AT91_SDRAMC_CAS_3 (3 << 5)
|
|
||||||
#define AT91_SDRAMC_DBW (1 << 7) /* Data Bus Width */
|
|
||||||
#define AT91_SDRAMC_DBW_32 (0 << 7)
|
|
||||||
#define AT91_SDRAMC_DBW_16 (1 << 7)
|
|
||||||
#define AT91_SDRAMC_TWR (0xf << 8) /* Write Recovery Delay */
|
|
||||||
#define AT91_SDRAMC_TRC (0xf << 12) /* Row Cycle Delay */
|
|
||||||
#define AT91_SDRAMC_TRP (0xf << 16) /* Row Precharge Delay */
|
|
||||||
#define AT91_SDRAMC_TRCD (0xf << 20) /* Row to Column Delay */
|
|
||||||
#define AT91_SDRAMC_TRAS (0xf << 24) /* Active to Precharge Delay */
|
|
||||||
#define AT91_SDRAMC_TXSR (0xf << 28) /* Exit Self Refresh to Active Delay */
|
|
||||||
|
|
||||||
#define AT91_SDRAMC_LPR (AT91_SDRAMC + 0x10) /* SDRAM Controller Low Power Register */
|
|
||||||
#define AT91_SDRAMC_LPCB (3 << 0) /* Low-power Configurations */
|
|
||||||
#define AT91_SDRAMC_LPCB_DISABLE 0
|
|
||||||
#define AT91_SDRAMC_LPCB_SELF_REFRESH 1
|
|
||||||
#define AT91_SDRAMC_LPCB_POWER_DOWN 2
|
|
||||||
#define AT91_SDRAMC_LPCB_DEEP_POWER_DOWN 3
|
|
||||||
#define AT91_SDRAMC_PASR (7 << 4) /* Partial Array Self Refresh */
|
|
||||||
#define AT91_SDRAMC_TCSR (3 << 8) /* Temperature Compensated Self Refresh */
|
|
||||||
#define AT91_SDRAMC_DS (3 << 10) /* Drive Strenght */
|
|
||||||
#define AT91_SDRAMC_TIMEOUT (3 << 12) /* Time to define when Low Power Mode is enabled */
|
|
||||||
#define AT91_SDRAMC_TIMEOUT_0_CLK_CYCLES (0 << 12)
|
|
||||||
#define AT91_SDRAMC_TIMEOUT_64_CLK_CYCLES (1 << 12)
|
|
||||||
#define AT91_SDRAMC_TIMEOUT_128_CLK_CYCLES (2 << 12)
|
|
||||||
|
|
||||||
#define AT91_SDRAMC_IER (AT91_SDRAMC + 0x14) /* SDRAM Controller Interrupt Enable Register */
|
|
||||||
#define AT91_SDRAMC_IDR (AT91_SDRAMC + 0x18) /* SDRAM Controller Interrupt Disable Register */
|
|
||||||
#define AT91_SDRAMC_IMR (AT91_SDRAMC + 0x1C) /* SDRAM Controller Interrupt Mask Register */
|
|
||||||
#define AT91_SDRAMC_ISR (AT91_SDRAMC + 0x20) /* SDRAM Controller Interrupt Status Register */
|
|
||||||
#define AT91_SDRAMC_RES (1 << 0) /* Refresh Error Status */
|
|
||||||
|
|
||||||
#define AT91_SDRAMC_MDR (AT91_SDRAMC + 0x24) /* SDRAM Memory Device Register */
|
|
||||||
#define AT91_SDRAMC_MD (3 << 0) /* Memory Device Type */
|
|
||||||
#define AT91_SDRAMC_MD_SDRAM 0
|
|
||||||
#define AT91_SDRAMC_MD_LOW_POWER_SDRAM 1
|
|
||||||
|
|
||||||
/* Static Memory Controller (SMC) registers */
|
|
||||||
#define AT91_SMC_SETUP(n) (AT91_SMC + 0x00 + ((n)*0x10)) /* Setup Register for CS n */
|
|
||||||
#define AT91_SMC_NWESETUP (0x3f << 0) /* NWE Setup Length */
|
|
||||||
#define AT91_SMC_NWESETUP_(x) ((x) << 0)
|
|
||||||
#define AT91_SMC_NCS_WRSETUP (0x3f << 8) /* NCS Setup Length in Write Access */
|
|
||||||
#define AT91_SMC_NCS_WRSETUP_(x) ((x) << 8)
|
|
||||||
#define AT91_SMC_NRDSETUP (0x3f << 16) /* NRD Setup Length */
|
|
||||||
#define AT91_SMC_NRDSETUP_(x) ((x) << 16)
|
|
||||||
#define AT91_SMC_NCS_RDSETUP (0x3f << 24) /* NCS Setup Length in Read Access */
|
|
||||||
#define AT91_SMC_NCS_RDSETUP_(x) ((x) << 24)
|
|
||||||
|
|
||||||
#define AT91_SMC_PULSE(n) (AT91_SMC + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */
|
|
||||||
#define AT91_SMC_NWEPULSE (0x7f << 0) /* NWE Pulse Length */
|
|
||||||
#define AT91_SMC_NWEPULSE_(x) ((x) << 0)
|
|
||||||
#define AT91_SMC_NCS_WRPULSE (0x7f << 8) /* NCS Pulse Length in Write Access */
|
|
||||||
#define AT91_SMC_NCS_WRPULSE_(x)((x) << 8)
|
|
||||||
#define AT91_SMC_NRDPULSE (0x7f << 16) /* NRD Pulse Length */
|
|
||||||
#define AT91_SMC_NRDPULSE_(x) ((x) << 16)
|
|
||||||
#define AT91_SMC_NCS_RDPULSE (0x7f << 24) /* NCS Pulse Length in Read Access */
|
|
||||||
#define AT91_SMC_NCS_RDPULSE_(x)((x) << 24)
|
|
||||||
|
|
||||||
#define AT91_SMC_CYCLE(n) (AT91_SMC + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */
|
|
||||||
#define AT91_SMC_NWECYCLE (0x1ff << 0 ) /* Total Write Cycle Length */
|
|
||||||
#define AT91_SMC_NWECYCLE_(x) ((x) << 0)
|
|
||||||
#define AT91_SMC_NRDCYCLE (0x1ff << 16) /* Total Read Cycle Length */
|
|
||||||
#define AT91_SMC_NRDCYCLE_(x) ((x) << 16)
|
|
||||||
|
|
||||||
#define AT91_SMC_MODE(n) (AT91_SMC + 0x0c + ((n)*0x10)) /* Mode Register for CS n */
|
|
||||||
#define AT91_SMC_READMODE (1 << 0) /* Read Mode */
|
|
||||||
#define AT91_SMC_WRITEMODE (1 << 1) /* Write Mode */
|
|
||||||
#define AT91_SMC_EXNWMODE (3 << 4) /* NWAIT Mode */
|
|
||||||
#define AT91_SMC_EXNWMODE_DISABLE (0 << 4)
|
|
||||||
#define AT91_SMC_EXNWMODE_FROZEN (2 << 4)
|
|
||||||
#define AT91_SMC_EXNWMODE_READY (3 << 4)
|
|
||||||
#define AT91_SMC_BAT (1 << 8) /* Byte Access Type */
|
|
||||||
#define AT91_SMC_BAT_SELECT (0 << 8)
|
|
||||||
#define AT91_SMC_BAT_WRITE (1 << 8)
|
|
||||||
#define AT91_SMC_DBW (3 << 12) /* Data Bus Width */
|
|
||||||
#define AT91_SMC_DBW_8 (0 << 12)
|
|
||||||
#define AT91_SMC_DBW_16 (1 << 12)
|
|
||||||
#define AT91_SMC_DBW_32 (2 << 12)
|
|
||||||
#define AT91_SMC_TDF (0xf << 16) /* Data Float Time. */
|
|
||||||
#define AT91_SMC_TDF_(x) ((x) << 16)
|
|
||||||
#define AT91_SMC_TDFMODE (1 << 20) /* TDF Optimization - Enabled */
|
|
||||||
#define AT91_SMC_PMEN (1 << 24) /* Page Mode Enabled */
|
|
||||||
#define AT91_SMC_PS (3 << 28) /* Page Size */
|
|
||||||
#define AT91_SMC_PS_4 (0 << 28)
|
|
||||||
#define AT91_SMC_PS_8 (1 << 28)
|
|
||||||
#define AT91_SMC_PS_16 (2 << 28)
|
|
||||||
#define AT91_SMC_PS_32 (3 << 28)
|
|
||||||
|
|
||||||
#if defined(AT91_SMC1) /* The AT91SAM9263 has 2 Static Memory contollers */
|
|
||||||
#define AT91_SMC1_SETUP(n) (AT91_SMC1 + 0x00 + ((n)*0x10)) /* Setup Register for CS n */
|
|
||||||
#define AT91_SMC1_PULSE(n) (AT91_SMC1 + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */
|
|
||||||
#define AT91_SMC1_CYCLE(n) (AT91_SMC1 + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */
|
|
||||||
#define AT91_SMC1_MODE(n) (AT91_SMC1 + 0x0c + ((n)*0x10)) /* Mode Register for CS n */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
76
include/asm-arm/arch-at91sam9/at91sam9_smc.h
Normal file
76
include/asm-arm/arch-at91sam9/at91sam9_smc.h
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* [origin: Linux kernel include/asm-arm/arch-at91/at91sam9_smc.h]
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007 Andrew Victor
|
||||||
|
* Copyright (C) 2007 Atmel Corporation.
|
||||||
|
*
|
||||||
|
* Static Memory Controllers (SMC) - System peripherals registers.
|
||||||
|
* Based on AT91SAM9261 datasheet revision D.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef AT91SAM9_SMC_H
|
||||||
|
#define AT91SAM9_SMC_H
|
||||||
|
|
||||||
|
#define AT91_SMC_SETUP(n) (AT91_SMC + 0x00 + ((n)*0x10)) /* Setup Register for CS n */
|
||||||
|
#define AT91_SMC_NWESETUP (0x3f << 0) /* NWE Setup Length */
|
||||||
|
#define AT91_SMC_NWESETUP_(x) ((x) << 0)
|
||||||
|
#define AT91_SMC_NCS_WRSETUP (0x3f << 8) /* NCS Setup Length in Write Access */
|
||||||
|
#define AT91_SMC_NCS_WRSETUP_(x) ((x) << 8)
|
||||||
|
#define AT91_SMC_NRDSETUP (0x3f << 16) /* NRD Setup Length */
|
||||||
|
#define AT91_SMC_NRDSETUP_(x) ((x) << 16)
|
||||||
|
#define AT91_SMC_NCS_RDSETUP (0x3f << 24) /* NCS Setup Length in Read Access */
|
||||||
|
#define AT91_SMC_NCS_RDSETUP_(x) ((x) << 24)
|
||||||
|
|
||||||
|
#define AT91_SMC_PULSE(n) (AT91_SMC + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */
|
||||||
|
#define AT91_SMC_NWEPULSE (0x7f << 0) /* NWE Pulse Length */
|
||||||
|
#define AT91_SMC_NWEPULSE_(x) ((x) << 0)
|
||||||
|
#define AT91_SMC_NCS_WRPULSE (0x7f << 8) /* NCS Pulse Length in Write Access */
|
||||||
|
#define AT91_SMC_NCS_WRPULSE_(x)((x) << 8)
|
||||||
|
#define AT91_SMC_NRDPULSE (0x7f << 16) /* NRD Pulse Length */
|
||||||
|
#define AT91_SMC_NRDPULSE_(x) ((x) << 16)
|
||||||
|
#define AT91_SMC_NCS_RDPULSE (0x7f << 24) /* NCS Pulse Length in Read Access */
|
||||||
|
#define AT91_SMC_NCS_RDPULSE_(x)((x) << 24)
|
||||||
|
|
||||||
|
#define AT91_SMC_CYCLE(n) (AT91_SMC + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */
|
||||||
|
#define AT91_SMC_NWECYCLE (0x1ff << 0 ) /* Total Write Cycle Length */
|
||||||
|
#define AT91_SMC_NWECYCLE_(x) ((x) << 0)
|
||||||
|
#define AT91_SMC_NRDCYCLE (0x1ff << 16) /* Total Read Cycle Length */
|
||||||
|
#define AT91_SMC_NRDCYCLE_(x) ((x) << 16)
|
||||||
|
|
||||||
|
#define AT91_SMC_MODE(n) (AT91_SMC + 0x0c + ((n)*0x10)) /* Mode Register for CS n */
|
||||||
|
#define AT91_SMC_READMODE (1 << 0) /* Read Mode */
|
||||||
|
#define AT91_SMC_WRITEMODE (1 << 1) /* Write Mode */
|
||||||
|
#define AT91_SMC_EXNWMODE (3 << 4) /* NWAIT Mode */
|
||||||
|
#define AT91_SMC_EXNWMODE_DISABLE (0 << 4)
|
||||||
|
#define AT91_SMC_EXNWMODE_FROZEN (2 << 4)
|
||||||
|
#define AT91_SMC_EXNWMODE_READY (3 << 4)
|
||||||
|
#define AT91_SMC_BAT (1 << 8) /* Byte Access Type */
|
||||||
|
#define AT91_SMC_BAT_SELECT (0 << 8)
|
||||||
|
#define AT91_SMC_BAT_WRITE (1 << 8)
|
||||||
|
#define AT91_SMC_DBW (3 << 12) /* Data Bus Width */
|
||||||
|
#define AT91_SMC_DBW_8 (0 << 12)
|
||||||
|
#define AT91_SMC_DBW_16 (1 << 12)
|
||||||
|
#define AT91_SMC_DBW_32 (2 << 12)
|
||||||
|
#define AT91_SMC_TDF (0xf << 16) /* Data Float Time. */
|
||||||
|
#define AT91_SMC_TDF_(x) ((x) << 16)
|
||||||
|
#define AT91_SMC_TDFMODE (1 << 20) /* TDF Optimization - Enabled */
|
||||||
|
#define AT91_SMC_PMEN (1 << 24) /* Page Mode Enabled */
|
||||||
|
#define AT91_SMC_PS (3 << 28) /* Page Size */
|
||||||
|
#define AT91_SMC_PS_4 (0 << 28)
|
||||||
|
#define AT91_SMC_PS_8 (1 << 28)
|
||||||
|
#define AT91_SMC_PS_16 (2 << 28)
|
||||||
|
#define AT91_SMC_PS_32 (3 << 28)
|
||||||
|
|
||||||
|
#if defined(AT91_SMC1) /* The AT91SAM9263 has 2 Static Memory contollers */
|
||||||
|
#define AT91_SMC1_SETUP(n) (AT91_SMC1 + 0x00 + ((n)*0x10)) /* Setup Register for CS n */
|
||||||
|
#define AT91_SMC1_PULSE(n) (AT91_SMC1 + 0x04 + ((n)*0x10)) /* Pulse Register for CS n */
|
||||||
|
#define AT91_SMC1_CYCLE(n) (AT91_SMC1 + 0x08 + ((n)*0x10)) /* Cycle Register for CS n */
|
||||||
|
#define AT91_SMC1_MODE(n) (AT91_SMC1 + 0x0c + ((n)*0x10)) /* Mode Register for CS n */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007
|
* (C) Copyright 2007
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/gpio.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/gpio.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2005 HP Labs
|
* Copyright (C) 2005 HP Labs
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/hardware.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/hardware.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2003 SAN People
|
* Copyright (C) 2003 SAN People
|
||||||
* Copyright (C) 2003 ATMEL
|
* Copyright (C) 2003 ATMEL
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* include/asm-arm/arch-at91/io.h
|
* [origin: Linux kernel include/asm-arm/arch-at91/io.h]
|
||||||
*
|
*
|
||||||
* Copyright (C) 2003 SAN People
|
* Copyright (C) 2003 SAN People
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -24,9 +24,7 @@
|
|||||||
#ifndef __ASM_ARCH_MX31_H
|
#ifndef __ASM_ARCH_MX31_H
|
||||||
#define __ASM_ARCH_MX31_H
|
#define __ASM_ARCH_MX31_H
|
||||||
|
|
||||||
u32 mx31_get_mpl_dpdgck_clk(void);
|
extern u32 mx31_get_ipg_clk(void);
|
||||||
u32 mx31_get_mcu_main_clk(void);
|
extern void mx31_gpio_mux(unsigned long mode);
|
||||||
u32 mx31_get_ipg_clk(void);
|
|
||||||
void mx31_gpio_mux(unsigned long mode);
|
|
||||||
|
|
||||||
#endif /* __ASM_ARCH_MX31_H */
|
#endif /* __ASM_ARCH_MX31_H */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007
|
* (C) Copyright 2007
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ extern inline void out_be32(volatile unsigned __iomem *addr, int val)
|
|||||||
static inline void *
|
static inline void *
|
||||||
map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
|
map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
|
||||||
{
|
{
|
||||||
return (void *)paddr;
|
return (void *)((unsigned long)paddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -772,10 +772,14 @@
|
|||||||
#define PVR_405EP_RA 0x51210950
|
#define PVR_405EP_RA 0x51210950
|
||||||
#define PVR_405GPR_RB 0x50910951
|
#define PVR_405GPR_RB 0x50910951
|
||||||
#define PVR_405EZ_RA 0x41511460
|
#define PVR_405EZ_RA 0x41511460
|
||||||
#define PVR_405EXR1_RA 0x12911473 /* 405EXr rev A with Security */
|
#define PVR_405EXR1_RA 0x12911473 /* 405EXr rev A/B with Security */
|
||||||
#define PVR_405EXR2_RA 0x12911471 /* 405EXr rev A without Security */
|
#define PVR_405EXR2_RA 0x12911471 /* 405EXr rev A/B without Security */
|
||||||
#define PVR_405EX1_RA 0x12911477 /* 405EX rev A with Security */
|
#define PVR_405EX1_RA 0x12911477 /* 405EX rev A/B with Security */
|
||||||
#define PVR_405EX2_RA 0x12911475 /* 405EX rev A without Security */
|
#define PVR_405EX2_RA 0x12911475 /* 405EX rev A/B without Security */
|
||||||
|
#define PVR_405EXR1_RC 0x1291147B /* 405EXr rev C with Security */
|
||||||
|
#define PVR_405EXR2_RC 0x12911479 /* 405EXr rev C without Security */
|
||||||
|
#define PVR_405EX1_RC 0x1291147F /* 405EX rev C with Security */
|
||||||
|
#define PVR_405EX2_RC 0x1291147D /* 405EX rev C without Security */
|
||||||
#define PVR_440GP_RB 0x40120440
|
#define PVR_440GP_RB 0x40120440
|
||||||
#define PVR_440GP_RC 0x40120481
|
#define PVR_440GP_RC 0x40120481
|
||||||
#define PVR_440EP_RA 0x42221850
|
#define PVR_440EP_RA 0x42221850
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ extern ulong load_addr; /* Default Load Address */
|
|||||||
/* common/cmd_nvedit.c */
|
/* common/cmd_nvedit.c */
|
||||||
int env_init (void);
|
int env_init (void);
|
||||||
void env_relocate (void);
|
void env_relocate (void);
|
||||||
uchar env_get_char (int);
|
|
||||||
int envmatch (uchar *, int);
|
int envmatch (uchar *, int);
|
||||||
char *getenv (char *);
|
char *getenv (char *);
|
||||||
int getenv_r (char *name, char *buf, unsigned len);
|
int getenv_r (char *name, char *buf, unsigned len);
|
||||||
|
|||||||
@@ -602,6 +602,16 @@
|
|||||||
HRCWH_TSEC2M_IN_GMII )
|
HRCWH_TSEC2M_IN_GMII )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* System performance
|
||||||
|
*/
|
||||||
|
#define CFG_ACR_PIPE_DEP 3 /* Arbiter pipeline depth (0-3) */
|
||||||
|
#define CFG_ACR_RPTCNT 3 /* Arbiter repeat count (0-7) */
|
||||||
|
#define CFG_SPCR_TSEC1EP 3 /* TSEC1 emergency priority (0-3) */
|
||||||
|
#define CFG_SPCR_TSEC2EP 3 /* TSEC2 emergency priority (0-3) */
|
||||||
|
#define CFG_SCCR_TSEC1CM 1 /* TSEC1 clock mode (0-3) */
|
||||||
|
#define CFG_SCCR_TSEC2CM 1 /* TSEC2 & I2C0 clock mode (0-3) */
|
||||||
|
|
||||||
/* System IO Config */
|
/* System IO Config */
|
||||||
#define CFG_SICRH SICRH_TSOBI1
|
#define CFG_SICRH SICRH_TSOBI1
|
||||||
#define CFG_SICRL SICRL_LDP_A
|
#define CFG_SICRL SICRL_LDP_A
|
||||||
|
|||||||
@@ -59,16 +59,16 @@
|
|||||||
* Base addresses -- Note these are effective addresses where the
|
* Base addresses -- Note these are effective addresses where the
|
||||||
* actual resources get mapped (not physical addresses)
|
* actual resources get mapped (not physical addresses)
|
||||||
*----------------------------------------------------------------------*/
|
*----------------------------------------------------------------------*/
|
||||||
#define CFG_MONITOR_LEN (256 * 1024)/* Reserve 256 kB for Monitor */
|
|
||||||
#define CFG_MALLOC_LEN (512 * 1024)/* Reserve 512 kB for malloc() */
|
|
||||||
|
|
||||||
#define CFG_SDRAM_BASE 0x00000000
|
#define CFG_SDRAM_BASE 0x00000000
|
||||||
#define CFG_FLASH_BASE 0xfe000000
|
#define CFG_FLASH_BASE 0xfe000000
|
||||||
#define CFG_MONITOR_BASE TEXT_BASE
|
|
||||||
#define CFG_CPLD_BASE 0x80000000
|
#define CFG_CPLD_BASE 0x80000000
|
||||||
#define CFG_NAND_ADDR 0xd0000000
|
#define CFG_NAND_ADDR 0xd0000000
|
||||||
#define CFG_USB_HOST 0xef603000 /* USB OHCI 1.1 controller */
|
#define CFG_USB_HOST 0xef603000 /* USB OHCI 1.1 controller */
|
||||||
|
|
||||||
|
#define CFG_MONITOR_BASE TEXT_BASE
|
||||||
|
#define CFG_MONITOR_LEN (0xFFFFFFFF - CFG_MONITOR_BASE + 1)
|
||||||
|
#define CFG_MALLOC_LEN (512 * 1024)/* Reserve 512 kB for malloc() */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
* Initial RAM & stack pointer
|
* Initial RAM & stack pointer
|
||||||
*----------------------------------------------------------------------*/
|
*----------------------------------------------------------------------*/
|
||||||
@@ -237,6 +237,7 @@
|
|||||||
#define CONFIG_PHY_ADDR 0 /* PHY address */
|
#define CONFIG_PHY_ADDR 0 /* PHY address */
|
||||||
#define CONFIG_NET_MULTI 1
|
#define CONFIG_NET_MULTI 1
|
||||||
#define CFG_RX_ETH_BUFFER 16 /* # of rx buffers & descriptors*/
|
#define CFG_RX_ETH_BUFFER 16 /* # of rx buffers & descriptors*/
|
||||||
|
#define CONFIG_HAS_ETH0 1
|
||||||
|
|
||||||
#define CONFIG_NETCONSOLE /* include NetConsole support */
|
#define CONFIG_NETCONSOLE /* include NetConsole support */
|
||||||
|
|
||||||
@@ -246,6 +247,9 @@
|
|||||||
|
|
||||||
#undef CONFIG_BOOTARGS
|
#undef CONFIG_BOOTARGS
|
||||||
|
|
||||||
|
#define xstr(s) str(s)
|
||||||
|
#define str(s) #s
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
"netdev=eth0\0" \
|
"netdev=eth0\0" \
|
||||||
"hostname=acadia\0" \
|
"hostname=acadia\0" \
|
||||||
@@ -268,8 +272,9 @@
|
|||||||
"ramdisk_addr=fff20000\0" \
|
"ramdisk_addr=fff20000\0" \
|
||||||
"initrd_high=30000000\0" \
|
"initrd_high=30000000\0" \
|
||||||
"load=tftp 200000 acadia/u-boot.bin\0" \
|
"load=tftp 200000 acadia/u-boot.bin\0" \
|
||||||
"update=protect off fffc0000 ffffffff;era fffc0000 ffffffff;" \
|
"update=protect off " xstr(CFG_MONITOR_BASE) " FFFFFFFF;" \
|
||||||
"cp.b ${fileaddr} fffc0000 ${filesize};" \
|
"era " xstr(CFG_MONITOR_BASE) " FFFFFFFF;" \
|
||||||
|
"cp.b ${fileaddr} " xstr(CFG_MONITOR_BASE) " ${filesize};" \
|
||||||
"setenv filesize;saveenv\0" \
|
"setenv filesize;saveenv\0" \
|
||||||
"upd=run load update\0" \
|
"upd=run load update\0" \
|
||||||
"nload=tftp 200000 acadia/u-boot-nand.bin\0" \
|
"nload=tftp 200000 acadia/u-boot-nand.bin\0" \
|
||||||
@@ -501,4 +506,8 @@
|
|||||||
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* pass open firmware flat tree */
|
||||||
|
#define CONFIG_OF_LIBFDT 1
|
||||||
|
#define CONFIG_OF_BOARD_SETUP 1
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* Configuation settings for the AT91CAP9ADK board.
|
* Configuation settings for the AT91CAP9ADK board.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* (C) Copyright 2007-2008
|
* (C) Copyright 2007-2008
|
||||||
* Stelian Pop <stelian.pop <at> leadtechdesign.com>
|
* Stelian Pop <stelian.pop@leadtechdesign.com>
|
||||||
* Lead Tech Design <www.leadtechdesign.com>
|
* Lead Tech Design <www.leadtechdesign.com>
|
||||||
*
|
*
|
||||||
* Configuation settings for the AT91SAM9260EK board.
|
* Configuation settings for the AT91SAM9260EK board.
|
||||||
|
|||||||
@@ -291,6 +291,7 @@
|
|||||||
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
||||||
#define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
|
#define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
|
||||||
|
|
||||||
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_MII 1 /* MII PHY management */
|
#define CONFIG_MII 1 /* MII PHY management */
|
||||||
#define CONFIG_PHY_ADDR 0 /* PHY address, See schematics */
|
#define CONFIG_PHY_ADDR 0 /* PHY address, See schematics */
|
||||||
#define CONFIG_PHY1_ADDR 1
|
#define CONFIG_PHY1_ADDR 1
|
||||||
@@ -426,4 +427,9 @@
|
|||||||
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
|
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
|
||||||
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* pass open firmware flat tree */
|
||||||
|
#define CONFIG_OF_LIBFDT 1
|
||||||
|
#define CONFIG_OF_BOARD_SETUP 1
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|||||||
@@ -128,6 +128,7 @@
|
|||||||
|
|
||||||
#define CONFIG_MII 1 /* MII PHY management */
|
#define CONFIG_MII 1 /* MII PHY management */
|
||||||
#define CONFIG_PHY_ADDR 1 /* PHY address */
|
#define CONFIG_PHY_ADDR 1 /* PHY address */
|
||||||
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_PHY1_ADDR 2 /* EMAC1 PHY address */
|
#define CONFIG_PHY1_ADDR 2 /* EMAC1 PHY address */
|
||||||
#define CONFIG_NET_MULTI 1
|
#define CONFIG_NET_MULTI 1
|
||||||
@@ -435,4 +436,8 @@
|
|||||||
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* pass open firmware flat tree */
|
||||||
|
#define CONFIG_OF_LIBFDT 1
|
||||||
|
#define CONFIG_OF_BOARD_SETUP 1
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|||||||
@@ -201,6 +201,7 @@
|
|||||||
|
|
||||||
#define CONFIG_MII 1 /* MII PHY management */
|
#define CONFIG_MII 1 /* MII PHY management */
|
||||||
#define CONFIG_PHY_ADDR 8 /* PHY address */
|
#define CONFIG_PHY_ADDR 8 /* PHY address */
|
||||||
|
#define CONFIG_HAS_ETH0
|
||||||
#define CONFIG_HAS_ETH1
|
#define CONFIG_HAS_ETH1
|
||||||
#define CONFIG_PHY1_ADDR 9 /* EMAC1 PHY address */
|
#define CONFIG_PHY1_ADDR 9 /* EMAC1 PHY address */
|
||||||
#define CONFIG_NET_MULTI 1
|
#define CONFIG_NET_MULTI 1
|
||||||
@@ -306,4 +307,9 @@
|
|||||||
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
|
#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
|
||||||
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* pass open firmware flat tree */
|
||||||
|
#define CONFIG_OF_LIBFDT 1
|
||||||
|
#define CONFIG_OF_BOARD_SETUP 1
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
#define CFG_ACE_BASE 0xfe000000 /* Xilinx ACE controller - Compact Flash */
|
#define CFG_ACE_BASE 0xfe000000 /* Xilinx ACE controller - Compact Flash */
|
||||||
|
|
||||||
#define CFG_MONITOR_BASE TEXT_BASE
|
#define CFG_MONITOR_BASE TEXT_BASE
|
||||||
#define CFG_MONITOR_LEN (0xFFFFFFFF - CFG_MONITOR_LEN + 1)
|
#define CFG_MONITOR_LEN (0xFFFFFFFF - CFG_MONITOR_BASE + 1)
|
||||||
#define CFG_MALLOC_LEN (512 * 1024) /* Reserve 512 kB for malloc */
|
#define CFG_MALLOC_LEN (512 * 1024) /* Reserve 512 kB for malloc */
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user