x-loader:jpolsonazs-x-loader.git
6 years agoOMAP3: Move get_sysboot_value() function to not duplicate code
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>
6 years agoOMAP3: Move print_cpuinfo() function to not duplicate code
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>
6 years agoOMAP3: Move get_cpu_rev() function to not duplicate code
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>
6 years agoOMAP3: Move get_cpu_family() function to not duplicate code
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>
6 years agoOMAP3: Move get_cpu_id() function to not duplicate code
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>
6 years agoOMAP3: Move get_cpu_type() function to not duplicate code
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>
6 years agoOMAP3: Move get_device_type() function to not duplicate code
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>
6 years agoigep00x0: Remove dummy and unnused functions
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>
6 years agoarch-arm926ejs/sizes.h: Remove this files as is not being used.
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>
6 years agocpu/arm1136: Remove arm1136 support
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>
6 years agoomap2420sdp: Remove this board because is not being maintained
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>
6 years agoomap2420h4: Remove this board because is not being maintained
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>
6 years agolib/printf.c: making serial_printf return vsprintf ret value
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>
6 years agoomap4: pandaboard: ehci fref_clkout per board revision
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>
6 years agoigep00x0: Allow boot from onenand flash.
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>
6 years agoOMAP3: Name refactoring for current and future IGEP boards
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>
6 years agoMakefile: fixing mkconfig usage
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>
6 years agopanda: clocks: Disable slimbus and pad_clks
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>
6 years agopanda: mux: Configure SYS_NIRQ2 pin in safe mode
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>
6 years agopanda: set default configuration to 1GHz
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>
6 years agopanda: fix 1GHz configuration
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>
6 years agoOMAP4: Select DPLL PER Clock as source for SGX FCLK
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>
6 years agopanda: fix ES2.2+ support
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>
6 years agobump up revision to 1.5.0 v1.5.0
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>
6 years agobuild break in lib/board.c
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>
6 years agoBeagleBoard: Forced newer revisions to default to xM.
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>
6 years agoDefault to building signGP and a signed x-loader
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>
6 years agoMerge signGP cflags into HOSTCFLAGS and use these
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>
6 years agoAppend CFLAGS and HOSTCFLAGS to environment
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>
6 years agoAdd error checking to all file functions
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>
6 years agoRemoved some dead code
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>
6 years agoReplace die() with pdie() and err() macros
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>
6 years agoSend errors to stderr
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>
6 years agoAdd a die() macro to exit with an error message
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>
6 years agoAdd -marm -fno-stack-protector to CFLAGS on ARM
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>
6 years agoxloader: Panda - clean remove all magic constant addresses and use symbols
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>
6 years agoxloader: Panda - clean small refactors and hang with spam_leds
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>
6 years agoxloader: Panda - kill OTG and reset PHY in case ROM started them
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>
6 years agoxloader: Panda - return memif clock to HW_AUTO after DPLL set
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>
6 years agoxloader: Panda - fix ROM OTG boot path
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>
6 years agoxloader: Panda - add led flashing debug code
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>
6 years agoxloader: Panda - add Omap4 gpio base
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>
6 years agoxloader: Panda - clean eliminate volatile temps
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>
6 years agoxloader: Panda - refactor mux define into struct array
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>
6 years agoxloader: Panda - remove commented cruft
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>
6 years agoxloader: Panda - convert explicit volatile rw to __raw_xx
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>
6 years agoxloader: Panda - enable Werror
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>
6 years agoxloader: Panda - clean compile warnings
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>
6 years agoxloader: Panda - bugfix mux redefinition different values
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>
6 years agoxloader: Panda - bugfix board hang function doesn't hang
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>
6 years agoxloader: Panda - bugfix missing while body
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>
6 years agoxloader: Panda - clean board files style
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>
6 years agogitignore: Add x-load.bin.ift to the list of ignored files
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>
6 years agoovero: Fix bug in prcm_init
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>
6 years agoSupport for ES2.2 pandaboard
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>
6 years agoomap4430panda: enable clock gating for M6_DPLL_CORE
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>
6 years agogitignore: be explicit for x-load files
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>
6 years agosignGP: dont add Config header for all devices
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>
6 years agoMakefile: remove TEXT_BASE
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>
6 years agoIGEPV2: Fixing Makefile to properly save objects in a different path
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>
6 years agoOMAP3: Add support for the IGEP v2 board.
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>
6 years agoonenand|ddr: Add support for M39B0Rx0xxN1 Numonyx POP device
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>
6 years agoomap1: remove support for 1710 and 1510
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>
6 years agoAdd Maintainer file
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>
6 years agoAdding support for saving build objects in a separated directory.
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>
6 years agoscripts: signGP: properly returning 1 in case of errors
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>
6 years agoscripts: signGP: add spaces for better readability
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>
6 years agoscripts: signGP: mark struct as static
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>
6 years agoMakefile: enable warnings and debugging symbols
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>
6 years agoscripts: signGP: fix up main() prototype
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>
6 years agoscripts: signGP: get rid of C++ style comments
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>
6 years agoscripts: signGP: Add GPL header
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>
6 years agoGenerate MLO file with Makefile ift option
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>
6 years agoX-loader: add gitignore
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>
6 years agoSignGP: add CH support
Aneesh V [Thu, 22 Jul 2010 06:17:30 +0000 (11:47 +0530)]
SignGP: add CH support

