Commit Graph

21601 Commits

Author SHA1 Message Date
c416374795 Merge branch 'sunxi-current' into sunxi
this marks the end of sunxi-current. from now on sunxi branch will
track upstream.
v2013.07-sunxi
2013-08-19 21:09:11 +02:00
218f643881 Fix /boot/ test in default environment.
If you've got everything on one partition, bootpath is set to "/boot/",
but the test in setargs was looking for "boot/", so it wound up using
the wrong root device.

Signed-off-by: Adam Sampson <ats@offog.org>
2013-08-19 20:50:13 +02:00
0365c8db52 Remove ZFS from default sunxi u-boot builds. 2013-08-19 20:34:14 +02:00
cee2bdf58e Enable ELF loading with network support. 2013-08-19 20:34:14 +02:00
a3cca42190 Startup secondary core on sun7i. Creates a new backwards compatible SMP boot protocol. 2013-08-19 20:34:14 +02:00
d07bcb82d9 Make default sunxi prompts a little cleaner. 2013-08-19 20:34:14 +02:00
0f2f167539 Add Marsboard-A20 board 2013-08-19 20:34:14 +02:00
fd8352d909 Fix typos 2013-08-19 20:34:13 +02:00
645e90151a sun7i: Put the CPU in smp mode when starting (the non spl) u-boot
If the CPU is left in AMP mode, all its caches are disabled. This fixes the
circa 8 second delay when uncompressing the Linux uImage on boot.

Thanks to Maxime Ripard for pointing out this bit needs to be set.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-08-11 12:45:52 +02:00
c0f3b94d7c sunxi: Add Marsboard A10 board
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-08-04 14:53:36 +02:00
c1ab7e39d0 sunxi-auxtek-t00?: Add statusled support
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-08-04 14:51:15 +02:00
29689232f8 early-printk uses hardcoded offset and lacks some spaces
This patch cleans up early printk a little by removing some magic values
and adding some spaces where needed.

Also there where some duplicates that where removed

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-26 15:45:03 +02:00
11a1d1eea1 Fix layout in copyright notice 2013-07-26 15:32:58 +02:00
20f3d34d01 Randdom tiny fixes (resend based on sunxi-current)
I ran into little stuff that wasn't consistend and required fixing.
It's really just nitpicking on little things. It should have gone into
the previous cleanup patch; but i overlooked these 2 files.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-25 21:03:21 +02:00
38ba5ba425 Use PHYS_SDRAM_1_SIZE instead of magic value
U-Boot likes the defines PHYS_SDRAM_n_* and we should agree.

Patch applies cleanly to sunxi-current.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-25 21:03:21 +02:00
ded8a0a669 sunxi: remove redundant sunxi_wemac.c again.. 2013-07-25 20:58:42 +02:00
610f905eeb sunxi: Add Cubieboard2 (A20 on Cubieboard rev 2012-09-09)
dram_para is taken from script.bin/dmesg on Android 4.2 image
2013-07-25 17:40:21 +02:00
b86f525e99 sunxi: Add status led to A20-OLinuXino board 2013-07-25 17:40:21 +02:00
1892046143 sunxi: Add A20-OLinuXIno board 2013-07-25 17:40:21 +02:00
f5a9f12095 add eoma68-a20
use a10_meminfo_static values

Cleanup sun7i config

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
2013-07-25 17:40:21 +02:00
991433178a Merge A20 support from wip/a20 2013-07-25 17:39:31 +02:00
d4164dd237 Add more sun7i specifics from drop
This adds a few more specifics from sun7i. Command Rate was added, which
could tune memory slightly. Some code from Powermanamgement 'super
standby' that most likly can be cleared later if found to be unused.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-25 17:38:42 +02:00
68b980dfb7 add sun7i.h header
Cleanup sun7i config

Update my copyright

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
2013-07-25 17:38:41 +02:00
3d5e695a0e DRAM controller magic values cleanup (a20)
There where a few A20 magic values added and comments ommited. This
patch cleans those up.
2013-07-25 17:38:41 +02:00
75e537b3f5 sunxi: Allwinner SUN7I (A20) support
add a20 dram setup

Supply para->tpr3 as phase argument to dll0 and dllx setup

create CONFIG_SUN7I

