]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
10 years agozynqmp: dc2: Enable nand by default
Michal Simek [Wed, 23 Sep 2015 17:33:38 +0000 (19:33 +0200)] 
zynqmp: dc2: Enable nand by default

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Dont use shortcut for setenv
Siva Durga Prasad Paladugu [Fri, 11 Sep 2015 06:27:25 +0000 (11:57 +0530)] 
zynqmp: Dont use shortcut for setenv

Dont use shortcut command for setenv as
it wont work now due introduction of new
command setexpr.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Define new command usbhostboot
Siva Durga Prasad Paladugu [Fri, 11 Sep 2015 06:39:26 +0000 (12:09 +0530)] 
zynqmp: Define new command usbhostboot

Define new command usb hostboot to boot kernel
from a usb device connected.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Fix bootargs for cadence serial
Michal Simek [Fri, 11 Sep 2015 06:13:28 +0000 (08:13 +0200)] 
zynqmp: Fix bootargs for cadence serial

Bug introduced by:
"zynqmp: Add support for earlycon for DCC port"
(sha1: bffd25e40d88ce4d404c414b2e2bcfeefda818b0)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add support for earlycon for DCC port
Michal Simek [Wed, 9 Sep 2015 11:16:14 +0000 (13:16 +0200)] 
zynqmp: Add support for earlycon for DCC port

Setup early console based on serial console driver selection.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Change MDC setup for arm64
Michal Simek [Tue, 8 Sep 2015 15:20:01 +0000 (17:20 +0200)] 
net: zynq: Change MDC setup for arm64

MDC setting depends on pclk input clocks which varies across SoC. This
driver is used by xilinx zynq and zynqmp SOC.
Origin 224 divider is coming from RTL3.1 setting. The latest RTL doesn't
require this setting on EP108.
Input clock frequence on silicon is 125MHz where divider 64 put
frequency below 2.5MHz requires by spec (125/64=1.95).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Fix MDC setting for zynq
Michal Simek [Tue, 8 Sep 2015 15:07:01 +0000 (17:07 +0200)] 
net: zynq: Fix MDC setting for zynq

Based on spec:
"MDC must not exceed 2.5 MHz (MDC is only active during MDIO read and
write operations)"
Zynq is running on 111MHz. Current setting is 32 which is 111/32=3.47
which is above of 2.5MHz.
Using 48 divider will give us correct setting according spec
(111/48=2.31).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Fix mdc clock division setting for 100Mbit/s
Michal Simek [Tue, 8 Sep 2015 14:55:42 +0000 (16:55 +0200)] 
net: zynq: Fix mdc clock division setting for 100Mbit/s

Using set and clear macro is incorrect because it is not overwritting
origin mdc clock division setup.
For example origin setup is 8(0b001) and new setup is 64(0b100) which
means 0b101 is setup which is 96 divider.
Using writel to rewrite all setting like for 1000Mbit/s case.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Remove unused MDCCLKDIV2 macro
Michal Simek [Tue, 8 Sep 2015 14:54:39 +0000 (16:54 +0200)] 
net: zynq: Remove unused MDCCLKDIV2 macro

Driver cleanup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Add missing const to wait_for_bit()
Michal Simek [Tue, 8 Sep 2015 15:34:17 +0000 (17:34 +0200)] 
net: zynq: Add missing const to wait_for_bit()

Remove compilation warning:
../drivers/net/zynq_gem.c:407:19: note: expected 'char *' but argument
is of type 'const char *'
../drivers/net/zynq_gem.c:476:8: warning: passing argument 1 of
'wait_for_bit' discards 'const' qualifier from pointer target type
[enabled by default]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Modify the autoboot commands
Siva Durga Prasad Paladugu [Mon, 7 Sep 2015 05:33:47 +0000 (11:03 +0530)] 
zynqmp: Modify the autoboot commands

Modify the QSPI, NAND and DFU commands to use
latest kernel offsets and sizes as per modified
partitions in the linux device tree.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Extend cache handling
Michal Simek [Thu, 3 Sep 2015 08:50:37 +0000 (10:50 +0200)] 
ARM: zynqmp: Extend cache handling

- Add cache on/off functions to Kconfig. ARC has already done it and this
  should be the same for all platforms.
- Disable caches for noatf dc1/dc2 configurations
- Enable CMD_CACHE

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Remove incorrect command
Michal Simek [Thu, 3 Sep 2015 06:16:32 +0000 (08:16 +0200)] 
ARM: zynqmp: Remove incorrect command

The bug was introduced by:
"zynqmp: usb: Add usb dwc3 driver support for zynqmp"
(sha1: 2d5bc2183fa6484e8411ffa8edf1a33c63cb54b6)
with incorrect conflict resolution.

Remove this additional line.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Add sdroot user command
Michal Simek [Mon, 31 Aug 2015 14:01:28 +0000 (16:01 +0200)] 
ARM: zynqmp: Add sdroot user command

For easier sdroot setup via U-Boot.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Add nfsroot user command
Michal Simek [Mon, 31 Aug 2015 12:59:33 +0000 (14:59 +0200)] 
ARM: zynqmp: Add nfsroot user command

