sitara-epos/sitara-epos-uboot.git
7 years agoARM: OMAP: AM43XX: Enable CONFIG_AUTH_UCS flag int_epos_uboot_02.00.00.00 INT_AM438X_EPOS_SDK_02.02.00.01
Vaibhav Hiremath [Wed, 30 Oct 2013 07:43:49 +0000 (13:13 +0530)]
ARM: OMAP: AM43XX: Enable CONFIG_AUTH_UCS flag

As UCS mode is going to be default mode supported by ePOS SDK,
so enable CONFIG_AUTH_UCS flag.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoAM43XX_HS: Modify board configuration for EPOS EVM with HS
Nageswari Srinivasan [Tue, 29 Oct 2013 13:18:34 +0000 (18:48 +0530)]
AM43XX_HS: Modify board configuration for EPOS EVM with HS

This patch modifies board configuration from
am43xx_hs_evm => am43xx_epos_hs_evm
am43xx_hs_evm_perboot => am43xx_epos_hs_evm_perboot

This configuration name will explain that we have
EPOS EVM with High Secure device and also helps to define am43xx_hs_evm
when we will be supporting HS EVM as a different board variant.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Nageswari Srinivasan <nageswari@ti.com>
7 years agoARM: OMAP: AM43XX: Fix the wrong emif_l3_config value
Vaibhav Hiremath [Tue, 29 Oct 2013 09:50:00 +0000 (15:20 +0530)]
ARM: OMAP: AM43XX: Fix the wrong emif_l3_config value

The EMIF L3 Config register is being configured to the
value 0x0A000000, which is random and wrong value, due to which
DSS immediately throws underflow error.

The new value 0x00070000, fixes the DSS underflow error but
still needs to be fully root-caused.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoARM: OMAP: AM43XX: Reserve memory for OTFA data
Vaibhav Hiremath [Fri, 18 Oct 2013 06:09:16 +0000 (11:39 +0530)]
ARM: OMAP: AM43XX: Reserve memory for OTFA data

Out of 1GBytes memory available on ePOS EVM, as per OTFA modules
requirement reserve 128Mbytes of memory required for OTFA.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoARM: OMAP: AM43XX: Add secure service for OTFA Initialization
Vaibhav Hiremath [Wed, 9 Oct 2013 12:50:12 +0000 (18:20 +0530)]
ARM: OMAP: AM43XX: Add secure service for OTFA Initialization

It is recommended (and mandatory) to initialize OTFA module
immediately after DDR initialization, before making any DDR
access.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoARM: OMAP: AM43XX: Add secure_service api declaration to sys_proto.h
Vaibhav Hiremath [Thu, 10 Oct 2013 04:35:03 +0000 (10:05 +0530)]
ARM: OMAP: AM43XX: Add secure_service api declaration to sys_proto.h

Currently SPL makes a secure service call for OTFA
initialization, which __must__ be done immediately after DDR
configuration; so this declaration is required to avoid build
warning.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoARM: OMAP: AM43XX: Add verify_image API declaration to sys_proto.h
Vaibhav Hiremath [Thu, 10 Oct 2013 04:56:56 +0000 (10:26 +0530)]
ARM: OMAP: AM43XX: Add verify_image API declaration to sys_proto.h

This patch fixes the build warning for verify_image API's
newly introduced into u-boot (secure_service.c).

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoARM: OMAP: AM43XX: TEMP: Add alternative secure_service2 api
Sanjeev Premi [Thu, 10 Oct 2013 04:39:09 +0000 (10:09 +0530)]
ARM: OMAP: AM43XX: TEMP: Add alternative secure_service2 api

When using do_omap_emu_romcode_call() doesn't
behave the same way as the originally implemented public_to_secure()
function call.

A notable difference lies in the return values being propagated
from function in secure side to public side.

An element of difference would be the values of R12 register.
In do_omap_emu_romcode_call(), it contains the secure service ID.
Whereas, in the implementation of public_to_secure(). R12 was
set to 0 and R0 contained the service id.