SUN7I is using the same MMC controller as SUN5I

Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-25 17:38:41 +02:00
5e515c0160 DRAM controller magic values cleanup
This patch tries to cleanup as much of the magic values in dram.c as
possible. Obviously for some registers we have no information so cannot
fill those in. No actual code changes took place.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-25 17:32:35 +02:00
90736a8320 Set io_width = 8 for the Sanei N90.
Oliver Schinagl suggested that this was a more appropriate setting for the
N90's DRAM configuration (4x Hynix H5TQ2G83CFR H9C 150HA).

Signed-off-by: Adam Sampson <ats@offog.org>
2013-07-24 12:20:11 +02:00
5bd5fb260a Update Sanei N90 settings to match a real board.
These were extracted from my M9701 (unbranded version of the N90) using
a10-meminfo-static. Total size is changed to 1GB, which matches ppizarro's
original description of his device, and on-die termination is enabled.

Signed-off-by: Adam Sampson <ats@offog.org>
2013-07-24 12:20:01 +02:00
a7deba84eb Set io_width = 8 for the Sanei N90.
Oliver Schinagl suggested that this was a more appropriate setting for the
N90's DRAM configuration (4x Hynix H5TQ2G83CFR H9C 150HA).

Signed-off-by: Adam Sampson <ats@offog.org>
2013-07-24 12:18:28 +02:00
671051f3eb Update Sanei N90 settings to match a real board.
These were extracted from my M9701 (unbranded version of the N90) using
a10-meminfo-static. Total size is changed to 1GB, which matches ppizarro's
original description of his device, and on-die termination is enabled.

Signed-off-by: Adam Sampson <ats@offog.org>
2013-07-24 12:18:28 +02:00
c39188af15 Merge tag 'v2013.07' into sunxi-current
Prepare v2013.07
2013-07-23 20:28:53 +02:00
8359c86437 Merge branch 'sunxi-current' of github.com:linux-sunxi/u-boot-sunxi into sunxi-current 2013-07-23 20:27:23 +02:00
3c85f0c486 sunxi: Add MELE A1000 FEL SPL board variant 2013-07-23 20:26:43 +02:00
62c175fbb8 Prepare v2013.07
Signed-off-by: Tom Rini <trini@ti.com>
2013-07-23 07:58:13 -04:00
50ffc3b64a fs/ext4: fix log2blksz un-initialized error, by cacaulating its value from blksz
The problem here is that uboot can't mount ext4 filesystem with
commit "50ce4c07df1" applied. We use hard-coded "SECTOR_SIZE"(512)
before this commit, now we introduce (block_dev_desc_t *)->log2blksz
to replace this macro. And after we calling do_ls()->fs_set_blk_dev(),
the variable log2blksz is not initialized, which it's not correct.

And this patch try to solve the problem by caculating the value of
log2blksz from variable blksz.
2013-07-22 10:09:56 -04:00
8b415f703f ext4fs: le32_to_cpu() used on a 16-bit field
Fix reading ext4_extent_header struture on BE machines.  Some 16 bit
fields where converted to 32 bit fields, due to the byte swap on BE
machines the containing value was corrupted. Therefore reading ext4
filesystems on BE machines where broken before.

Signed-off-by: Rommel Custodio <sessyargc+uboot@gmail.com>
[sent via git-send-email; rework commit message]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
2013-07-22 10:09:30 -04:00
b899fa3901 arm: at91sam9n12: change EBI IO to high drive mode
As both the DDR SDRAM and NAND flash connect to EBI on at91sam9n12
and share the lower 8 bits data line. If use low drive of the data
line, it will cause DDR data access corrupt in lower address, so
change the data line to high drive mode

This will fix the Linux kernel boot issue when use Lower address

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
2013-07-22 08:20:14 -04:00
fdf86c202c ddr cfg: DRAM_RESET needs 0x00020030
The old value of 0x000e0030 will cause ethernet
timeout issues on the sabrelite and possibly other
boards using the KSZ9021.
I have no explanation as to why.

But this is a correct change, the TRM will be updated
to show that 00b is the only valid setting for bits
19-18 of DRAM_RESET.

My thanks go to Liu Hui(Jason) for this information.

Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
2013-07-20 12:14:09 -04:00
35da006656 Add pengpod700 and pengpod1000
Add support for Pengpod's using known memory timings.