Configuration Header is attached as part of the 'make ift' step.
After this, same MLO will work for both eMMC and external MMC boot.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
6 years agoX-Loader: Add SignGP support
Nishanth Menon [Sat, 11 Dec 2010 23:18:45 +0000 (17:18 -0600)]
X-Loader: Add SignGP support

Integrate signGP from
http://beagleboard.googlecode.com/files/signGP.c

This will allow:
make ift to generate the ift file

Signed-off-by: Nishanth Menon <nm@ti.com>
6 years agoFix reading FAT32 root dirs that span >1 cluster
Nick Gasson [Sat, 13 Nov 2010 18:57:35 +0000 (18:57 +0000)]
Fix reading FAT32 root dirs that span >1 cluster

Unlike FAT12/16, FAT32 does not guarantee that root directories will
occupy consecutive clusters. To get each cluster after the first you
must access the FAT as with any other directory. This patch implements
this and bumps up the largest valid cluster number to support large
e.g. 64MB partitions.

6 years agoBeagle: Support C4 from Special Computing (with Numonyx DDR/NAND)
Steve Sakoman [Wed, 3 Nov 2010 16:56:40 +0000 (09:56 -0700)]
Beagle: Support C4 from Special Computing (with Numonyx DDR/NAND)

6 years agoPanda: Sync ES2.1 changes
Steve Sakoman [Sat, 30 Oct 2010 15:09:45 +0000 (08:09 -0700)]
Panda: Sync ES2.1 changes

6 years agoOvero: Add support for Hynix POP (512MB DDR, 512MB NAND)
Steve Sakoman [Wed, 13 Oct 2010 02:05:03 +0000 (19:05 -0700)]
Overo: Add support for Hynix POP (512MB DDR, 512MB NAND)

6 years agoRevert "Panda: Use proper VCORE3 settings for ES2.1"
Steve Sakoman [Thu, 7 Oct 2010 19:48:20 +0000 (12:48 -0700)]
Revert "Panda: Use proper VCORE3 settings for ES2.1"

This reverts commit b718a9a320138daf9d799f91c2d0d7a440b6c6c4.

Mistakenly applied.

6 years agoPanda: Use proper VCORE3 settings for ES2.1
Steve Sakoman [Thu, 7 Oct 2010 16:37:17 +0000 (09:37 -0700)]
Panda: Use proper VCORE3 settings for ES2.1

This patch based on work by Ricardo Salveti de Araujo and Rob Clark
with help of some other TI folks.

6 years agoomap3evm: compile onenand.o
Vincent Stehlé [Sat, 25 Sep 2010 19:33:26 +0000 (21:33 +0200)]
omap3evm: compile onenand.o

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
7 years agopanda: add 1GB memory support
Steve Sakoman [Fri, 17 Sep 2010 17:54:43 +0000 (10:54 -0700)]
panda: add 1GB memory support

This patch is based on Rob Clark's patch in his gitorious x-load repository