For easier nfsroot setup via U-Boot.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Add support for zc1751 board with dc1/dc2 cards
Michal Simek [Thu, 20 Aug 2015 13:28:05 +0000 (15:28 +0200)] 
ARM: zynqmp: Add support for zc1751 board with dc1/dc2 cards

Zynq GEM PHY is setup to -1 to ensure PHY autodetection and then proper
address will be setup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Use the latest DTSI
Michal Simek [Fri, 28 Aug 2015 11:41:49 +0000 (13:41 +0200)] 
ARM: zynqmp: Use the latest DTSI

Add missing IPs to the current DTSI.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Remove CONFIG_SPI_FLASH from config
Michal Simek [Fri, 28 Aug 2015 11:40:21 +0000 (13:40 +0200)] 
ARM: zynqmp: Remove CONFIG_SPI_FLASH from config

This parameter is setup via menuconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add initial support for the first silicon
Michal Simek [Thu, 20 Aug 2015 12:01:39 +0000 (14:01 +0200)] 
zynqmp: Add initial support for the first silicon

Add basic configuration for the first silicon.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Allow overwrite identification string
Michal Simek [Fri, 28 Aug 2015 11:34:37 +0000 (13:34 +0200)] 
zynqmp: Allow overwrite identification string

Keep default option there but allow overwrite it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: Use correct zynqmp dependency
Michal Simek [Fri, 28 Aug 2015 09:17:43 +0000 (11:17 +0200)] 
spi: Use correct zynqmp dependency

ARCH_ZYNQMP is used instead of TARGET_XILINX_ZYNQMP.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoxilinx: Remove all ancient code
Michal Simek [Thu, 30 Jul 2015 09:51:34 +0000 (11:51 +0200)] 
xilinx: Remove all ancient code

- Remove PPC code from the tree
- Revert LL_Temac driver and use mainline one

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add nosmp variable to simplify NOSMP system run
Michal Simek [Thu, 20 Aug 2015 13:22:46 +0000 (15:22 +0200)] 
zynqmp: Add nosmp variable to simplify NOSMP system run

Just helper variable for easier work with NOSMP system.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove incorrect link to common config file
Michal Simek [Thu, 20 Aug 2015 13:21:48 +0000 (15:21 +0200)] 
zynqmp: Remove incorrect link to common config file

Link to zynqmp common file is incorrect. Fix it by removing the whole
link because it is visible from the file where to look at it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Add dummy packet to fix packet duplication issue
Michal Simek [Mon, 17 Aug 2015 07:58:54 +0000 (09:58 +0200)] 
net: gem: Add dummy packet to fix packet duplication issue

Target is duplicating packets. IP prefetches another BD and process it
when the first one is sent. Adding one dummy BD to the chain fix the
problem with packet duplication.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Wait till packet is sent
Michal Simek [Mon, 17 Aug 2015 07:57:46 +0000 (09:57 +0200)] 
net: gem: Wait till packet is sent

Wait till BD is process to ensure that packet was sent successfully.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Do not report TX underrun
Michal Simek [Mon, 17 Aug 2015 07:51:34 +0000 (09:51 +0200)] 
net: gem: Do not report TX underrun

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Setup BD when structures are filled
Michal Simek [Mon, 17 Aug 2015 07:50:09 +0000 (09:50 +0200)] 
net: gem: Setup BD when structures are filled

Fix incorrect sequence in BD handling.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Allocate BD_SPACE in connection to RX_BUF
Michal Simek [Mon, 17 Aug 2015 07:45:53 +0000 (09:45 +0200)] 
net: gem: Allocate BD_SPACE in connection to RX_BUF

BD_SEPRN_SPACE should not have hard coded value and it will be
calculated based on the number of buffer descriptors that we
would like to use.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: Return -EINTR when ctrl+c is pressed
Michal Simek [Thu, 13 Aug 2015 07:23:31 +0000 (09:23 +0200)] 
net: Return -EINTR when ctrl+c is pressed

Current behavior is that if CTRL+C is pressed command returns 0 that was
successful which is not correct behavior.
The easiest test case is "tftpboot 80000 uImage && echo yes"
and press CTRL+C. Then the second command is called which is incorrect.

Error log:
zynq-uboot> tftpb 80000 uImage && echo yes
Gem.e000b000:7 is connected to Gem.e000b000.  Reconnecting to
Gem.e000b000
Gem.e000b000 Waiting for PHY auto negotiation to complete....... done
Using Gem.e000b000 device
TFTP from server 192.168.0.102; our IP address is 192.168.0.101
Filename 'uImage'.
Load address: 0x80000
Loading: ################
Abort
yes
zynq-uboot>

This patch adds -EINTR return value when CTRL+C is pressed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
10 years agozynq: Remove -mfpu=neon from config.mk
Michal Simek [Wed, 19 Aug 2015 07:02:12 +0000 (09:02 +0200)] 
zynq: Remove -mfpu=neon from config.mk

