Grazvydas Ignotas [Mon, 9 Dec 2013 23:23:06 +0000 (01:23 +0200)]
recognize another memory MCP chip
based on gta04 code by H. Nikolaus Schaller
Grazvydas Ignotas [Sat, 24 Mar 2012 19:35:03 +0000 (21:35 +0200)]
add 36xx reclocking code
Grazvydas Ignotas [Sat, 24 Mar 2012 19:29:23 +0000 (21:29 +0200)]
remove unneeded code
clock lookups based on sys_clkin, IVA setup, repeated SoC detection,
some conditional code.
Grazvydas Ignotas [Sat, 24 Mar 2012 16:48:12 +0000 (18:48 +0200)]
add some audio noise prevention measures
Grazvydas Ignotas [Tue, 27 Dec 2011 23:49:37 +0000 (01:49 +0200)]
stop reading NAND on special EOF signature
Grazvydas Ignotas [Mon, 21 Nov 2011 16:59:26 +0000 (18:59 +0200)]
Add support for pandora board
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Grazvydas Ignotas [Tue, 22 Nov 2011 15:03:23 +0000 (17:03 +0200)]
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.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Grazvydas Ignotas [Tue, 22 Nov 2011 16:54:44 +0000 (18:54 +0200)]
k9f1g08r0a: fix various warnings
incompatible pointer types and unused variables
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Grazvydas Ignotas [Tue, 22 Nov 2011 14:54:55 +0000 (16:54 +0200)]
Add some missing function prototypes
fixes some 'implicit declaration' warnings seen on some boards.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Grazvydas Ignotas [Mon, 21 Nov 2011 18:04:46 +0000 (20:04 +0200)]
Do i2c init before serial init
pandora needs this to power the level shifter so that
serial output can be seen.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Grazvydas Ignotas [Mon, 21 Nov 2011 18:02:53 +0000 (20:02 +0200)]
Drop I2C dependency on MMC
I could not find evidence this is needed, and all boards build fine
without it.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Tapani Utriainen [Mon, 5 Dec 2011 11:21:36 +0000 (16:51 +0530)]
board: technexion: Add support for TDM3730 SoM
Signed-off-by: Tapani Utriainen <tapani@technexion.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Tapani Utriainen [Mon, 5 Dec 2011 11:21:33 +0000 (16:51 +0530)]
board: technexion: Add support for TAO3530 SoM
Signed-off-by: Tapani Utriainen <tapani@technexion.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Tapani Utriainen [Mon, 5 Dec 2011 11:21:30 +0000 (16:51 +0530)]
board: technexion: Add support for TAM3517 SoM.
Signed-off-by: Tapani Utriainen <tapani@technexion.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Aneesh V [Mon, 5 Dec 2011 11:20:44 +0000 (16:50 +0530)]
Add dummy implementation of __aeabi_unwind_cpp_pr0 to prevent compiler errors
Courtesy Wolfgang's patch for u-boot:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/78612
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Thu, 4 Aug 2011 02:20:29 +0000 (19:20 -0700)]
Fix warning in cpu/omap3/mmc.c
This patch fixes following warning:
mmc.c: In function .mmc_init.:
mmc.c:543:26: warning: assignment from incompatible pointer type
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Thu, 4 Aug 2011 02:20:27 +0000 (19:20 -0700)]
Fix warning in include/asm/arch/i2c.h
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>
Enric Balletbo i Serra [Thu, 4 Aug 2011 02:20:24 +0000 (19:20 -0700)]
Fix warning in lib/board.c
This patch fixes following warning:
board.c: In function .init_func_i2c.:
board.c:55:2: warning: implicit declaration of function .i2c_init.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Ricardo Salveti de Araujo [Thu, 4 Aug 2011 02:18:25 +0000 (19:18 -0700)]
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.
BugLink: https://bugs.launchpad.net/ubuntu/+source/x-loader/+bug/813407
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
Acked-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Anand Gadiyar [Fri, 15 Jul 2011 06:16:18 +0000 (11:46 +0530)]
Release 1.5.1
Release 1.5.1 with:
- several fixes for panda and igep
- Drop 2420, arm1136 and arm926ejs
- OMAP3 code cleanup
- Beagle Rev C5 support
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
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>
Enric Balletbo i Serra [Wed, 25 May 2011 12:04:05 +0000 (14:04 +0200)]
OMAP3: Move try_unlock_memory() function to not duplicate code
The try_unlock_memory() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c :527:void try_unlock_memory(void)
board/igep00x0/igep00x0.c :271:void try_unlock_memory(void)
board/omap3430sdp/omap3430sdp.c :314:void try_unlock_memory(void)
board/omap3evm/omap3evm.c :359:void try_unlock_memory(void)
board/omap3430labrador/omap3430sdp.c :316:void try_unlock_memory(void)
board/overo/overo.c :478:void try_unlock_memory(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 11:57:46 +0000 (13:57 +0200)]
OMAP3: Move secure_unlock() function to not duplicate code
The secure_unlock() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c :527:void secure_unlock(void)
board/igep00x0/igep00x0.c :271:void secure_unlock(void)
board/omap3430sdp/omap3430sdp.c :314:void secure_unlock(void)
board/omap3evm/omap3evm.c :359:void secure_unlock(void)
board/omap3430labrador/omap3430sdp.c :316:void secure_unlock(void)
board/overo/overo.c :478:void secure_unlock(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 11:50:44 +0000 (13:50 +0200)]
OMAP3: Move get_sys_clkin_sel() function to not duplicate code
The get_sys_clkin_sel() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c :398:void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
board/igep00x0/igep00x0.c :142:void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
board/omap3430sdp/omap3430sdp.c :194:void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
board/omap3evm/omap3evm.c :246:void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
board/omap3430labrador/omap3430sdp.c :191:void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
board/overo/overo.c :349:void get_sys_clkin_sel(u32 osc_clk, u32 *sys_clkin_sel)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 09:07:51 +0000 (11:07 +0200)]
OMAP3: Move wait_on_value() function to not duplicate code
The wait_on_value() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c :216:u32 wait_on_value(u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)
board/igep00x0/igep00x0.c :90:u32 wait_on_value(u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)
board/omap3430sdp/omap3430sdp.c :104:u32 wait_on_value(u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)
board/omap3evm/omap3evm.c :148:u32 wait_on_value(u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)
board/omap3430labrador/omap3430sdp.c :101:u32 wait_on_value(u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)
board/overo/overo.c :207:u32 wait_on_value(u32 read_bit_mask, u32 match_value, u32 read_addr, u32 bound)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 08:30:34 +0000 (10:30 +0200)]
OMAP3: Move sr32() function to not duplicate code
The sr32() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c:215:void sr32(u32 addr, u32 start_bit, u32 num_bits, u32 value)
board/igep00x0/igep00x0.c :89:void sr32(u32 addr, u32 start_bit, u32 num_bits, u32 value)
board/omap3430sdp/omap3430sdp.c :103:void sr32(u32 addr, u32 start_bit, u32 num_bits, u32 value)
board/omap3evm/omap3evm.c :147:void sr32(u32 addr, u32 start_bit, u32 num_bits, u32 value)
board/omap3430labrador/omap3430sdp.c :100:void sr32(u32 addr, u32 start_bit, u32 num_bits, u32 value)
board/overo/overo.c :206:void sr32(u32 addr, u32 start_bit, u32 num_bits, u32 value)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 08:19:59 +0000 (10:19 +0200)]
OMAP3: Move get_sysboot_value() function to not duplicate code
The get_sysboot_value() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c :97:u32 get_sysboot_value(void)
board/omap3evm/omap3evm.c :84:u32 get_sysboot_value(void)
board/overo/overo.c :95:u32 get_sysboot_value(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 08:12:38 +0000 (10:12 +0200)]
OMAP3: Move print_cpuinfo() function to not duplicate code
The print_cpuinfo() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/igep00x0/igep00x0.c :129:int print_cpuinfo(void)
board/overo/overo.c :164:int print_cpuinfo(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 08:02:32 +0000 (10:02 +0200)]
OMAP3: Move get_cpu_rev() function to not duplicate code
The get_cpu_rev() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c :159:u32 get_cpu_rev(void)
board/igep00x0/igep00x0.c :129:u32 get_cpu_rev(void)
board/omap3430sdp/omap3430sdp.c :82:u32 get_cpu_rev(void)
board/omap3evm/omap3evm.c :135:u32 get_cpu_rev(void)
board/omap3430labrador/omap3430sdp.c :79:u32 get_cpu_rev(void)
board/overo/overo.c :164:u32 get_cpu_rev(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 07:53:41 +0000 (09:53 +0200)]
OMAP3: Move get_cpu_family() function to not duplicate code
The get_cpu_family() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/igep00x0/igep00x0.c :129:u32 get_cpu_family(void)
board/overo/overo.c :164:u32 get_cpu_family(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 07:50:10 +0000 (09:50 +0200)]
OMAP3: Move get_cpu_id() function to not duplicate code
The get_cpu_id() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/igep00x0/igep00x0.c :100:u32 get_cpu_id(void)
board/overo/overo.c :165:u32 get_cpu_id(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 07:45:25 +0000 (09:45 +0200)]
OMAP3: Move get_cpu_type() function to not duplicate code
The get_cpu_type() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/igep00x0/igep00x0.c :99:u32 get_cpu_type(void)
board/overo/overo.c :164:u32 get_cpu_type(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 07:37:22 +0000 (09:37 +0200)]
OMAP3: Move get_device_type() function to not duplicate code
The get_device_type() function is implemented by various boards, this
patch moves this function to a common place to not duplicate code.
board/omap3530beagle/omap3530beagle.c:97:u32 get_device_type(void)
board/igep00x0/igep00x0.c :90:u32 get_device_type(void)
board/omap3430sdp/omap3430sdp.c :82:u32 get_device_type(void)
board/omap3evm/omap3evm.c :84:u32 get_device_type(void)
board/omap3430labrador/omap3430sdp.c :79:u32 get_device_type(void)
board/overo/overo.c :105:u32 get_device_type(void)
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Wed, 25 May 2011 07:21:26 +0000 (09:21 +0200)]
igep00x0: Remove dummy and unnused functions
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>
Enric Balletbo i Serra [Thu, 14 Jul 2011 12:10:39 +0000 (17:40 +0530)]
arch-arm926ejs/sizes.h: Remove this files as is not being used.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Thu, 14 Jul 2011 12:07:21 +0000 (17:37 +0530)]
cpu/arm1136: Remove arm1136 support
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>
Enric Balletbo i Serra [Thu, 14 Jul 2011 12:04:12 +0000 (17:34 +0530)]
omap2420sdp: Remove this board because is not being maintained
Discussed in this thread,
http://groups.google.com/group/x-loader/browse_thread/thread/
42ee3aa6df45a896/
ea7296ba34155bad#
ea7296ba34155bad
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Thu, 14 Jul 2011 12:04:04 +0000 (17:34 +0530)]
omap2420h4: Remove this board because is not being maintained
Discussed in this thread,
http://groups.google.com/group/x-loader/browse_thread/thread/
42ee3aa6df45a896/
ea7296ba34155bad#
ea7296ba34155bad
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Ricardo Salveti de Araujo [Thu, 14 Jul 2011 11:00:57 +0000 (16:30 +0530)]
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>
Ricardo Salveti de Araujo [Thu, 14 Jul 2011 10:57:27 +0000 (16:27 +0530)]
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>
Enric Balletbo i Serra [Mon, 23 May 2011 11:25:42 +0000 (16:55 +0530)]
igep00x0: Allow boot from onenand flash.
This patch adds support for booting from onenand flash on
IGEP boards.
Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Mon, 23 May 2011 11:23:48 +0000 (16:53 +0530)]
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>
Ricardo Salveti de Araujo [Mon, 23 May 2011 11:19:36 +0000 (16:49 +0530)]
Makefile: fixing mkconfig usage
This was supposed to be part of patch
6f0a44705.
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Ricardo Salveti de Araujo [Mon, 23 May 2011 11:19:33 +0000 (16:49 +0530)]
panda: clocks: Disable slimbus and pad_clks
The slimbus and pad_clks if left enabled in x-loader
would gate abe power domain from transitioning to RET.
These should be enabled by the audio driver (if present)
in the kernel.
Patch based on the SDP one from dev.omapzoom.org (
8876b861) 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>
Ricardo Salveti de Araujo [Mon, 23 May 2011 11:19:30 +0000 (16:49 +0530)]
panda: mux: Configure SYS_NIRQ2 pin in safe mode
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>
Sebastien Jan [Fri, 25 Mar 2011 07:28:05 +0000 (12:58 +0530)]
panda: set default configuration to 1GHz
Signed-off-by: Sebastien Jan <s-jan@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Sebastien Jan [Fri, 25 Mar 2011 07:27:26 +0000 (12:57 +0530)]
panda: fix 1GHz configuration
With the introduction of the following patch:
97bb3ce xloader: Panda - fix ROM OTG boot path
prcm_init() is called earlier, but before scale_vcores().
This breaks when CONFIG_MPU_1000 is activated, so ensure that scale_vcores
is called before prcm_init().
Signed-off-by: Sebastien Jan <s-jan@ti.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>
Sebastien Jan [Fri, 25 Mar 2011 07:27:16 +0000 (12:57 +0530)]
panda: fix ES2.2+ support
Fix support for ES2.2, and offer a chance to next ES revisions to be
supported without a code change.
Signed-off-by: Sebastien Jan <s-jan@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Anand Gadiyar [Fri, 25 Mar 2011 07:24:38 +0000 (12:54 +0530)]
bump up revision to 1.5.0
We've committed several patches since we branched off from
Steve's tree. But we're still carrying around the 1.4.4ss
revision tag.
Bump up the revision to 1.5.0 and drop the ss tag.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Doan [Fri, 18 Mar 2011 07:14:15 +0000 (12:44 +0530)]
build break in lib/board.c
Commit
85c0898d4e removed the variable i. This is needed
for certain board configurations. I hit it using overo_config.
Signed-off-by: Andy Doan <andy.doan@linaro.org>
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.
Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:32:02 +0000 (13:02 +0530)]
Default to building signGP and a signed x-loader
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:31:59 +0000 (13:01 +0530)]
Merge signGP cflags into HOSTCFLAGS and use these
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:31:57 +0000 (13:01 +0530)]
Append CFLAGS and HOSTCFLAGS to environment
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
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
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:31:50 +0000 (13:01 +0530)]
Removed some dead code
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:31:47 +0000 (13:01 +0530)]
Replace die() with pdie() and err() macros
err() saves errno for pdie() to perror() the actual strerror() issue.
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:31:45 +0000 (13:01 +0530)]
Send errors to stderr
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
LoïMinier [Mon, 14 Mar 2011 07:31:42 +0000 (13:01 +0530)]
Add a die() macro to exit with an error message
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
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).
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:47:04 +0000 (14:47 +0000)]
xloader: Panda - clean remove all magic constant addresses and use symbols
Go through and eliminate magic constant addresses in the OMAP4 /
Pandaboard code by providing symbolic ones.
This also allows removal of a bunch of comments trying to note
the register names separately.
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
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:46:03 +0000 (14:46 +0000)]
xloader: Panda - kill OTG and reset PHY in case ROM started them
It'd be better if we didn't let the OS or next bootloader
see that the ROM set things up differently than usual.
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:40 +0000 (14:45 +0000)]
xloader: Panda - return memif clock to HW_AUTO after DPLL set
As advised by Aneesh V we return that clock to HW_AUTO after meddling
for DDR bringup.
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:44:47 +0000 (14:44 +0000)]
xloader: Panda - add led flashing debug code
I found this useful during debugging failure of xloader before
serial had come up 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:44:30 +0000 (14:44 +0000)]
xloader: Panda - add Omap4 gpio base
We don't seem to have the GPIO bases available. This
patch adds the ones we will use.
Signed-off-by: Andy Green <andy.green@warmcat.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:44:08 +0000 (14:44 +0000)]
xloader: Panda - clean eliminate volatile temps
The Omap4 hsmmc code has three instances of volatile
temps that are not necessary.
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:44 +0000 (14:43 +0000)]
xloader: Panda - refactor mux define into struct array
There's a giant #define that is just unrolled code to
write a constant to a constant address.
This patch converts the address and data content to be
an array of structs, and changed the mux init code
to walk through the array doing the writes.
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:25 +0000 (14:43 +0000)]
xloader: Panda - remove commented cruft
There's quite a lot of dead commented code that can be
recovered from git if it is needed again.
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:42:35 +0000 (14:42 +0000)]
xloader: Panda - enable Werror
It is pointless having -Wall without -Werror. Now that
the warnings are cleaned out, enable -Werror for the
panda config.
Now you're gonna have to attend to any compiler warnings...
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:42:15 +0000 (14:42 +0000)]
xloader: Panda - clean compile warnings
Visit each warning during panda config clean build and
fix them. (This is true for gcc 4.5.1 compiler anyway)
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:41:55 +0000 (14:41 +0000)]
xloader: Panda - bugfix mux redefinition different values
CONTROL_PADCONF_WAKEUPEVENT_0 is defined twice in the mux.h header
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Andy Green [Wed, 9 Feb 2011 14:41:21 +0000 (14:41 +0000)]
xloader: Panda - bugfix board hang function doesn't hang
Given this code is meant to 'hang', I am guessing the author
wanted a while (1) ; in there
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>
Andy Green [Wed, 9 Feb 2011 14:40:20 +0000 (14:40 +0000)]
xloader: Panda - clean board files style
Solve checkpatch in ./board/omap4430panda/* and ./cpu/omap4
Ignore volatile warnings and mux define crap because it will
be solved in following patches separately
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.
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Steve Sakoman [Fri, 28 Jan 2011 19:22:29 +0000 (00:52 +0530)]
overo: Fix bug in prcm_init
The overo get_cpu_rev function was extended when 37XX support was
added, but I neglected to modify the index calculation in prcm_init
to compensate.
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Tested-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Sebastien Jan [Fri, 28 Jan 2011 19:22:21 +0000 (00:52 +0530)]
Support for ES2.2 pandaboard
Mostly inspired from Dan Murphy's patch on dev.omapzoom.org
x-loader tree:
X-Loader: Change for the ES2.2 support
Modified the OMAP revision code to only compare
the upper nibble of the most significant byte as this
denotes the OMAP revision.
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Sebastien Jan <s-jan@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
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.
Signed-off-by: Aaron Carroll <aaronc@cse.unsw.edu.au>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
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>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Nishanth Menon [Wed, 26 Jan 2011 14:04:32 +0000 (19:34 +0530)]
signGP: dont add Config header for all devices
Configuration Header is not needed for OMAP3, but needed
on Panda. To allow co-existance, introduce CONFIG_HEADER
to enable it when doing make ift
Tested on: Beagle XM rev A, Pandaboard rev EA1.
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Nishanth Menon [Wed, 26 Jan 2011 14:04:29 +0000 (19:34 +0530)]
Makefile: remove TEXT_BASE
TEXT_BASE comes from config.mk - dont need to hackup here.
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Ricardo Salveti de Araujo [Wed, 26 Jan 2011 13:59:55 +0000 (19:29 +0530)]
IGEPV2: Fixing Makefile to properly save objects in a different path
Now it follows the same as we have with other boards.
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Enric Balletbo i Serra [Mon, 24 Jan 2011 08:51:53 +0000 (14:21 +0530)]
OMAP3: Add support for the IGEP v2 board.
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>
Enric Balletbo i Serra [Mon, 24 Jan 2011 08:47:30 +0000 (14:17 +0530)]
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>
Nishanth Menon [Thu, 23 Dec 2010 09:44:41 +0000 (15:14 +0530)]
omap1: remove support for 1710 and 1510
Remove support of 1710 H3 platform and 1510 - there are no
active maintainers or interest in maintaining these platforms.
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Nishanth Menon [Tue, 21 Dec 2010 19:26:32 +0000 (13:26 -0600)]
Add Maintainer file
This will allow us to have official maintainers per platform
who will be able to help in case of issues relevant to the
platform
Signed-off-by: Nishanth Menon <nm@ti.com>
Ricardo Salveti de Araujo [Mon, 20 Dec 2010 13:30:27 +0000 (11:30 -0200)]
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>
Ricardo Salveti de Araujo [Mon, 20 Dec 2010 13:23:18 +0000 (11:23 -0200)]
scripts: signGP: properly returning 1 in case of errors
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Acked-by: Nishanth Menon <nm@ti.com>
Felipe Balbi [Wed, 15 Dec 2010 12:28:18 +0000 (14:28 +0200)]
scripts: signGP: add spaces for better readability
it's better to read when we follow Linux Kernel
CodingStyle.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Felipe Balbi [Wed, 15 Dec 2010 12:28:17 +0000 (14:28 +0200)]
scripts: signGP: mark struct as static
that will never be used outside this file
anyway.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Felipe Balbi [Wed, 15 Dec 2010 12:28:16 +0000 (14:28 +0200)]
Makefile: enable warnings and debugging symbols
... when compiling signGP.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Felipe Balbi [Wed, 15 Dec 2010 12:28:15 +0000 (14:28 +0200)]
scripts: signGP: fix up main() prototype
... also add a return statement to a function
returning int.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Felipe Balbi [Wed, 15 Dec 2010 12:28:14 +0000 (14:28 +0200)]
scripts: signGP: get rid of C++ style comments
convert // to /* */ comments.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Felipe Balbi [Wed, 15 Dec 2010 12:28:13 +0000 (14:28 +0200)]
scripts: signGP: Add GPL header
Add the generic GPL header to signGP.c file.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Vikram Pandita [Tue, 10 Feb 2009 20:55:35 +0000 (14:55 -0600)]
Generate MLO file with Makefile ift option
MLO is the file name used for MMC booting.
Make that as default file generated with
make ift
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Nishanth Menon [Sat, 11 Dec 2010 23:21:59 +0000 (17:21 -0600)]
X-loader: add gitignore
it is kind of irritating to get much git status
for object files
Signed-off-by: Nishanth Menon <nm@ti.com>