7 years agoovero: handle board revision detection for fab revisions <= R2410
Steve Sakoman [Fri, 17 Sep 2010 03:44:52 +0000 (20:44 -0700)]
overo: handle board revision detection for fab revisions <= R2410

Revisions < R2410 connect gpio112 to the 4030 irq_1 line. Since gpio112
is now used for board revision, this could lead to an erroneous
board revision results depending on the state of the irq.

This patch forces a 4030 RTC interrupt, which pulls irq_1 low, giving
a low level on gpio112 on these boards.  This gives a proper revision
0 result for these boards.

7 years agopanda: bring up to date with L24.9 changes
Steve Sakoman [Thu, 16 Sep 2010 20:33:52 +0000 (13:33 -0700)]
panda: bring up to date with L24.9 changes

7 years agoBeagle, Overo: Don't call nand/onenand functions unless the appropriate CFG option...
Steve Sakoman [Thu, 16 Sep 2010 05:19:48 +0000 (22:19 -0700)]
Beagle, Overo: Don't call nand/onenand functions unless the appropriate CFG option is enabled

7 years agoOMAP4: first cut at support for OMAP4 and Panda
Steve Sakoman [Thu, 16 Sep 2010 03:47:50 +0000 (20:47 -0700)]
OMAP4: first cut at support for OMAP4 and Panda

7 years agodrivers/Makefile: Don't automatically build onenand driver for all boards
Steve Sakoman [Thu, 16 Sep 2010 03:45:44 +0000 (20:45 -0700)]
drivers/Makefile:  Don't automatically build onenand driver for all boards

7 years agolib/board.c: Don't call i2c, nand, or onenand functions unless appropriate CFG optio...
Steve Sakoman [Thu, 16 Sep 2010 03:43:27 +0000 (20:43 -0700)]
lib/board.c:  Don't call i2c, nand, or onenand functions unless appropriate CFG options are defined

7 years agoFix omap3evm compilation
Vincent Stehlé [Sat, 4 Sep 2010 15:51:20 +0000 (17:51 +0200)]
Fix omap3evm compilation

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
7 years agoOvero: add support for OMAP37XX based COMs
Steve Sakoman [Thu, 26 Aug 2010 04:00:25 +0000 (21:00 -0700)]
Overo: add support for OMAP37XX based COMs

7 years agonand: k9f1g08: fail gracefully if no nand is present
Steve Sakoman [Thu, 26 Aug 2010 03:58:39 +0000 (20:58 -0700)]
nand: k9f1g08: fail gracefully if no nand is present

7 years agoOvero: run from SRAM
Steve Sakoman [Fri, 20 Aug 2010 16:06:45 +0000 (09:06 -0700)]
Overo: run from SRAM

7 years agoFAT: Find the start of the first partition in a non-hardcoded way
Laine Walker-Avina [Tue, 13 Apr 2010 20:27:31 +0000 (13:27 -0700)]
FAT: Find the start of the first partition in a non-hardcoded way

7 years agoSupport Micron or Numonyx memory
Steve Kipisz [Thu, 8 Jul 2010 15:30:58 +0000 (10:30 -0500)]
Support Micron or Numonyx memory

* Updated Numonyx memory size.

7 years agoOMAP3: beagle: revise SDRC config for Micron 2 bank x 256MB DDR
Steve Sakoman [Fri, 26 Mar 2010 04:08:24 +0000 (21:08 -0700)]
OMAP3: beagle: revise SDRC config for Micron 2 bank x 256MB DDR

7 years agoOMAP3: beagle: first cut at support for xM
Steve Sakoman [Sun, 21 Mar 2010 17:23:20 +0000 (10:23 -0700)]
OMAP3: beagle: first cut at support for xM

7 years agoOMAP3: mem.h: add ac timing info for Micron @ 200 Mhz
Steve Sakoman [Sun, 21 Mar 2010 16:37:54 +0000 (09:37 -0700)]
OMAP3: mem.h: add ac timing info for Micron @ 200 Mhz

7 years agoOMAP3: lib/board.c: bump revision, tweak serial boot logic
Steve Sakoman [Thu, 18 Mar 2010 04:25:40 +0000 (21:25 -0700)]
OMAP3: lib/board.c: bump revision, tweak serial boot logic