Authored-by: Neal Peacock <neal@pengpod.com>
Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-20 11:23:10 +02:00
3a6ecce5bf Add pengpod700 and pengpod1000
Add support for Pengpod's using known memory timings.

Authored-by: Neal Peacock <neal@pengpod.com>
Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
2013-07-20 11:15:47 +02:00
9a5dad2393 net: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case
Commit de1d786e (add support for Xilinx 1000BASE-X phy (GTX)) introduced the
checking for ESTATUS_1000_XHALF, but it incorrectly sets the
SUPPORTED_1000baseX_Full flag in this case.

Set the SUPPORTED_1000baseX_Half flag instead.

Acked-by: Charles Coldwell <coldwell@gmail.com>
Reviewed-By: Sascha Silbe <t-uboot@infra-silbe.de>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
2013-07-19 17:12:20 -04:00
9ba30f6bc2 phy: fix 10/100Mbps operation on 1Gbps-capable links
de1d786 [add support for Xilinx 1000BASE-X phy (GTX)] introduced a
check for the extended status register in order to support
1Gbps-capable PHYs that don't have the 1000BASE-T registers. Since
Extended Status only indicates what the PHY (i.e. the local side) is
capable of, this broke communication with non-1Gbps peers.

Only check the extended status if the 1000BASE-T registers are
actually missing so we don't end up setting speed to 1Gbps even though
the previous test (for the combination of local and peer support for
1Gbps) already indicated we can't do 1Gbps with the current peer.

Signed-off-by: Sascha Silbe <t-uboot@infra-silbe.de>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
2013-07-19 17:12:16 -04:00
971c450a44 mkimage: Use board config to get CONFIG_FIT_SIGNATURE value
The value of this config variable is not available to image.h on the host,
since the board config is not actually included. Bring this in so that
mkimage will be built with image-signing support for sandbox at least.

Signed-off-by: Simon Glass <sjg@chromium.org>
2013-07-19 09:45:19 -04:00
4ef400b9f8 arm:trats:fix: Correction of loaddtb environment variable.
Missing space for loaddtb command has been added. When missing, ext4load
fails with wrong number of passed parameters.

Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
2013-07-19 08:30:10 -04:00
444ef0e70b Merge branch 'sunxi-current' of github.com:linux-sunxi/u-boot-sunxi into sunxi-current 2013-07-19 01:19:58 +02:00
4df351f4e4 Merge tag 'v2013.07-rc3' of git://git.denx.de/u-boot into sunxi-current
Prepare v2013.07-rc3

Conflicts:
	drivers/net/Makefile
	include/netdev.h
	drivers/net/sunxi_[w]emac.c, upstream merged b481a30b05
2013-07-19 01:03:40 +02:00
576aacdb91 bootm: Move fixup_silent_linux() earlier in the bootm stages
Before the bootm refactor, fixup_silent_linux() was done only in the
monolithic bootm case, not in the subcommand case. With the refactor, it
is done always, which is good. Unfortunately it is done too late, since it
is the PREP or CMDLINE stages that set up the command line for Linux.

Move fixup_silent_linux() into the LOADOS stage, which is where we find
out the OS being used, and can thus decide whether to perform this step.

Signed-off-by: Simon Glass <sjg@chromium.org>
2013-07-17 10:37:11 -04:00
c3e0afca48 README.mx28_common: Rename it to README.mxs
commit 54965b6136 (README: mxs: Introduce README.mxs) should have changed the
file name to README.mxs, as it covers both mx23 and mx28 now.

Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
2013-07-17 09:56:50 -04:00
f78cb2ab1e Merge branch 'master' of git://git.denx.de/u-boot-mmc 2013-07-16 21:05:35 -04:00
a61da72bda fsl_esdhc: Touch only relevant sys ctrl bits
Dealing with the sys ctrl register should touch only the
relevant bits and not accidently the whole register. On i.MX6,
the sys control register contains bits which shouldn't be reset to
0, e.g. SYS_CTRL[3-0] and IPP_RST_N (SYS_CTRL[23]).

Do this by read/modify/write instead of just a 32bit write.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Andy Fleming <afleming@freescale.com>
2013-07-16 18:44:23 -05:00