Keeping the naming convention in omap_smc.S, new function
rom_hal_call() has been implemented. which mimics the original
mechanism of making secure service call

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
7 years agoAM43XX: HS: Use CONFIG_AUTH_UCS to support authentication as well as UCS boot
Hemant Pedanekar [Tue, 8 Oct 2013 19:07:03 +0000 (00:37 +0530)]
AM43XX: HS: Use CONFIG_AUTH_UCS to support authentication as well as UCS boot

Since both of the above cases require the SPL load address be different than
legacy boot mode, CONFIG_AUTH_UCS in confunction with CONFIG_HS_AUTH_BOOT is
used avoiding multiple macros.

Following modes are handled:
CONFIG_HS_AUTH_BOOT - Authenticate images signed in multitask mode
CONFIG_HS_AUTH_BOOT && CONFIG_AUTH_UCS - UCS mode authentication
CONFIG_AUTH_UCS - UCS boot only (no authentication beyond MLO)

The above usage requires existing code to use both macros together.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoAM43XX: HS: Use correct bit mask for ISW authentication right
Hemant Pedanekar [Tue, 8 Oct 2013 19:01:38 +0000 (00:31 +0530)]
AM43XX: HS: Use correct bit mask for ISW authentication right

Update the bit mask (bit-1) for ISW authentication right as per the key
configuration data fed to signing tool.

The constraint for authentication rights is bitwise and of rights field of the
key (in signing configuration) and parameter passed from U-Boot to ROM API to
authenticate image be non zero.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: OMAP: AM43XX: Disable authenticated boot by default
Hemant Pedanekar [Fri, 4 Oct 2013 00:53:09 +0000 (06:23 +0530)]
ARM: OMAP: AM43XX: Disable authenticated boot by default

Do not define CONFIG_HS_AUTH_BOOT for default build. Thus SPL and U-Boot will
not use signed next stage images (U-Boot and Kernel respectively).

In case authentication at SPL/U-Boot level is required, am43xx_evm.h needs to be
updated accordingly for build.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: OMAP: AM43XX: Flush cache before calling secure API to authenticate image
Hemant Pedanekar [Thu, 3 Oct 2013 19:42:51 +0000 (01:12 +0530)]
ARM: OMAP: AM43XX: Flush cache before calling secure API to authenticate image

If D-cache is enabled in U-Boot, the cache entries for area used to load the
image for authentication must be flushed to ensure coherency when ROM accesses
the image in secure mode.

The flush operation is performed for the complete area including parameter
array passed to ROM, image header/signature at all levels.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: OMAP: AM43XX: Update secure_service to take fixed number of arguments
Hemant Pedanekar [Thu, 3 Oct 2013 23:08:20 +0000 (04:38 +0530)]
ARM: OMAP: AM43XX: Update secure_service to take fixed number of arguments

This patch changes the implementation of secure_service function to take fixed
number of arguments instead of variable arguments.

Since the maximum number of arguments a secure service API can have is 4, this
function expects all of them to be populated by caller. In case the numbers of
parameters of interest are lesser, the caller can pass those arguments as '0'.
In all the cases, the value of number of valid parameters is always passed to
this function.

This change also eases the manipulation of parameter array which otherwise is
difficult due to va_list being changed to aggregate value from integer on newer
toolchains obeying latest EABI.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: OMAP: AM43XX: Add check for 32-byte aligned image address for authentication
Hemant Pedanekar [Thu, 3 Oct 2013 19:42:36 +0000 (01:12 +0530)]
ARM: OMAP: AM43XX: Add check for 32-byte aligned image address for authentication

On AM43XX, the address of the image as passed to ROM for authentication must be
aligned to 32-byte boundary. This patch adds a check for the same and flags
error if this requirement is not met.

Note that, depending upon the authentication method used, the actual load
address of image address will be different as follows:

* Multitask mode: Image load address = Image start address
* UCS mode: Image load address = Image start address - 0x290 (UCS header size)

In both the cases, it must be ensured that image start address is 32-byte
aligned.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: OMAP: AM43xx: Add support for authentication with UCS
Deepak M [Tue, 1 Oct 2013 08:45:49 +0000 (14:15 +0530)]
ARM: OMAP: AM43xx: Add support for authentication with UCS