-mfpu=neon is added directly to Makefile.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoqspi: zynqmp: Add 4byte addressing support for ZynqMP
Siva Durga Prasad Paladugu [Fri, 14 Aug 2015 09:11:16 +0000 (14:41 +0530)] 
qspi: zynqmp: Add 4byte addressing support for ZynqMP

Enable 4 byte addressing support for zynqMP by informing
the sf framework with 4 byte support.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: sf: Add 4byte addressing support
Siva Durga Prasad Paladugu [Fri, 14 Aug 2015 09:11:15 +0000 (14:41 +0530)] 
spi: sf: Add 4byte addressing support

Add 4 byte addressing support in sf framework
for the devices of size greater thab 16M and
for the controllers which are capable of 4 byte
addressing.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Turn SPI flash chip into 3-Byte address mode
Siva Durga Prasad Paladugu [Fri, 14 Aug 2015 09:11:14 +0000 (14:41 +0530)] 
sf: Turn SPI flash chip into 3-Byte address mode

For more than 16MiB SPI flash chips, there are 3-Byte and 4-Byte address
mode, and only the 3-Byte address mode is supported in U-Boot so far.
So, reset the SPI flash to 3-Byte address mode in probe to ensure the SPI
flash work correctly, because it may has been set to 4-Byte address mode
after warm boot.

Signed-off-by: Hou Zhiqiang <B48286@freescale.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq-common: Fix redefinition error with configs CMD_SF and CMD_SPI
Siva Durga Prasad Paladugu [Fri, 14 Aug 2015 08:58:58 +0000 (14:28 +0530)] 
zynq-common: Fix redefinition error with configs CMD_SF and CMD_SPI

Define CMD_SF and CMD_SPI configs incase of either
the ZYNQ_SPI or ZYNQ_QSPI or both. This is to avoid
the redefinition error if both ZYNQ_SPI and ZYNQ_QSPI
are enabled.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: Enable SPI for XM010 board
Siva Durga Prasad Paladugu [Fri, 14 Aug 2015 08:58:57 +0000 (14:28 +0530)] 
zynq: Enable SPI for XM010 board

Enable SPI for XM010 board as it is now possible
to have both SPI and QSPI together since we moved
to OF_CONTROL

Probe the qspi using "sf probe"
Probe the spi using "sf probe 1:1"

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: dts: Rename memory@0 to memory
Michal Simek [Wed, 12 Aug 2015 09:25:05 +0000 (11:25 +0200)] 
ARM: dts: Rename memory@0 to memory

zynq-7000.dtsi include skeleton.dtsi which contains memory node with
base address and size zero. If you add memory@0 node to the platform DTS
in final DTB there are two memory nodes and U-Boot works with the first
one (with zeros) which end up in failing in dram_init because size is
zero.
Platform memory node should rewrite default memory node setup from
skeleton.dtsi that's why platfroms needs to also use memory as node name
instead of memory@0.

Reported-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: zc770: Sync RSA configuraion with non RSA
Michal Simek [Wed, 12 Aug 2015 09:32:22 +0000 (11:32 +0200)] 
zynq: zc770: Sync RSA configuraion with non RSA

Add missing ARCH_ZYNQ selection for xm011 platform.
Also disable IMLS for xm011 and xm012.

Reported-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: Use proper compatible string for xilinx_spi driver
Michal Simek [Mon, 10 Aug 2015 09:14:18 +0000 (11:14 +0200)] 
spi: Use proper compatible string for xilinx_spi driver

Origin compatible string was added mostly adhoc. Add correct one which
is generated by DTG.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Move SPI_FLASH and SPI_FLASH_BAR to defconfig
Michal Simek [Fri, 7 Aug 2015 07:36:32 +0000 (09:36 +0200)] 
zynqmp: Move SPI_FLASH and SPI_FLASH_BAR to defconfig

Move configurable options from config file to defconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: zynqmp_qspi: Changes to support QSPI driver model
Siva Durga Prasad Paladugu [Thu, 6 Aug 2015 13:59:25 +0000 (19:29 +0530)] 
spi: zynqmp_qspi: Changes to support QSPI driver model

Changes to support QSPI driver model for zynqMP and enable QSPI again.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Enable DM and OF binding
Michal Simek [Wed, 5 Aug 2015 06:37:08 +0000 (08:37 +0200)] 
ARM: zynqmp: Enable DM and OF binding

SPI requires DM and OF that's why enable DM for ZynqMP
and start to use configuration based on embedded OF.
Disable QSPI driver because it hasn't been moved to DM yet.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: zynqmp: Enable USB XHCI support
Siva Durga Prasad Paladugu [Wed, 5 Aug 2015 09:24:36 +0000 (14:54 +0530)] 
usb: zynqmp: Enable USB XHCI support

Enable USB XHCI support for ZynqMP

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: zynqmp: Add XHCI driver support
Siva Durga Prasad Paladugu [Wed, 5 Aug 2015 09:24:35 +0000 (14:54 +0530)] 
usb: zynqmp: Add XHCI driver support

