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>
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>
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>
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>
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>
use a10_meminfo_static values
Cleanup sun7i config
Signed-off-by: Luke Leighton <lkcl@lkcl.net>
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
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>
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>
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>
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>
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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>