As the UCS will have the authentication signature at the begining of the signed
image so having a new function to handle this.

The UCS flag CONFIG_AUTH_UCS has to be enabled in the config file
include/configs/am43xx_evm.h to use this feature.

Signed-off-by: Deepak M <x0171695@ti.com>
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: OMAP: AM43XX: Add support for peripheral boot mode on HS
Hemant Pedanekar [Wed, 2 Oct 2013 14:20:27 +0000 (19:50 +0530)]
ARM: OMAP: AM43XX: Add support for peripheral boot mode on HS

On HS devices, the SPL load address changes depending upon memory boot mode
(MMC/SD, NAND etc) v/s peripheral boot mode (UART, USB etc). Add a build
configuration am43xx_hs_evm_perboot to provide peripheral boot mode build.

Note that, the load address of SPL is further impacted by PPA size and any
custom header (if present). Thus, it is advised to run IFT tool to generate the
boot loader image (PPA+SPL) and get the SPL (ISW) start offset from IFT tool's
output to add it to OCMC base (0x40300000). The CONFIG_SPL_TEXT_BASE in
include/configs/am43xx_evm.h should be updated accordingly.

E.g., present build configures CONFIG_SPL_TEXT_BASE as 0x40304750 as per IFT
output below:

-----------------------------------------------------------------
ISW entry point offset from target memory 0x4750
-----------------------------------------------------------------

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoAuthenticate the image(s) before executing
Hemant S Pedanekar [Wed, 12 Jun 2013 04:33:41 +0000 (10:03 +0530)]
Authenticate the image(s) before executing

This patch hooks in calls to secure service to authenticate the image before
proceeding to execute it.

The following paths are updated:

1) SPL          -> Next stage (U-Boot)
2) U-Boot       -> Application (if using)
3) U-Boot       -> Ramdisk (if loading through U-Boot)
4) U-Boot       -> Kernel

Note that, in all the cases, it is required that (each individual) image to be
loaded has the image header as prepended by mkimage as it is used for initial
parsing (such as getting image size).

At present, it is also assumed that the authentication signature is generated
over the whole image including header (prepended by mkimage).

The FDT images and multi file images would also work but is not tested.

Signed-off-by: Hemant S Pedanekar <hemantp@ti.com>
Signed-off-by: Sanjeev Premi <premi@ti.com>
7 years agoARM: AM43xx: Add support to enter secure mode for secure services
Hemant S Pedanekar [Wed, 12 Jun 2013 04:20:18 +0000 (09:50 +0530)]
ARM: AM43xx: Add support to enter secure mode for secure services

Enables calling secure monitor APIs for specified IDs and parameters. Note that
this will only work on High Security (HS) devices and thus CONFIG_HS_DEVICE must
be true in the build.

Currently, the call for ROM API to authenticate image in RAM is added.

Signed-off-by: Hemant S Pedanekar <hemantp@ti.com>
Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Deepak M <x0171695@ti.com>
7 years agoARM: OMAP: Make omap3 secure monitor call routines common
Deepak M [Mon, 15 Jul 2013 03:32:30 +0000 (09:02 +0530)]
ARM: OMAP: Make omap3 secure monitor call routines common

Secure monitor entry syntax and semantics is same for various SoCs such as
OMAP3, OMAP4, AM33XX, AM43XX. This patch moves the low level routines used to
enter secure monitor on OMAP3 devices to arch/arm/cpu/armv7/omap-common
directory, so that those can be shared.

The routine names are changed by replacing "omap3" with "omap" and existing
OMAP3 code calling those is also updated accordingly.

Signed-off-by: Deepak M <x0171695@ti.com>
Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
7 years agoARM: AM43xx: Add build support for AM43xx HS EVM
Hemant Pedanekar [Mon, 16 Sep 2013 10:50:46 +0000 (16:20 +0530)]
ARM: AM43xx: Add build support for AM43xx HS EVM

A new board configuration am43xx_hs_evm is added for AM43xx HS (High Secure) EVM
based on existing am43xx_evm configuration.

A configuration option CONFIG_HS_DEVICE is added to enable identifying HS device
specific build.

