]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
11 years agoMerge branch 'u-boot-ti/master' into 'u-boot-arm/master'
Albert ARIBAUD [Wed, 4 Sep 2013 12:06:56 +0000 (14:06 +0200)]
Merge branch 'u-boot-ti/master' into 'u-boot-arm/master'

11 years agoMerge branch 'u-boot-atmel/master' into 'u-boot-arm/master'
Albert ARIBAUD [Wed, 4 Sep 2013 09:50:25 +0000 (11:50 +0200)]
Merge branch 'u-boot-atmel/master' into 'u-boot-arm/master'

11 years agoMerge branch 'u-boot-tegra/master' into 'u-boot-arm/master'
Albert ARIBAUD [Tue, 3 Sep 2013 12:59:18 +0000 (14:59 +0200)]
Merge branch 'u-boot-tegra/master' into 'u-boot-arm/master'

11 years agoMerge 'u-boot-microblaze/zynq' into (u-boot-arm/master'
Albert ARIBAUD [Tue, 3 Sep 2013 12:01:02 +0000 (14:01 +0200)]
Merge 'u-boot-microblaze/zynq' into (u-boot-arm/master'

Conflicts:
arch/arm/include/asm/arch-zynq/hardware.h

The conflict above was trivial and solved during merge.

11 years agoPrepare v2013.10-rc2
Tom Rini [Mon, 2 Sep 2013 18:20:36 +0000 (14:20 -0400)]
Prepare v2013.10-rc2

Signed-off-by: Tom Rini <trini@ti.com>
11 years agosiemens-am33x-common.h: Always build CONFIG_OMAP_GPIO support
Tom Rini [Wed, 28 Aug 2013 16:00:18 +0000 (12:00 -0400)]
siemens-am33x-common.h: Always build CONFIG_OMAP_GPIO support

The MMC driver relies on this block now.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoarm, am335x: add support for 3 siemens boards
Heiko Schocher [Mon, 19 Aug 2013 14:39:01 +0000 (16:39 +0200)]
arm, am335x: add support for 3 siemens boards

add support for the am335x based boards from siemens:

dxr2:
  - DDR3 128MiB
  - NAND 256MiB
  - Ethernet with external Switch SMSC LAN9303
  - no PMIC
  - internal Watchdog
  - DFU support

pxm2:
  - DDR2 512 MiB
  - NAND 1024 MiB
  - PMIC
  - PHY atheros ar803x
  - USB Host
  - internal Watchdog
  - DFU support

rut:
  - DDR3 256 MiB
  - NAND 256 MiB
  - PMIC
  - PHY natsemi dp83630
  - external Watchdog
  - DFU support

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Roger Meier <r.meier@siemens.com>
Signed-off-by: Samuel Egli <samuel.egli@siemens.com>
Cc: Pascal Bach <pascal.bach@siemens.com>
Cc: Tom Rini <trini@ti.com>
11 years agovideo: add formike lcd panel init
Heiko Schocher [Mon, 19 Aug 2013 14:39:00 +0000 (16:39 +0200)]
video: add formike lcd panel init

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Tom Rini <trini@ti.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
11 years agoarm, am335x: add watchdog support
Heiko Schocher [Mon, 19 Aug 2013 14:38:59 +0000 (16:38 +0200)]
arm, am335x: add watchdog support

Add TI OMAP 16xx & 24xx/34xx 32KHz (non-secure) watchdog support.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Tom Rini <trini@ti.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
11 years agoarm, spl: add watchdog library to SPL
Heiko Schocher [Mon, 19 Aug 2013 14:38:58 +0000 (16:38 +0200)]
arm, spl: add watchdog library to SPL

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
11 years agoarm, am335x: add some missing registers and defines for lcd and epwm support
Heiko Schocher [Mon, 19 Aug 2013 14:38:57 +0000 (16:38 +0200)]
arm, am335x: add some missing registers and defines for lcd and epwm support

- add missing register defines in struct cm_perpl
  epwmss0clkctrl
  epwmss2clkctrl
  lcdcclkstctrl
- add missing register defines in struct cm_dpll
  clklcdcpixelclk
- add struct pwmss_regs
- add struct pwmss_ecap_regs
- add LCD Controller base LCD_CNTL_BASE
- add PWM0 controller base PWMSS0_BASE

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
11 years agoarm, am33xx: add defines for gmii_sel_register bits
Heiko Schocher [Mon, 19 Aug 2013 14:38:56 +0000 (16:38 +0200)]
arm, am33xx: add defines for gmii_sel_register bits

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
11 years agodra7xx_evm: Re-order and comment the networking related config options
Tom Rini [Tue, 20 Aug 2013 12:53:54 +0000 (08:53 -0400)]
dra7xx_evm: Re-order and comment the networking related config options

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoomap5_uevm: Better comment why we have TCA642X and the reset time
Tom Rini [Tue, 20 Aug 2013 12:53:53 +0000 (08:53 -0400)]
omap5_uevm: Better comment why we have TCA642X and the reset time

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoTI:omap5: Clarify comments about SPL and DDR timings in common config
Tom Rini [Tue, 20 Aug 2013 12:53:52 +0000 (08:53 -0400)]
TI:omap5: Clarify comments about SPL and DDR timings in common config

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoTI:am33xx: Move SPL YMODEM support to the per-board config
Tom Rini [Tue, 20 Aug 2013 12:53:51 +0000 (08:53 -0400)]
TI:am33xx: Move SPL YMODEM support to the per-board config

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoam335x_evm: Update README for customization
Tom Rini [Tue, 20 Aug 2013 12:53:50 +0000 (08:53 -0400)]
am335x_evm: Update README for customization

As this is a reference platform, update the README to note which IP
blocks are required for use due to design choices of the reference
rather than required by the SoC itself.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoTI:armv7: Re-order slightly the generic CONFIG options, expand related comments
Tom Rini [Tue, 20 Aug 2013 12:53:49 +0000 (08:53 -0400)]
TI:armv7: Re-order slightly the generic CONFIG options, expand related comments

Re-group the general options to note things that can be removed safely
to reduce binary size when not required, and expand the comment about
what commands we do include to note it could be replaced with a specific
list of required one.  While at it, move the CMD parts of various
blocks IP to the end of the list for consistency.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoam335x_evm: Regroup USB options
Tom Rini [Tue, 20 Aug 2013 12:53:48 +0000 (08:53 -0400)]
am335x_evm: Regroup USB options

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoam335x_evm: Add comment by SPL SPI support
Tom Rini [Tue, 20 Aug 2013 12:53:47 +0000 (08:53 -0400)]
am335x_evm: Add comment by SPL SPI support

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoTI:am335x: Better comment and organize the networking related options
Tom Rini [Tue, 20 Aug 2013 12:53:46 +0000 (08:53 -0400)]
TI:am335x: Better comment and organize the networking related options

While in here, drop CONFIG_BOOTP_DEFAULT as it is unused in the code.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoomap5: Expand CONFIG_SPL_MAX_SIZE and comment upon SRAM_SCRATCH_SPACE_ADDR
Tom Rini [Tue, 20 Aug 2013 12:53:45 +0000 (08:53 -0400)]
omap5: Expand CONFIG_SPL_MAX_SIZE and comment upon SRAM_SCRATCH_SPACE_ADDR

After examining both TRMs and doing some experimentation, we can rely on
using the start of the download area for CONFIG_SPL_TEXT_BASE and then
move SRAM_SCRATCH_SPACE_ADDR up, just like am335x.  This is required for
peripheral boot modes such as UART.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoTI:armv7: Move CONFIG_SPL_LIBDISK_SUPPORT to MMC section
Tom Rini [Tue, 20 Aug 2013 12:53:44 +0000 (08:53 -0400)]
TI:armv7: Move CONFIG_SPL_LIBDISK_SUPPORT to MMC section

We only need this library when we're doing "disk" access to MMC/SD.
Update comment around the rest of CONFIG_SPL_LIB* to note that the
others are always required.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoam33xx: Correct and expand comments on CONFIG_SPL_MAX_SIZE
Tom Rini [Tue, 20 Aug 2013 12:53:43 +0000 (08:53 -0400)]
am33xx: Correct and expand comments on CONFIG_SPL_MAX_SIZE

We had been allowing the max size to be larger than actually allowed by
the ROM.  Expand the commentary here to explain why we set these
locations.

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoARM: igep00x0.h: Enable raw initrd support
Javier Martinez Canillas [Sun, 11 Aug 2013 16:20:00 +0000 (18:20 +0200)]
ARM: igep00x0.h: Enable raw initrd support

Now that IGEP base boards default environment use
the bootz command to boot a zImage instead of a
uImage, it makes sense to add support to supply a
raw initrd image to the kernel if needed.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
11 years agoarm: omap3: fix SRAM copy and execution sequence
Albert ARIBAUD [Sat, 10 Aug 2013 17:03:59 +0000 (19:03 +0200)]
arm: omap3: fix SRAM copy and execution sequence

Fix size calculation in copy of go_to_speed into SRAM.
Use SRAM_CLK_CODE in call to SRAM-based go_to_speed.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
11 years agoARM: OMAP4460: sdp: Limit TPS mux config to 4460
Taras Kondratiuk [Tue, 6 Aug 2013 12:18:51 +0000 (15:18 +0300)]
ARM: OMAP4460: sdp: Limit TPS mux config to 4460

TPS mux config is 4460 specific, so it should be limited to 4460 only.

Signed-off-by: Taras Kondratiuk <taras@ti.com>
11 years agoARM: OMAP4470: Add Elpida EDB8164B3PF memory configuration
Lubomir Popov [Tue, 6 Aug 2013 12:18:50 +0000 (15:18 +0300)]
ARM: OMAP4470: Add Elpida EDB8164B3PF memory configuration

OMAP4470 SDP SoM has EDB8164B3PF PoP memory on board.
This memory has 4Gb x 2CS = 8Gb configuration.
Add configuration for runtime calculation and precalculated cases.

Patch is based on a draft Lubomir's patch [1].

[1] http://lists.denx.de/pipermail/u-boot/2013-April/150851.html

Signed-off-by: Lubomir Popov <lpopov@mm-sol.com>
[taras@ti.com: cleaned up patch and fixed precalculated values]
Signed-off-by: Taras Kondratiuk <taras@ti.com>
11 years agoARM: OMAP4470: Add voltage and dpll data
Taras Kondratiuk [Tue, 6 Aug 2013 12:18:49 +0000 (15:18 +0300)]
ARM: OMAP4470: Add voltage and dpll data

OMAP4470 reference design uses TWL6032 PMIC
with a following connection scheme:
  VDD_CORE = TWL6032 SMPS2
  VDD_MPU  = TWL6032 SMPS1
  VDD_IVA  = TWL6032 SMPS5

Set voltage and frequency values according to
OMAP4470 Data Manual Operating Condition Addendum v0.7

Signed-off-by: Taras Kondratiuk <taras@ti.com>
11 years agoARM: OMAP4470: Add OMAP4470 identification
Taras Kondratiuk [Tue, 6 Aug 2013 12:18:48 +0000 (15:18 +0300)]
ARM: OMAP4470: Add OMAP4470 identification

Signed-off-by: Taras Kondratiuk <taras@ti.com>
11 years agosdp4430: Initialize board id using CONFIG_MACH_TYPE
Oleksandr Tyshchenko [Tue, 6 Aug 2013 11:03:27 +0000 (14:03 +0300)]
sdp4430: Initialize board id using CONFIG_MACH_TYPE

Use CONFIG_MACH_TYPE generic macro to set the machine type
number in the common arm code instead of setting it in the
board code.

Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
11 years agoomap5: Correct include order, drop CONFIG_SYS_PROMPT define
Tom Rini [Tue, 27 Aug 2013 14:56:18 +0000 (10:56 -0400)]
omap5: Correct include order, drop CONFIG_SYS_PROMPT define

With the new include structure for TI platforms, we need to not define
our own CONFIG_SYS_PROMPT and also need to include
<configs/omap5_common.h> much sooner, so do both of these.  Also drop
the unused CONFIG_NET_MULTI

Signed-off-by: Tom Rini <trini@ti.com>
11 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Tom Rini [Tue, 27 Aug 2013 13:49:43 +0000 (09:49 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

11 years agoi2c: fix i2c dev command for not using new framework
Heiko Schocher [Fri, 23 Aug 2013 07:39:16 +0000 (09:39 +0200)]
i2c: fix i2c dev command for not using new framework

i2c dev command does not work anymore for legacy drivers
because a check is executed that is valid only
in the new framework.

Signed-off-by: Heiko Schocher <hs@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
11 years agoconsole: usb: kbd: To fix slow TFTP booting
Jim Lin [Mon, 26 Aug 2013 12:21:09 +0000 (20:21 +0800)]
console: usb: kbd: To fix slow TFTP booting

TFTP booting is slow when a USB keyboard is installed and
stdin has usbkbd added.
This fix is to change Ctrl-C polling for USB keyboard to every second
when NET transfer is running.
My previous patch is expected to be put into usb_kbd_testc(). But it went
into usb_kbd_getc() after applied.
This patch is to put change in correct place.

Signed-off-by: Jim Lin <jilin@nvidia.com>
11 years agoconsole: usb: kbd: To improve TFTP booting performance
Jim Lin [Tue, 13 Aug 2013 11:04:22 +0000 (19:04 +0800)]
console: usb: kbd: To improve TFTP booting performance

TFTP booting is slow when a USB keyboard is installed and
stdin has usbkbd added.
This fix is to change Ctrl-C polling for USB keyboard to every second
when NET transfer is running.

Signed-off-by: Jim Lin <jilin@nvidia.com>
11 years agoNET: Add net_busy_flag if CONFIG_USB_KEYBOARD is defined
Jim Lin [Tue, 13 Aug 2013 11:03:05 +0000 (19:03 +0800)]
NET: Add net_busy_flag if CONFIG_USB_KEYBOARD is defined

This flag is to make console aware that NET transfer is running or not.

Signed-off-by: Jim Lin <jilin@nvidia.com>
11 years agousb: ehci-mx5: Use 'bool' instead of 'unsigned char'
Fabio Estevam [Fri, 26 Jul 2013 16:54:28 +0000 (13:54 -0300)]
usb: ehci-mx5: Use 'bool' instead of 'unsigned char'

The 'enable' argument can be better expressed as boolean.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
11 years agousb: ehci-mx5: Remove unneeded write to cscmr1 register
Fabio Estevam [Fri, 26 Jul 2013 16:54:27 +0000 (13:54 -0300)]
usb: ehci-mx5: Remove unneeded write to cscmr1 register

Currently we have the following behavior in ehci_hcd_init()

- Read csmr1 register, clear bit 26 and then set bit 26.

However a little bit later we call set_usb_phy_clk() which clears bit 26, so
let's get rid of the unnecessary code.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
11 years agousb:dfu:g_dnl: Refactoring the string definition code for g_dnl driver
Lukasz Majewski [Mon, 19 Aug 2013 15:17:19 +0000 (17:17 +0200)]
usb:dfu:g_dnl: Refactoring the string definition code for g_dnl driver

The manufacturer and product IDs are dynamically assigned when gadget is
bind.
Now the IDs aren't assigned at struct g_dnl_string_defs definition.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: "Egli, Samuel" <samuel.egli@siemens.com>
11 years agousb:dfu:g_dnl: Change number of exported configurations at composite gadget
Lukasz Majewski [Mon, 19 Aug 2013 15:17:18 +0000 (17:17 +0200)]
usb:dfu:g_dnl: Change number of exported configurations at composite gadget

USB composite gadget (g_dnl) supports only one configuration. Due to that
the corresponding field - bConfigurationValue has been changed.

Moreover more descriptive names were chosen for relevant fields.

Windows XP setup:
- Thesyscon USB Descriptor Dumper
- zadig_xp program for WinUSB installation (which is required by dfu-util)
- dfu-util for windows (version 0.6)
- TRATS target connected via USB hub to test Win XP machine.

Tested at: Trats - Exynos4210

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: "Egli, Samuel" <samuel.egli@siemens.com>
11 years agodfu, nand, ubi: add partubi alt settings for updating ubi partition
Heiko Schocher [Thu, 25 Jul 2013 04:43:11 +0000 (06:43 +0200)]
dfu, nand, ubi: add partubi alt settings for updating ubi partition

updating an ubi partition needs a completely erased mtd partition,
see:
http://lists.infradead.org/pipermail/linux-mtd/2011-May/035416.html

So, add partubi alt setting for the dfu_alt_info environment
variable to mark this partition as an ubi partition. In case we
update an ubi partition, we erase after flashing the image into the
partition, the remaining sektors.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Tom Rini <trini@ti.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
11 years agousb: Use well-known descriptor sizes when parsing configuration
Julius Werner [Fri, 19 Jul 2013 20:12:08 +0000 (13:12 -0700)]
usb: Use well-known descriptor sizes when parsing configuration

The existing USB configuration parsing code relies on the descriptors'
own length values when reading through the configuration blob. Since the
size of those descriptors is always well-defined, we should rather use
the known sizes instead of trusting device-provided values to be
correct. Also adds some safety to potential out-of-order descriptors.

Change-Id: I16f69dfdd6793aa0fe930b5148d4521f3e5c3090
Signed-off-by: Julius Werner <jwerner@chromium.org>
11 years agoARM: OMAP5-uevm: Add usb device reset API
Dan Murphy [Thu, 1 Aug 2013 19:06:02 +0000 (14:06 -0500)]
ARM: OMAP5-uevm: Add usb device reset API

Add the call back to reset the LAN9730 after
the FEAT_POWER has been called.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
11 years agoUSB: usb-hub: Add a weak function for resetting devices
Dan Murphy [Thu, 1 Aug 2013 19:06:01 +0000 (14:06 -0500)]
USB: usb-hub: Add a weak function for resetting devices

Add a __weak function that can be overridden to reset devices
attached to an ehci devices after the FEAT_POWER has been submitted

Signed-off-by: Dan Murphy <dmurphy@ti.com>
11 years agoARM: OMAP5-uevm: Add USB MAC ethernet address
Dan Murphy [Thu, 1 Aug 2013 19:06:00 +0000 (14:06 -0500)]
ARM: OMAP5-uevm: Add USB MAC ethernet address

Set the usbethaddr based on the OMAP DIE_ID registers
which should be unique for each processor.

Then set this as the usb ethernet MAC address.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
11 years agoARM: OMAP5-uevm: Add USB ehci support for the uEVM
Dan Murphy [Thu, 1 Aug 2013 19:05:59 +0000 (14:05 -0500)]
ARM: OMAP5-uevm: Add USB ehci support for the uEVM

Add the USB ehci support for the OMAP5 uEVM.

Configure the uEVM mux data
Add the flags to build the appropriate modules
Add the usb call backs to initialize the EHCI controller

Signed-off-by: Dan Murphy <dmurphy@ti.com>
11 years agoARM: OMAP: USB: Fix linker error when ULPI is not defined
Dan Murphy [Thu, 1 Aug 2013 19:05:58 +0000 (14:05 -0500)]
ARM: OMAP: USB: Fix linker error when ULPI is not defined

Fix the linker error for missing ulpi_reset when ulpi is not defined
in the board config.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
11 years agoARM: OMAP5: USB: Add OMAP5 common USB EHCI information
Dan Murphy [Thu, 1 Aug 2013 19:05:57 +0000 (14:05 -0500)]
ARM: OMAP5: USB: Add OMAP5 common USB EHCI information

* Enable the OMAP5 EHCI host clocks
* Add OMAP5 EHCI register definitions
* Add OMAP5 ES2 host revision

Signed-off-by: Dan Murphy <dmurphy@ti.com>
11 years agoomap5: uevm: Change the board name to correct name
Dan Murphy [Thu, 1 Aug 2013 19:05:56 +0000 (14:05 -0500)]
omap5: uevm: Change the board name to correct name

Change the board name for the sys info to
5432 uEVM

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
11 years agoenv_nand.c: support falling back to redundant env when writing
Phil Sutter [Fri, 19 Jul 2013 10:20:26 +0000 (12:20 +0200)]
env_nand.c: support falling back to redundant env when writing

Without this patch, when the currently chosen environment to be written
has bad blocks, saveenv fails completely. Instead, when there is
redundant environment fall back to the other copy. Environment reading
needs no adjustment, as the fallback logic for incomplete writes applies
to this case as well.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
11 years agonand_util: delete a useless variable
Masahiro Yamada [Fri, 12 Jul 2013 01:53:37 +0000 (10:53 +0900)]
nand_util: delete a useless variable

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
11 years agocmd_nand: Do not show usage when scrub is aborted
Masahiro Yamada [Thu, 11 Jul 2013 08:29:57 +0000 (17:29 +0900)]
cmd_nand: Do not show usage when scrub is aborted

When executing nand scrub, the user gets the prompt:

  Really scrub this NAND flash? <y/N>

We do not want the annoying usage displayed when saying N here.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
11 years agocmd_nand: slight optimization of nand_dump function
Masahiro Yamada [Thu, 11 Jul 2013 08:27:13 +0000 (17:27 +0900)]
cmd_nand: slight optimization of nand_dump function

If a non-zero value is given to only_oob argument,
printing the main area is skipped.

With a little modification, we can skip the whole
while loop.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
11 years agocmd_nand: fix a memory leak in nand_dump function
Masahiro Yamada [Thu, 11 Jul 2013 08:27:12 +0000 (17:27 +0900)]
cmd_nand: fix a memory leak in nand_dump function

If datbuf = memalign(ARCH_DMA_MINALIGN, nand->writesize);
succeeds and
  oobbuf = memalign(ARCH_DMA_MINALIGN, nand->oobsize);
fails, nand_dump function should free databuf.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
11 years agoarm: atmel: cpux9k2: board update and enhancement
Jens Scharsig (BuS Elektronik) [Thu, 22 Aug 2013 06:11:23 +0000 (08:11 +0200)]
arm: atmel: cpux9k2: board update and enhancement

- fix adresses in env settings in config header
- add missing CONFIG_STANDALONE_LOAD_ADDR to eb_cpux9k2 config header
- remove jffs2 support, board doesn't use this anymore
- add ubifs support
- change sizes and start for partitions

Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agogpio: atmel: add copyright and remove error header info
Bo Shen [Tue, 13 Aug 2013 06:38:32 +0000 (14:38 +0800)]
gpio: atmel: add copyright and remove error header info

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Jens Scharsig <js_at_ng@scharsoft.de>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agogpio: atmel: add gpio common API support
Bo Shen [Tue, 13 Aug 2013 06:38:31 +0000 (14:38 +0800)]
gpio: atmel: add gpio common API support

add gpio common API support for gpio command

Signed-off-by: Bo Shen <voice.shen@atmel.com>
[fix unnecessary cast]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agogpio: atmel: fix code to use pointer for pio port
Bo Shen [Thu, 22 Aug 2013 07:24:40 +0000 (15:24 +0800)]
gpio: atmel: fix code to use pointer for pio port

fix code to use pointer for pio port as the warning message suggested
remove the warning message

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoarm: atmel: remove the config.mk file
Bo Shen [Tue, 13 Aug 2013 06:50:49 +0000 (14:50 +0800)]
arm: atmel: remove the config.mk file

remove the config.mk file
move text base define to board config file for following boards
  - at91sam9m10g45ek
  - at91sam9x5ek

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoarm: atmel: sama5d3: fix typo error for CONFIG_ENV_IS_NOWHERE
Bo Shen [Sun, 11 Aug 2013 14:26:20 +0000 (14:26 +0000)]
arm: atmel: sama5d3: fix typo error for CONFIG_ENV_IS_NOWHERE

fix typo error for CONFIG_ENV_IS_NOWHERE from CONIG_ENV_IS_NOWHERE

Signed-off-by: Bo Shen <voice.shen@gmail.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoarm: sama5d3: remove unused define
Bo Shen [Fri, 9 Aug 2013 07:45:39 +0000 (15:45 +0800)]
arm: sama5d3: remove unused define

The CONFIG_MAX_NAND_CHIPS never used, remove it
No where define LCD_TEST_PATTERN, so no need undefine

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoarm: sama5d3: fix smc cs related registers offset
Bo Shen [Fri, 9 Aug 2013 07:43:09 +0000 (15:43 +0800)]
arm: sama5d3: fix smc cs related registers offset

the smc cs related registers start at 0x600 and loop with 5 registers
so the reserved register should be in at91_smc structure while no in
at91_cs structure. So fix it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement
Wu, Josh [Thu, 4 Jul 2013 07:36:23 +0000 (15:36 +0800)]
ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement

1. if CONFIG_SYS_NAND_ONFI_DETECTION is defined, driver will check NAND flash's
   ecc minimum requirement in ONFI parameter.

  a) if CONFIG_PMECC_CAP, CONFIG_PMECC_SECTOR_SIZE are defined. then use it.
     Driver will display a WARNING if the values are different from ONFI
     parameters.

  b) if CONFIG_PMECC_CAP, CONFIG_PMECC_SECTOR_SIZE are not defined, then use
      the value from ONFI parameters.
      * If ONFI ECC parameters are in ONFI extended parameter page, since we
        are not support it, so assume the minimum ecc requirement is 2 bits
        in 512 bytes.
      * For non-ONFI support nand flash, also assume the minimum ecc
        requirement is 2 bits in 512 bytes.

2. if CONFIG_SYS_NAND_ONFI_DETECTION is not defined, just use CONFIG_PMECC_CAP
   and CONFIG_PMECC_SECTOR_SIZE.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agomtd: atmel_nand: alloc memory instead of use static array for pmecc data
Wu, Josh [Wed, 3 Jul 2013 03:11:48 +0000 (11:11 +0800)]
mtd: atmel_nand: alloc memory instead of use static array for pmecc data

In this way, the pmecc corraction capbility can change in run time.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agolinux/compat.h: move dev_err, dev_info and dev_dbg from usb driver to compat.h
Wu, Josh [Wed, 3 Jul 2013 03:11:47 +0000 (11:11 +0800)]
linux/compat.h: move dev_err, dev_info and dev_dbg from usb driver to compat.h

Since kernel code current use many dev_xxx() instead of using printk. To
compatible, move those dev_xxx from usb driver to linux/compat.h. Then all
driver code can use dev_err, dev_info and dev_vdbg.

This patch also removed duplicated macro definitions in usb driver.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoARM: at91: sama5d3: remove unused definition about PMECC alpha table offset
Wu, Josh [Wed, 3 Jul 2013 03:11:46 +0000 (11:11 +0800)]
ARM: at91: sama5d3: remove unused definition about PMECC alpha table offset

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoARM: at91: atmel_nand: pmecc driver will select the galois table by sector size
Wu, Josh [Wed, 3 Jul 2013 03:11:45 +0000 (11:11 +0800)]
ARM: at91: atmel_nand: pmecc driver will select the galois table by sector size

Define the galois index table offset in chip head file. So user do not need
to set by himself. Driver will set it correctly according to sector_size.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
[rebased on master]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoarm: atmel: add nand trimffs subcommand for at91sam9n12 and at91sam9x5
Bo Shen [Wed, 26 Jun 2013 02:48:53 +0000 (10:48 +0800)]
arm: atmel: add nand trimffs subcommand for at91sam9n12 and at91sam9x5

as the at91sam9n12 and at91sam9x5 soc support PMECC, when use u-boot
to flash the rootfs, in order to avoid flash one sector with all 0xff
into NAND, so use nand trimffs subcommand to avoid it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoarm: atmel: add gmac support for sama5d3xek board
Bo Shen [Wed, 26 Jun 2013 02:11:06 +0000 (10:11 +0800)]
arm: atmel: add gmac support for sama5d3xek board

add gmac support for sama5d3xek board, the gmac embedded in:
  - sama5d33, sama5d34, sama5d35

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agonet: macb: fix the following building warning
Bo Shen [Mon, 19 Aug 2013 02:35:47 +0000 (10:35 +0800)]
net: macb: fix the following building warning

fix the following building warning
---8>---
macb.c: In function 'macb_init':
macb.c:400:14: warning: 'phydev' may be used uninitialized in this function
macb.c:377:21: note: 'phydev' was declared here
---<8---

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
11 years agoMerge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Tom Rini [Wed, 21 Aug 2013 20:27:47 +0000 (16:27 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx

11 years agoMakefile: Fix build in a separated directory tree
York Sun [Wed, 21 Aug 2013 16:03:29 +0000 (09:03 -0700)]
Makefile: Fix build in a separated directory tree

Fix a bug introduced by commit 3aa29dee
TPL : introduce the TPL based on the SPL

Signed-off-by: York Sun <yorksun@freescale.com>
11 years agoFix for incorrect conversion hex string to number (FMAN firmware address).
Николай Пузанов [Wed, 19 Jun 2013 07:48:44 +0000 (11:48 +0400)]
Fix for incorrect conversion hex string to number (FMAN firmware address).

Signed-off-by: Николай Пузанов <punzik@gmail.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc/sec: Add workaround for SEC A-003571
Shengzhou Liu [Thu, 15 Aug 2013 01:31:47 +0000 (09:31 +0800)]
powerpc/sec: Add workaround for SEC A-003571

Multiple read/write transactions initiated by security
engine may cause system to hang.
Workaround: set MCFGR[AXIPIPE] to 0 to avoid hang.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc/p1010rdb: fix calculating ddr_freq_mhz
Shengzhou Liu [Tue, 13 Aug 2013 08:41:19 +0000 (16:41 +0800)]
powerpc/p1010rdb: fix calculating ddr_freq_mhz

There was a bug for calculating ddr_freq_mhz,
it should be divided by 1000000 rather than 0x1000000.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc/t4240: add QSGMII interface support
Shaohui Xie [Mon, 19 Aug 2013 10:58:52 +0000 (18:58 +0800)]
powerpc/t4240: add QSGMII interface support

Also some fix for QSGMII.
1. fix QSGMII configure of Serdes2.
2. fix PHY address of QSGMII MAC9 & MAC10 for each FMAN.
3. fix dtb for QSGMII interface.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc/t4240: fix lanes routing for QSGMII protocols
Shaohui Xie [Mon, 19 Aug 2013 10:57:57 +0000 (18:57 +0800)]
powerpc/t4240: fix lanes routing for QSGMII protocols

When using QSGMII protocols, the first lane and third lane on each slot
need to be swapped.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc/common/vsc3316: remove const from vsc3316_config parameter define
Shaohui Xie [Mon, 19 Aug 2013 10:43:07 +0000 (18:43 +0800)]
powerpc/common/vsc3316: remove const from vsc3316_config parameter define

Since the parameters need to be modified according to different Serdes
protocols at runtime, the const will block this. Also remove const from
arrays define used by vsc3316_config.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpcv2: Print hardcoded size like print_size() does
Shruti Kanetkar [Thu, 15 Aug 2013 16:25:38 +0000 (11:25 -0500)]
powerpcv2: Print hardcoded size like print_size() does

Makes the startup output more consistent

Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc: Use print_size() where appropriate
Shruti Kanetkar [Thu, 15 Aug 2013 16:25:37 +0000 (11:25 -0500)]
powerpc: Use print_size() where appropriate

Makes the startup output more consistent

Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agoSPDX-License-Identifier: clean up license header
York Sun [Tue, 20 Aug 2013 17:15:37 +0000 (10:15 -0700)]
SPDX-License-Identifier: clean up license header

This patch cleans up license header in these files:
board/freescale/p1022ds/spl.c
drivers/mmc/fsl_esdhc_spl.c
drivers/mtd/spi/fsl_espi_spl.c

Signed-off-by: York Sun <yorksun@freescale.com>
11 years agopowerpc: Fix CamelCase checkpatch warnings
Prabhakar Kushwaha [Fri, 16 Aug 2013 09:22:26 +0000 (14:52 +0530)]
powerpc: Fix CamelCase checkpatch warnings

85xx, 86xx PowerPC folders have code variables with CamelCase naming conventions.
because of this code checkpatch script generates "WARNING: Avoid CamelCase".

Convert variables name to normal naming convention and modify board, driver
files with updated the new structure.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc: p1022ds: add TPL for p1022ds nand boot
Ying Zhang [Fri, 16 Aug 2013 07:16:16 +0000 (15:16 +0800)]
powerpc: p1022ds: add TPL for p1022ds nand boot

TPL is introduced in the patch "NAND: TPL : introduce the TPL
based on the SPL", here enable TPL for p1022ds nand boot.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agoTPL : introduce the TPL based on the SPL
Ying Zhang [Fri, 16 Aug 2013 07:16:15 +0000 (15:16 +0800)]
TPL : introduce the TPL based on the SPL

Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can
not be more than 4K. So, the SPL cannot initialize the DDR with the SPD
code. This patch introduces TPL to enable a loader stub that is loaded
by the code from the SPL. It initializes the DDR with the SPD or other
operations.

The TPL's size is sizeable, the maximum size is decided by the memory's
size that TPL runs. It initializes the DDR through SPD code, and copys
final uboot image to DDR. So there are three stage uboot images:
* spl_boot, * tpl_boot, * final uboot image

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc : p1022ds : Enable p1022ds to start from eSPI with SPL
Ying Zhang [Fri, 16 Aug 2013 07:16:14 +0000 (15:16 +0800)]
powerpc : p1022ds : Enable p1022ds to start from eSPI with SPL

Enable p1022ds to start from eSPI with SPL.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc : spi flash : Support to start from eSPI with SPL
Ying Zhang [Fri, 16 Aug 2013 07:16:13 +0000 (15:16 +0800)]
powerpc : spi flash : Support to start from eSPI with SPL

This patch introduces SPL to enable a loader stub that being loaded by
the code from the internal on-chip ROM. It loads the final uboot image
into DDR, then jump to it to begin execution.

The SPL's size is sizeable, the maximum size must not exceed the size of L2
SRAM. It initializes the DDR through SPD code, and copys final uboot image
to DDR. So there are two stage uboot images:
* spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that
ddr spd code can get the interleaving mode setting in env. It loads
final uboot image from offset 96KB.
* final uboot image, size is variable depends on the functions enabled.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL
Ying Zhang [Fri, 16 Aug 2013 07:16:12 +0000 (15:16 +0800)]
powerpc: p1022ds: Enable P1022DS to boot from SD Card with SPL

Enable p1022ds to start from eSDHC with SPL.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc: mpc85xx: Support booting from SD Card with SPL
Ying Zhang [Fri, 16 Aug 2013 07:16:11 +0000 (15:16 +0800)]
powerpc: mpc85xx: Support booting from SD Card with SPL

The code from the internal on-chip ROM. It loads the final uboot image
into DDR, then jump to it to begin execution.

The SPL's size is sizeable, the maximum size must not exceed the size of L2
SRAM. It initializes the DDR through SPD code, and copys final uboot image
to DDR. So there are two stage uboot images:
* spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that
ddr spd code can get the interleaving mode setting in env. It loads
final uboot image from offset 96KB.
* final uboot image, size is variable depends on the functions enabled.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agopowerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality...
Ying Zhang [Fri, 16 Aug 2013 07:16:10 +0000 (15:16 +0800)]
powerpc: deleted unused symbol CONFIG_SPL_NAND_MINIMAL and enabled some functionality for common SPL

1. The symbol CONFIG_SPL_NAND_MINIMAL is unused, so deleted it.
2. Some functions were unused in the minimal SPL, but it is useful
in the common SPL. So, enabled some functionality for common SPL.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agospl: env_common.c: make CONFIG_SPL_BUILD contain function env_import
Ying Zhang [Thu, 20 Jun 2013 08:04:24 +0000 (16:04 +0800)]
spl: env_common.c: make CONFIG_SPL_BUILD contain function env_import

The functionality env_import will be used in the SPL. They
had been excluded by ifndef CONFIG_SPL_BUILD. Now, put it
into the SPL.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: York Sun <yorksun@freescale.com>
11 years agoppc4xx: Remove support for PPC405CR CPUs
Matthias Fuchs [Wed, 7 Aug 2013 10:10:38 +0000 (12:10 +0200)]
ppc4xx: Remove support for PPC405CR CPUs

This patch removes support for the APM 405CR CPU.
This CPU is EOL and no board uses this chip.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
11 years agoppc4xx: Remove CANBT board
Matthias Fuchs [Wed, 7 Aug 2013 11:22:10 +0000 (13:22 +0200)]
ppc4xx: Remove CANBT board

This board and especially the CPU (PPC405CR) is EOL.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Acked-by: Wolfgang Denk <wd@denx.de>
11 years agoMerge branch 'master' of git://git.denx.de/u-boot-i2c
Tom Rini [Tue, 20 Aug 2013 15:34:24 +0000 (11:34 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-i2c

11 years agopmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()
Łukasz Majewski [Fri, 16 Aug 2013 13:35:26 +0000 (15:35 +0200)]
pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()

After introduction of unified i2c model, the I2C_SET_BUS() macro is regarded
as obsolete.
Hence it is replaced with i2c_set_bus_num() function call.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
11 years agoi2c:samsung: Adjust Trats, GONI and Universal_c210 boards to work with new I2C framework
Łukasz Majewski [Fri, 16 Aug 2013 13:33:33 +0000 (15:33 +0200)]
i2c:samsung: Adjust Trats, GONI and Universal_c210 boards to work with new I2C framework

New I2C framework, introduced after v2013.07 final release, imposed I2C
code adjustment for some Samsung boards - namely Trats, GONI and Universal_c210.

Those boards were using schematic based I2C enumeration (I2C_5, I2C_9).
However, new I2C framework imposes usage of logical I2C adapters numbering
(e.g. I2C_0, I2C_1, etc).

Additionally, I2C_GET_* macros were replaced with i2c_*_bus_num() functions.

Trats board gained definition of second soft I2C adapter.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
11 years agoi2c:multibus:fix: Correct I2C_MULTI_BUS value when support for many buses is enabled
Łukasz Majewski [Fri, 16 Aug 2013 13:31:45 +0000 (15:31 +0200)]
i2c:multibus:fix: Correct I2C_MULTI_BUS value when support for many buses is enabled

The I2C_MULTI_BUS needs to be defined for correct I2C operation with
many software emulated I2C controllers.

This fix restores correct value of the I2C_MULTI_BUS changed by following
commit:

SHA1: 385c9ef5a7215b2b0c22836fee6c692dfc8559d7
i2c: add i2c_core and prepare for new multibus support

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
11 years agofsl_i2c: add workaround for the erratum I2C A004447
Chunhe Lan [Fri, 16 Aug 2013 07:10:37 +0000 (15:10 +0800)]
fsl_i2c: add workaround for the erratum I2C A004447

This workaround is for the erratum I2C A004447. Device reference
manual provides a scheme that allows the I2C master controller
to generate nine SCL pulses, which enable an I2C slave device
that held SDA low to release SDA. However, due to this erratum,
this scheme no longer works. In addition, when I2C is used as
a source of the PBL, the state machine is not able to recover.

At the same time, delete the reduplicative definition of SVR_VER
and SVR_REV. The SVR_REV is the low 8 bits rather than the low 16
bits of svr. And we use the CONFIG_SYS_FSL_A004447_SVR_REV macro
instead of hard-code value 0x10, 0x11 and 0x20.

The CONFIG_SYS_FSL_A004447_SVR_REV = 0x00 represents that one
version of platform has this I2C errata. So enable this errata
by IS_SVR_REV(svr, maj, min) function.

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Heiko Schocher <hs@denx.de>
11 years agofsl_i2c: generate nine pulses on SCL if the I2C bus is hung
Chunhe Lan [Fri, 16 Aug 2013 07:10:36 +0000 (15:10 +0800)]
fsl_i2c: generate nine pulses on SCL if the I2C bus is hung

When the code detected that the bus is hung (e.g. SDA stuck low),
send 9 pulses on SCL to try to fixup the bus.

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Heiko Schocher <hs@denx.de>
11 years agoARM: tegra: support raw ramdisks
Stephen Warren [Wed, 14 Aug 2013 16:05:33 +0000 (10:05 -0600)]
ARM: tegra: support raw ramdisks

This way, we don't have to run mkimage on them.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>