Added USB XHCI driver support for zynqmp.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: usb: Add usb dwc3 driver support for zynqmp
Siva Durga Prasad Paladugu [Wed, 5 Aug 2015 09:24:34 +0000 (14:54 +0530)] 
zynqmp: usb: Add usb dwc3 driver support for zynqmp

Added usb dwc3 driver support for zynqmp
this also supports the DFU and LTHOR to download
the linux images on to RAM and cen be booted from
those linux images.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoboard: Xilinx: zynqmp: Define checkboard() function
Siva Durga Prasad Paladugu [Wed, 5 Aug 2015 09:24:33 +0000 (14:54 +0530)] 
board: Xilinx: zynqmp: Define checkboard() function

Define checkboard() function for zynqMP

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: dwc3: Add DWC3 controller driver support
Ramneek Mehresh [Fri, 29 May 2015 09:17:15 +0000 (14:47 +0530)] 
usb: dwc3: Add DWC3 controller driver support

Add support for DWC3 XHCI controller driver

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
10 years agousb: dwc3: Modify the dwc3_readl and dwc3_writel
Siva Durga Prasad Paladugu [Fri, 26 Jun 2015 09:33:50 +0000 (15:03 +0530)] 
usb: dwc3: Modify the dwc3_readl and dwc3_writel

Modify the dwc3_readl and dwc3_writel to calculate
the register offsets before invking the readl.
This patch is just a workaround to fix the issue
of raising an exception in the previous invokation
method.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Setup CONFIG_FIT/VERBOSE via defconfig
Michal Simek [Wed, 5 Aug 2015 13:18:53 +0000 (15:18 +0200)] 
ARM: zynqmp: Setup CONFIG_FIT/VERBOSE via defconfig

Do not hardcode setting which can be done via menuconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: Add cadence compatible string
Michal Simek [Wed, 5 Aug 2015 13:16:39 +0000 (15:16 +0200)] 
spi: Add cadence compatible string

Extend compatible list table for cdns,spi-r1p6 compatible string.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agofdt: Fix fdtdec_get_addr_size() for 64-bit
Thierry Reding [Thu, 23 Jul 2015 16:51:30 +0000 (10:51 -0600)] 
fdt: Fix fdtdec_get_addr_size() for 64-bit

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
10 years agofdt: armv8: Fix build warnings on armv8
Haikun Wang [Fri, 26 Jun 2015 11:56:40 +0000 (19:56 +0800)] 
fdt: armv8: Fix build warnings on armv8