The SPL start address for HS device is different from GP device and the same is
updated for memory booting.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Sanjeev Premi <premi@ti.com>
7 years agoARM: AM43xx: Enable L2 Cache
Lokesh Vutla [Thu, 3 Oct 2013 19:00:07 +0000 (00:30 +0530)]
ARM: AM43xx: Enable L2 Cache

Enable L2 cache for AM43xx

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoRevert "comment out env_callback_init so that dhcp works with cpsw"
Lokesh Vutla [Thu, 3 Oct 2013 16:11:19 +0000 (21:41 +0530)]
Revert "comment out env_callback_init so that dhcp works with cpsw"

This reverts commit 87f1a0387fef62951ebbbed4705e64ba13edb29e.

7 years agoARM: AM43xx: Update Extra ENV settings
Lokesh Vutla [Thu, 3 Oct 2013 14:52:58 +0000 (20:22 +0530)]
ARM: AM43xx: Update Extra ENV settings

Updating extra ENV settings to use uEnv.txt

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoRevert HACK: Remove noinline
Lokesh Vutla [Thu, 3 Oct 2013 14:43:06 +0000 (20:13 +0530)]
Revert HACK: Remove noinline

uart_soft_reset is made noinline for the time.
Remove it.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: Update SPL Text Base
Lokesh Vutla [Thu, 3 Oct 2013 14:41:13 +0000 (20:11 +0530)]
ARM: AM43xx: Update SPL Text Base

Updating SPL test base for AM43xx

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM33xx+: Enable D-CACHE on !CONFIG_SYS_DCACHE_OFF
Tom Rini [Wed, 4 Sep 2013 13:03:19 +0000 (18:33 +0530)]
ARM: AM33xx+: Enable D-CACHE on !CONFIG_SYS_DCACHE_OFF

Test on Beaglebone white over cpsw, usb ether and SD card (read and
write), performance increased, crc32 of data matches.

Signed-off-by: Tom Rini <trini@ti.com>
7 years agoRevert "HACK: make one more function inline"
Lokesh Vutla [Thu, 3 Oct 2013 13:32:28 +0000 (19:02 +0530)]
Revert "HACK: make one more function inline"

This reverts commit fb52640d902a29d2c6d335e86c1c6b02d2cf5b80.

7 years agoRevert "HACK: make a function inline"
Lokesh Vutla [Thu, 3 Oct 2013 13:32:13 +0000 (19:02 +0530)]
Revert "HACK: make a function inline"

This reverts commit 94179d1a8d3f6963c1b50155eb17a56b44f07214.

7 years agoARM: AM43xx: Add extra ENV settings
Lokesh Vutla [Wed, 2 Oct 2013 16:17:31 +0000 (21:47 +0530)]
ARM: AM43xx: Add extra ENV settings

Add Extra env settings

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoHACK: make one more function inline
Lokesh Vutla [Wed, 2 Oct 2013 15:12:08 +0000 (20:42 +0530)]
HACK: make one more function inline

Macking functions inline to avoid POP

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoHACK: make a function inline
Lokesh Vutla [Tue, 1 Oct 2013 23:42:08 +0000 (05:12 +0530)]
HACK: make a function inline

Make command_usage() inline to remove a hang

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoRevert "HACK: Use Only MMC boot mode for AM43XX"
Lokesh Vutla [Tue, 1 Oct 2013 15:53:58 +0000 (21:23 +0530)]
Revert "HACK: Use Only MMC boot mode for AM43XX"

This reverts commit e5bc6543091f22ea56e0ab9fb44df0f1d1cb66a9.

7 years agoARM: AM43XX: Update SRAM scratch space address
Lokesh Vutla [Tue, 1 Oct 2013 15:52:52 +0000 (21:22 +0530)]
ARM: AM43XX: Update SRAM scratch space address

Update sram scratch space address.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agocomment out env_callback_init so that dhcp works with cpsw
Mugunthan V N [Mon, 30 Sep 2013 13:51:37 +0000 (08:51 -0500)]
comment out env_callback_init so that dhcp works with cpsw

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: AM43xx: Enable CPSW Ethernet support
Mugunthan V N [Sun, 28 Jul 2013 13:25:10 +0000 (18:55 +0530)]
ARM: AM43xx: Enable CPSW Ethernet support

