k9f1g08r0a: add support for reading parameter page
this allows to read full NAND model name, which is useful to
distinguish between POP parts that both have the same manufacturer/device
id, but different RAM.
This patch fixes following warnings:
include/asm/arch/i2c.h:89:65: warning: "/*" within comment
include/asm/arch/i2c.h:90:8: warning: "/*" within comment
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
igep00x0, beagle and omap3evm: fixing bug at prcm_init
Commit 73eb46434657c8c2c9e7c9146406031fc4d124ce changed get_cpu_rev()
to be a generic function for all omap 3 based boards, to remove
duplicated code. As a side effect, the behavior changed for beagle and
omap3evm when the board is based on 37XX, returning a different value
then CPU3430_ES2, causing a bug at prcm_init.
The fix is already applied for overo, as you can see from commit 24b8b7f41a83540433024854736518876257672c, changing the index calculation
to behave correctly with all board revs. This patch only applies the
same fix for the other omap 3 based boards that could be affected.
Joel Fernandes [Fri, 15 Jul 2011 05:52:01 +0000 (11:22 +0530)]
Beagle Rev C5 support
This patch adds Rev C5 support for a new memory chip that was added to
the Beagleboard Revision C5. The chip is 256MB SDRAM and the following
patch enables it.
The micron memory chip part is: MT29C4G48MAZAPAKQ-5 IT.
Signed-off-by: Joel A Fernandes <joelagnel@ti.com> Signed-off-by: Koen Kooi <k-kooi@ti.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
The abort() is a dummy function that is not being used, and the
get_sysboot_value() function is not being used on IGEP boards, so it's
safe to remove these functions.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
After clearing the support for omap2420h4 and omap2430sdp the files in
cpu/arm1136 and include/asm/arch-arm1136 directories are not being
used so we can remove it.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
lib/printf.c: making serial_printf return vsprintf ret value
Making it work the same way as current u-boot head, and as a side effect
also fixing build when -Werror=unused-but-set-variable is used:
printf.c: In function 'serial_printf':
printf.c:290:7: error: variable 'i' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
omap4: pandaboard: ehci fref_clkout per board revision
Add support for correctly configuring the fref_clkout depending on the
board revision of the pandaboard. This patch is necessary to make u-boot
work with the smsc usb+ethernet driver.
Tested USB+Eth with TFTP and PXE using linaro u-boot:
http://git.linaro.org/gitweb?p=boot/u-boot-linaro-stable.git;a=summary
Based on patch from David Anders <x0132446@ti.com> from
omap4_panda_L24.9 branch at gitorious.org/pandaboard x-loader tree.
Changes since v1:
* Moving the code from s_init instead of adding a new block
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
OMAP3: Name refactoring for current and future IGEP boards
Refactor IGEP2 support and add support for IGEP3 board. These boards are
very similar and can be merged into one file (igep00x0). This
is an attempt to reduce and not duplicate code unnecessarily.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
SYS_NIRQ2 pin if not in safe mode, with audio driver enabled gates
CORE RET. Hence configured in safe mode. Audio driver is expected
to re-init the pin in the kernel.
Patch based on the SDP one from dev.omapzoom.org (59df6c45) by
Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Rajeev Kulkarni [Fri, 25 Mar 2011 07:27:21 +0000 (12:57 +0530)]
OMAP4: Select DPLL PER Clock as source for SGX FCLK
The correct frequency for SGX is 307.2 Mhz. If DPLL_PER
is set 1536 Mhz, There is no need to change dividers, just
parent clock need to change. And DPLL PER is set at 1536.
Signed-off-by: Rajeev Kulkarni <rajeevk@ti.com> Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Signed-off-by: Sebastien Jan <s-jan@ti.com> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Jason Kridner [Mon, 14 Mar 2011 08:31:14 +0000 (14:01 +0530)]
BeagleBoard: Forced newer revisions to default to xM.
Even if we don't know what revision of the board it is, the default should be to use the
latest known revision, not to simply fail or default to an older revision that could be
detected anyway.
LoïMinier [Mon, 14 Mar 2011 07:31:53 +0000 (13:01 +0530)]
Add error checking to all file functions
When building with a fortify-enabled toolchain, one would get:
scripts/signGP.c:305:8: warning: ignoring return value of .fread., declared with attribute warn_unused_result
LoïMinier [Mon, 14 Mar 2011 07:31:36 +0000 (13:01 +0530)]
Add -marm -fno-stack-protector to CFLAGS on ARM
The Linaro-based arm-linux-gnueabi cross-compiler in Ubuntu defaults to
Thumb 2 and enables the stack protector by default, both of which can
break x-loader at runtime (the former breaks the build).
Andy Green [Wed, 9 Feb 2011 14:46:34 +0000 (14:46 +0000)]
xloader: Panda - clean small refactors and hang with spam_leds
Get rid of do loops where while is simpler.
Lose some indent with return.
Change hang loop to use spam_leds(), it's no worse
even if mux wasn't set up.
Signed-off-by: Andy Green <andy.green@linaro.org> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:45:14 +0000 (14:45 +0000)]
xloader: Panda - fix ROM OTG boot path
When the OMAP 4 on Panda sees that USB OTG external power is present,
it changes the boot flow in the ROM to try to boot via that before
trying MMC1. If it isn't satisfied, it falls through to try MMC1.
Without this patch, under those conditions X-Loader is unable to
update the DPLL as it needs to do during dram initialization, because
the EMIF never goes idle allowing the shadow update mechanism to
apply the new settings.
It therefore loops for a long period waiting to confirm the settings
applied and boot is hung (with LEDs off, so the device looks OFF).
This patch re-enables EMIF idle which was previously commented out with
"No IDLE: BUG in SDC" to allow the new DPLL settings to apply.
With the patch against http://gitorious.org/x-loader HEAD the Panda is
able to boot from either USB OTG power applied or DC Jack power OK.
Note that I saw peak current during boot of 650mA, higher than the
500mA allowed by USB. It may go higher with other peripherals enabled
or trying to use USB host on Panda.
Signed-off-by: Andy Green <andy.green@linaro.org> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:43:08 +0000 (14:43 +0000)]
xloader: Panda - convert explicit volatile rw to __raw_xx
There were a ton of explicit volatile address to pointer
casts and such. This converts them all to __raw_[read|write][l|w]
and in the process makes checkpatch much happier
Signed-off-by: Andy Green <andy.green@linaro.org> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:40:50 +0000 (14:40 +0000)]
xloader: Panda - bugfix missing while body
It looks like there is a missing ; that brings the following sr32
into the loop body. That probably wasn't intentional and could
lead to unreliable ordering of the completion check and possibly
no sr32 following completion.
Signed-off-by: Andy Green <andy.green@linaro.org> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Vaibhav Bedia [Mon, 14 Mar 2011 07:13:08 +0000 (12:43 +0530)]
gitignore: Add x-load.bin.ift to the list of ignored files
The commit d0dadd2c46c1a0fd0b8cbe5fa84ce487fe5c2368 updated the
gitignore file but in the process missed out adding x-load.bin.ift
to the list of ignored files.
Aaron Carroll [Fri, 28 Jan 2011 19:22:12 +0000 (00:52 +0530)]
omap4430panda: enable clock gating for M6_DPLL_CORE
The M6 clock from the core DPLL supplies a clock to the debug domain.
After the core DPLL is locked, the M6 clock appears to stop if clock
gating has been *disabled* for that output (reason unknown). This
breaks JTAG debugging.
This patch enables clock gating on M6_DPLL_CORE before locking the
core DPLL, so the debugger continues to work.
Nishanth Menon [Wed, 26 Jan 2011 14:04:35 +0000 (19:34 +0530)]
gitignore: be explicit for x-load files
As discussed in thread:
http://groups.google.com/group/x-loader/browse_thread/thread/bf17e22c9628c630
x-load.lds file gets ignored by having x-load.*
as a coverall. we should ignore just the x-load, and corresponding
.map and .bin files alone.
Reported by: Enric Balletbo i Serra <eballetbo@gmail.com>
The IGEP v2 board is a low-cost, fan-less and industrial temperature
range single board computer that unleashes laptop-like performance and
expandability without the bulk, expense, or noise of typical desktop
machines. Its architecture shares much in common with other OMAP3 boards.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
onenand|ddr: Add support for M39B0Rx0xxN1 Numonyx POP device
The M39B0Rx0xxN1 combines the following memory devices in MCP (multichip package):
* 2-Gbit (x16), 1.8 V OneNANDTM flash memory, the NAND02GR4E0A
* 4-Gbit DDP (DUAL DIE PLAN) (x16), 1.8 V OneNANDTM flash memory, the
NAND04GR4E1A
* Two or one single die of 2-Gbit double data rate LPSDRAM (low-power SDRAM), the
M65KD002AM.
The datasheets are available from your local Numonyx distributor.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Adding support for saving build objects in a separated directory.
This patch basically ports the same functionality already available at u-boot,
and can be used in two ways:
1) Add O= to the make command line
'make O=/tmp/build board_config'
'make O=/tmp/build ift'
2) Set environement variable BUILD_DIR to point to the desired location
'export BUILD_DIR=/tmp/build'
'make board_config'
'make ift'
Similar to u-boot, setting 'O=' at the command line will override the BUILD_DIR
environment variable.
If you use none of above methods, the build will happen localy, as before.
Changes since v1:
* Rebase to correctly apply against the main Makefile after the signGP merge
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Acked-by: Nishanth Menon <nm@ti.com>