Fix below build warnings on armv8,
drivers/spi/fsl_dspi.c: In function â€˜fsl_dspi_ofdata_to_platdata’:
drivers/spi/fsl_dspi.c:667:2:
warning: format â€˜%x’ expects argument of type â€˜unsigned int’,
but argument 2 has type â€˜fdt_addr_t’ [-Wformat=]
debug("DSPI: regs=0x%x, max-frequency=%d, endianess=%s, num-cs=%d\n",
    ^
lib/fdtdec.c: In function â€˜fdtdec_get_addr_size’:
lib/fdtdec.c:105:4:
warning: format â€˜%lx’ expects argument of type â€˜long unsigned int’,
but argument 3 has type â€˜fdt_size_t’ [-Wformat=]
debug("addr=%08lx, size=%08lx\n",
    ^

Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
Acked-by: Simon Glass <sjg@chromium.org>
10 years agospi: zynq_qspi: Move the zynq qspi driver to driver model
Siva Durga Prasad Paladugu [Mon, 3 Aug 2015 10:53:15 +0000 (16:23 +0530)] 
spi: zynq_qspi: Move the zynq qspi driver to driver model

Changes for the zynq qspi driver to support the SPI driver
model framework.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: zynq_spi: Simplify debug macro
Michal Simek [Tue, 21 Jul 2015 05:54:11 +0000 (07:54 +0200)] 
spi: zynq_spi: Simplify debug macro

Trivial fix.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: Fix typo in Makefile about custom ps7_init file
Michal Simek [Tue, 21 Jul 2015 09:05:31 +0000 (11:05 +0200)] 
zynq: Fix typo in Makefile about custom ps7_init file

Trivial fix.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoMerge tag 'v2015.07' into xilinx/master
Michal Simek [Wed, 5 Aug 2015 13:41:18 +0000 (15:41 +0200)] 
Merge tag 'v2015.07' into xilinx/master

Prepare v2015.07

- Use CONFIG_ARCH_ZYNQ instead of CONFIG_ZYNQ
- Enable DM for SPI and OF_CONTROL for Zynq
- Enable OF_EMBED by default for all Zynq boards and change SPL target
  for loading in MMC mode
- Add missing DTS files for Xilinx internal platforms
- Fix ahci_init parameter recasting for ZynqMP
- Fix board parameter setup for ZynqMP
- Remove config_cmd_default.h from ancient platforms
- Use microblaze-generic mainline configuration

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynqmp: Add platform specific arch_get_page_table
Michal Simek [Wed, 5 Aug 2015 05:50:16 +0000 (07:50 +0200)] 
ARM: zynqmp: Add platform specific arch_get_page_table

Based on the patch:
"armv8: caches: Added routine to set non cacheable region"
(sha1: dad17fd51027ad02ac8f02deed186d08109d61fd)
it is necessary to add platform specific hook.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoarmv8: Sync mmu_set_region_dcache_behaviour() with mainline
Michal Simek [Mon, 3 Aug 2015 11:09:28 +0000 (13:09 +0200)] 
armv8: Sync mmu_set_region_dcache_behaviour() with mainline

Based on our submission sync code with mainline.
Mainline patch:
"armv8: caches: Added routine to set non cacheable region"
(sha1: dad17fd51027ad02ac8f02deed186d08109d61fd)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agogem: zynqmp: Work with PHY on ep108
Michal Simek [Thu, 30 Jul 2015 12:37:22 +0000 (14:37 +0200)] 
gem: zynqmp: Work with PHY on ep108

There is not a problem to work with phy on RTL5.6 that's why remove this
code which fixed problems on previous RTLs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agocmd_mp: Add support for showing all CPU status by one command
Michal Simek [Mon, 22 Jun 2015 08:46:40 +0000 (10:46 +0200)] 
cmd_mp: Add support for showing all CPU status by one command

Use one command for showing overall CPU status than several without
knowing how many cpus is available in the system.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Sync config with mainline
Michal Simek [Thu, 30 Jul 2015 05:51:36 +0000 (07:51 +0200)] 
zynqmp: Sync config with mainline

Move one part of configuration below driver config.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: mini: Define config for ZynqMP mini support
Siva Durga Prasad Paladugu [Sat, 6 Jun 2015 09:38:16 +0000 (15:08 +0530)] 
zynqmp: mini: Define config for ZynqMP mini support

Define Config for ZynqMP mini to support flash utility.
The u-boot built with this would be used to support
zynqMP flash support to QSPI flash from SDK. This mini
refers to the size of u-boot which will fit in OCM.
Need to build as "make zynqmp_mini_qspi_config"

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable U-Boot run without ATF
Michal Simek [Wed, 29 Jul 2015 11:10:02 +0000 (13:10 +0200)] 
zynqmp: Enable U-Boot run without ATF

Enable Secure IOU setup to enable U-Boot to run without setting from
ATF.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Move QSPI and Nand configs to Kconfig
Siva Durga Prasad Paladugu [Sat, 6 Jun 2015 09:38:17 +0000 (15:08 +0530)] 
zynqmp: Move QSPI and Nand configs to Kconfig

Move QSPI and Nand configs to Kconfig
This will facilitate to define them in
def config as per requirement.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable uart dcc support for zynqmp
Siva Durga Prasad Paladugu [Sat, 6 Jun 2015 09:38:15 +0000 (15:08 +0530)] 
zynqmp: Enable uart dcc support for zynqmp

Enable uart dcc support for zynqmp if
CONFIG_FLASH_QSPI or CONFIG_FLASH_NAND
defined in config

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoKconfig: zynqMP: Move CONFIG_SYS_TEXT_BASE to defconfig
Siva Durga Prasad Paladugu [Sat, 6 Jun 2015 09:38:13 +0000 (15:08 +0530)] 
Kconfig: zynqMP: Move CONFIG_SYS_TEXT_BASE to defconfig

Move CONFIG_SYS_TEXT_BASE of ZynqMP_ep to defconfig
as per Kconfig to-do

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Define ep config for ZynqMP
Siva Durga Prasad Paladugu [Sat, 6 Jun 2015 09:38:12 +0000 (15:08 +0530)] 
zynqmp: Define ep config for ZynqMP

Define a new config "zynqmp_ep" for ZynqMP instead
of xilinx_zynqmp. This config supports all emulation
platforms of ZynqMP.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Kconfig: Move zynqmp Kconfig
Siva Durga Prasad Paladugu [Sat, 6 Jun 2015 09:38:11 +0000 (15:08 +0530)] 
zynqmp: Kconfig: Move zynqmp Kconfig

Move the zynqmp Kconfig from board to arch
as there may be different boards under same
architecture.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: dts: Sync DTSes with the latest kernel and U-Boot
Michal Simek [Wed, 29 Jul 2015 06:57:21 +0000 (08:57 +0200)] 
zynq: dts: Sync DTSes with the latest kernel and U-Boot

Update dtses.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoPrepare v2015.07 v2015.07
Tom Rini [Tue, 14 Jul 2015 17:32:21 +0000 (13:32 -0400)] 
Prepare v2015.07

Signed-off-by: Tom Rini <trini@konsulko.com>
10 years agoscsi: fix compiler warning with DEBUG and 48bit LBAs
Andre Przywara [Thu, 2 Jul 2015 00:04:23 +0000 (01:04 +0100)] 
scsi: fix compiler warning with DEBUG and 48bit LBAs

Commit 2b42c9317db ("ahci: support LBA48 data reads for 2+TB drives")
introduced conditional code which triggers a warning when compiled
with DEBUG enabled:

In file included from common/cmd_scsi.c:12:0:
common/cmd_scsi.c: In function 'scsi_read':
include/common.h:109:4: warning: 'smallblks' may be used uninitialized in this function [-Wmaybe-uninitialized]
...

Since this is for debug only, take the easy way and initialize the
variable explicitly on declaration to avoid the warning.
(Fix a nearby whitespace error on the way.)

Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Andre Przywara <osp@andrep.de>
10 years agoMerge git://git.denx.de/u-boot-samsung
Tom Rini [Fri, 10 Jul 2015 13:40:59 +0000 (09:40 -0400)] 
Merge git://git.denx.de/u-boot-samsung

10 years agoMerge git://git.denx.de/u-boot-marvell
Tom Rini [Fri, 10 Jul 2015 13:40:48 +0000 (09:40 -0400)] 
Merge git://git.denx.de/u-boot-marvell

10 years agomtd: fix false positive "Offset exceeds device limit" error
Masahiro Yamada [Wed, 1 Jul 2015 12:35:49 +0000 (21:35 +0900)] 
mtd: fix false positive "Offset exceeds device limit" error

Since commit 09c3280754f8 (mtd, nand: Move common functions from
cmd_nand.c to common place), NAND commands would not work at all
on large devices.

    => nand read 80000000 10000 10000

    NAND read: Offset exceeds device limit
    => nand erase 100000 100000

    NAND erase: Offset exceeds device limit

The type of the "size" of "struct mtd_info" is uint64_t, while
mtd_arg_off_size() and mtd_arg_off() treat chipsize as int type.
The chipsize is wrapped around if the argument is given with 2GB
or larger.

Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
10 years agoarm: mvebu: db-88f6820-gp: Add USB/EHCI support
Stefan Roese [Mon, 29 Jun 2015 12:58:16 +0000 (14:58 +0200)] 
arm: mvebu: db-88f6820-gp: Add USB/EHCI support

This patch enabled the USB/EHCI support for the Marvell
DB-88F6820-GP eval board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agousb: Add EHCI support for Armada 38x (mvebu)
Stefan Roese [Mon, 29 Jun 2015 12:58:15 +0000 (14:58 +0200)] 
usb: Add EHCI support for Armada 38x (mvebu)

This patch adds USB EHCI host support for the common mvebu platform.
Including the Armada 38x.

Tested on DB-88F6280-GP eval board.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agoarm: mvebu: db-88f6820-gp.h: Add SATA/SCSI (AHCI) support
Stefan Roese [Mon, 29 Jun 2015 12:58:14 +0000 (14:58 +0200)] 
arm: mvebu: db-88f6820-gp.h: Add SATA/SCSI (AHCI) support

Configure and enable the SATA/SCSI (AHCI) support for the Marvell
DB-88F6820-GP eval board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agoarm: mvebu: Add SATA/SCSI (AHCI) support for Armada A38x
Stefan Roese [Mon, 29 Jun 2015 12:58:13 +0000 (14:58 +0200)] 
arm: mvebu: Add SATA/SCSI (AHCI) support for Armada A38x

This patch adds support for the common AHCI controller on the Marvell
Armada 38x.

Tested on the Marvell DB-88F6820-GP eval board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agoblock: ahci: Don't enable port interrupts
Stefan Roese [Mon, 29 Jun 2015 12:58:12 +0000 (14:58 +0200)] 
block: ahci: Don't enable port interrupts

This patch changes the initialization of the AHCI controller to not
enable the default interrupts (DEF_PORT_IRQ). As interrupts are
not used in U-Boot in general, this should not break the common AHCI
driver operation.

This change is needed to support the Marvell Armada 38x AHCI
controller. With interrupts enabled, this results in timeouts in
ahci_device_data_io(). Not enabling these interrupts fixes this
problem and the common AHCI driver works fine.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agoarm: mvebu: db-88f6820-gp: Add MMC/SDIO support
Stefan Roese [Mon, 29 Jun 2015 12:58:11 +0000 (14:58 +0200)] 
arm: mvebu: db-88f6820-gp: Add MMC/SDIO support

This patch adds MMC/SDIO support to the Marvell DB-88F6820-GP board
configuration. Including support for the common partitions and
filesystems.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agoarm: mvebu: Add SDIO/SDHCI support for Armada A38x
Stefan Roese [Mon, 29 Jun 2015 12:58:10 +0000 (14:58 +0200)] 
arm: mvebu: Add SDIO/SDHCI support for Armada A38x

Armada A38x implements an SDHCI compatible SDIO controller. This patch
enables the Marvell driver to support this SoC. And enables the
SDIO controller if selected by the board configuration.

Tested on Marvell DB-88F6820-GP board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agommc: sdhci.c: Add config option to use a fixed buffer for transfers
Stefan Roese [Mon, 29 Jun 2015 12:58:09 +0000 (14:58 +0200)] 
mmc: sdhci.c: Add config option to use a fixed buffer for transfers

While implementing SDIO/MMC SPL booting for the Marvell Armada 38x, the
following problem occured. The SPL runs in internal SRAM which is
the L2 cache locked to memory. When the MMC buffers now are located
on the stack (or bss), the SDIO controller (SDHCI) can't write into
this L2 cache memory.

This patch introduces a method to use a fixed buffer that will be
used for all transfers by defining CONFIG_FIXED_SDHCI_ALIGNED_BUFFER.
This way, the board can use this buffer address located in SDRAM
for all transfers. This solves this SPL problem on the A38x and
should only be used in the SPL U-Boot version.

Tested for SPL booting on Marvell Armada 38x DB-88F6820-GP board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agommc: sdhci: Use timer based timeout detection in sdhci_send_command()
Stefan Roese [Mon, 29 Jun 2015 12:58:08 +0000 (14:58 +0200)] 
mmc: sdhci: Use timer based timeout detection in sdhci_send_command()

The loop counter based timeout detection does not work on the Armada
38x based board (DB-88F6820-GP). At least with dcache enabled a
timeout is detected. Without dcache enabled, the timeout does not
occur. Increasing the loop counter solves this issue. But a better
solution is to use a timer based timeout detection instead. This
patch now implements this timer based detection.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
10 years agoarm: mvebu: db-88f6820-gp: Add MAINTAINERS file
Stefan Roese [Wed, 1 Jul 2015 15:38:05 +0000 (17:38 +0200)] 
arm: mvebu: db-88f6820-gp: Add MAINTAINERS file

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
10 years agoexynos: i2c: Correct bug in pinmux selection
Simon Glass [Fri, 3 Jul 2015 00:15:44 +0000 (18:15 -0600)] 
exynos: i2c: Correct bug in pinmux selection

When driver model is not used the current code does not correctly select
the pinmux for the I2C bus. This bug was introduced by this commit:

8dfcbaa dm: i2c: s3c24x0: adjust to dm-i2c api

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
10 years agoarm: adds the status info for odroid-xu3
Minkyu Kang [Thu, 2 Jul 2015 01:27:48 +0000 (10:27 +0900)] 
arm: adds the status info for odroid-xu3

Adds the 'F:' entry for the board's defconfig

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
10 years agoahci: Fix compiling warnings under 64bit platforms
Tang Yuantian [Thu, 9 Jul 2015 06:37:30 +0000 (14:37 +0800)] 
ahci: Fix compiling warnings under 64bit platforms

When compling under 64bit platforms, there are lots of warnings,
like:

drivers/block/ahci.c:114:18: warning: cast to pointer from integer
 of different size [-Wint-to-pointer-cast]
  u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio;
                  ^
drivers/block/ahci.c: In function ?.hci_host_init?.
drivers/block/ahci.c:218:49: warning: cast from pointer to integer
 of different size [-Wpointer-to-int-cast]
   probe_ent->port[i].port_mmio = ahci_port_base((u32) mmio, i);

......

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
10 years agoarm: baltos: change USB ports functions
Yegor Yefremov [Thu, 9 Jul 2015 11:34:24 +0000 (13:34 +0200)] 
arm: baltos: change USB ports functions

Baltos has USB0 connected to a USB hub and thus is host-only. USB1
is connected to microUSB connector and thus should use OTG mode.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
10 years agokeystone2: config: update default mtd
Michael Scherban [Fri, 26 Jun 2015 14:17:31 +0000 (09:17 -0500)] 
keystone2: config: update default mtd

Because it is possible for the MTD number to change, causing a
filesystem mount failure, we should use the volume name instead
of the MTD number and let Linux resolve the correct one.

Signed-off-by: Mike Scherban <m-scherban@ti.com>
10 years agostm32f4: fix gpio description in comment
Antonio Borneo [Wed, 1 Jul 2015 08:04:14 +0000 (16:04 +0800)] 
stm32f4: fix gpio description in comment

On STM32F429 gpio PC6/PC7 can be allocated for USART6, as
reported in the comment.
But current code in
drivers/serial/serial_stm32.c
uses a different gpio mapping (PG14/PG9) for USART6.

Fix the comment to match current code in the driver.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
To: u-boot@lists.denx.de
To: Kamil Lulko <rev13@wp.pl>
Cc: Tom Rini <trini@konsulko.com>
10 years agostm32f4: fix minor typo in comment
Antonio Borneo [Wed, 1 Jul 2015 06:15:03 +0000 (14:15 +0800)] 
stm32f4: fix minor typo in comment

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
To: u-boot@lists.denx.de
To: Kamil Lulko <rev13@wp.pl>
Cc: Tom Rini <trini@konsulko.com>
10 years agostm32f4: fix MAINTAINERS file
Antonio Borneo [Wed, 1 Jul 2015 06:15:02 +0000 (14:15 +0800)] 
stm32f4: fix MAINTAINERS file

When "scripts/get_maintainer.pl" parses "board/.../MAINTAINERS",
it uses the line containing board name as delimiter.
Without this line, the script happily mixes the lines from current
board MAINTAINERS file with lines from another file.

Fix it by adding a reasonable board name.

Tested by comparing output of:
cat board/st/stm32f429-discovery/MAINTAINERS
./scripts/get_maintainer.pl -f board/st/stm32f429-discovery

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
To: u-boot@lists.denx.de
To: Kamil Lulko <rev13@wp.pl>
Cc: Tom Rini <trini@konsulko.com>
10 years agosiemens,am33x: adjust mtd partition
Egli, Samuel [Wed, 1 Jul 2015 15:57:39 +0000 (17:57 +0200)] 
siemens,am33x: adjust mtd partition

Use one mtd partition for rootfs and configuration by
means of ubi volumes and get rid of configuration partition.
We can use partition layout for both 256MB and 512MB flash.

Signed-off-by: Samuel Egli <samuel.egli@siemens.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Roger Meier <r.meier@siemens.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Heiko Schocher <hs@denx.de>
10 years agoarm: baltos: fix NAND boot
Yegor Yefremov [Mon, 6 Jul 2015 15:28:36 +0000 (17:28 +0200)] 
arm: baltos: fix NAND boot

Specify proper U-Boot offset, enable prefetch mode,
increase bootm size and add FIT fallback, if board_name
is not present in kernel-fit.itb image.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
10 years agoarm: baltos: drop I2C speed to 1000 Hz
Yegor Yefremov [Mon, 6 Jul 2015 15:28:35 +0000 (17:28 +0200)] 
arm: baltos: drop I2C speed to 1000 Hz

This action is need to make I2C communication with PMIC
stable for low temperature. Print current I2C speed in
SPL for visual control.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
10 years agoarm: baltos: enable CMD_NET and FIT support in defconfig
Yegor Yefremov [Mon, 6 Jul 2015 15:28:34 +0000 (17:28 +0200)] 
arm: baltos: enable CMD_NET and FIT support in defconfig

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
10 years agoarm: convert am3517_crane and am3517_evm to generic boards
Yegor Yefremov [Tue, 30 Jun 2015 07:59:47 +0000 (09:59 +0200)] 
arm: convert am3517_crane and am3517_evm to generic boards

Add CONFIG_SYS_GENERIC_BOARD to board's config header.

Boot-tested on am3517_evm board.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
10 years agoARM: beagle_x15: prevent DCAN1 _wait_target_disable failure in kernel
Roger Quadros [Thu, 25 Jun 2015 07:25:50 +0000 (10:25 +0300)] 
ARM: beagle_x15: prevent DCAN1 _wait_target_disable failure in kernel

If board is booted with transitions happening on DCAN1 pins then
the following warning is seen in the kernel at boot when the
hwmod layer initializes.

"omap_hwmod: dcan1: _wait_target_disable failed"

This is because DCAN1 module's SWAKEUP mechanism is broken
and it fails to correctly turn OFF if it sees a transition on the
DCAN1 pins. Suggested workaround is to keep DCAN1 pins in safe mode
while enabling/disabling DCAN1 module.

The hwmod layer enables and disables all modules at boot
and we have no opportunity to put the DCAN1 pins in safe mode
at that point.

DCAN1 is not used by u-boot so it doesn't matter to it if these
pins are in safe mode. The kernel driver correctly configures
the right mode when DCAN1 is active.

Signed-off-by: Roger Quadros <rogerq@ti.com>
[trini: s/PULLUP/PULL_UP/ based on DRA7xx EVM version of this patch]
Signed-off-by: Tom Rini <trini@konsulko.com>
10 years agoARM: DRA7-evm: prevent DCAN1 _wait_target_disable failure in kernel
Roger Quadros [Wed, 24 Jun 2015 14:00:11 +0000 (17:00 +0300)] 
ARM: DRA7-evm: prevent DCAN1 _wait_target_disable failure in kernel

If board is booted with transitions happening on DCAN1 pins then
the following warning is seen in the kernel at boot when the
hwmod layer initializes.

"omap_hwmod: dcan1: _wait_target_disable failed"

This is because DCAN1 module's SWAKEUP mechanism is broken
and it fails to correctly turn OFF if it sees a transition on the
DCAN1 pins. Suggested workaround is to keep DCAN1 pins in safe mode
while enabling/disabling DCAN1 module.

The hwmod layer enables and disables all modules at boot
and we have no opportunity to put the DCAN1 pins in safe mode
at that point.

DCAN1 is not used by u-boot so it doesn't matter to it if these
pins are in safe mode. The kernel driver correctly configures
the right mode when DCAN1 is active.

Signed-off-by: Roger Quadros <rogerq@ti.com>
10 years agoMakefile:Add GCC flag -fno-delete-null-pointer-checks
Prabhakar Kushwaha [Thu, 2 Jul 2015 06:30:17 +0000 (12:00 +0530)] 
Makefile:Add GCC flag -fno-delete-null-pointer-checks

-fdelete-null-pointer-checks flag controls global dataflow analyses and
eliminate useless checks for null pointers; It assume that if a pointer is
checked after it has already been dereferenced, it cannot be null.
This flag is enabled by default.

gcc v4.9 has more optimizations added to this option. Hence it is very
aggressive with GCC v4.9 series. Add -fno-delete-null-pointer-checks to
disable the optimization

Signed-off-by: Rohit Dharmakan <rohitarulraj@freescale.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>