Enabling CPSW Ethernet support in AM43xx EVM.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: AM43xx: Add CPSW and MDIO pinmux support
Mugunthan V N [Tue, 30 Jul 2013 06:45:20 +0000 (12:15 +0530)]
ARM: AM43xx: Add CPSW and MDIO pinmux support

Adding CPSW Slave 0 and MDIO pinmux support for AM43xx EVM

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: AM43xx: Add CPSW support to AM43xx EVM
Mugunthan V N [Sun, 28 Jul 2013 13:13:17 +0000 (18:43 +0530)]
ARM: AM43xx: Add CPSW support to AM43xx EVM

Adding support for CPSW to AM43xx EVM which is connected to RMII phy

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: AM43xx: clocks: Enable CPGMAC clock control
Mugunthan V N [Sun, 28 Jul 2013 12:22:02 +0000 (17:52 +0530)]
ARM: AM43xx: clocks: Enable CPGMAC clock control

Enable CPGMAC clock control for AM43xx to use ethernet in U-Boot

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoarm, am33xx: add defines for gmii_sel_register bits
Heiko Schocher [Tue, 30 Jul 2013 07:53:54 +0000 (09:53 +0200)]
arm, am33xx: add defines for gmii_sel_register bits

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
7 years agoARM: AM43xx: Hack: disable rtc
Lokesh Vutla [Mon, 30 Sep 2013 14:51:49 +0000 (20:21 +0530)]
ARM: AM43xx: Hack: disable rtc

disable rtc and enable noinline. needs more investigation

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: Adapt to ti_armv7_common.h config file
Lokesh Vutla [Sun, 25 Aug 2013 17:51:44 +0000 (23:21 +0530)]
ARM: AM43xx: Adapt to ti_armv7_common.h config file

Use ti_armv7_common.h config file to inclde the common
configs.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoHACK: Use Only MMC boot mode for AM43XX
Lokesh Vutla [Fri, 27 Sep 2013 18:35:57 +0000 (00:05 +0530)]
HACK: Use Only MMC boot mode for AM43XX

AM43XX uses only MMC boot mode

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: Add sdram details
Lokesh Vutla [Sat, 28 Sep 2013 10:43:59 +0000 (16:13 +0530)]
ARM: AM43xx: Add sdram details

Add sdram details for AM43xx

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: clock: Update PLL multiplier and divider values
Lokesh Vutla [Mon, 23 Sep 2013 06:14:22 +0000 (11:44 +0530)]
ARM: AM43xx: clock: Update PLL multiplier and divider values

Update DPLL Multiplier and divider values.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: mux: Update mux data
Lokesh Vutla [Wed, 4 Sep 2013 12:59:48 +0000 (18:29 +0530)]
ARM: AM43xx: mux: Update mux data

Updating the mux data for AM43xx board.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: Update Current Booting devices list
Lokesh Vutla [Wed, 4 Sep 2013 05:26:51 +0000 (10:56 +0530)]
ARM: AM43xx: Update Current Booting devices list

Current Booting devices list is different from that of AM33xx.
Updating the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoARM: AM43xx: Select clk source for Timer2
Lokesh Vutla [Tue, 3 Sep 2013 05:08:14 +0000 (10:38 +0530)]
ARM: AM43xx: Select clk source for Timer2

Selecting the Master osc 24 MHZ as Timer2 clock source.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
7 years agoRevert "arm: optimize relocate_code routine"
Lokesh Vutla [Mon, 30 Sep 2013 14:54:53 +0000 (20:24 +0530)]
Revert "arm: optimize relocate_code routine"

This reverts commit fbf87b1823dd5ebc2a384711ea2c677543019ece.

7 years agoRevert "pxa: fix memory coherency problem after relocation"
Lokesh Vutla [Mon, 30 Sep 2013 14:54:47 +0000 (20:24 +0530)]
Revert "pxa: fix memory coherency problem after relocation"

This reverts commit 9dc8fef2583f23ca6a99c6f5e709a8b80018364f.

7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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>