]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
9 years agozynqmp: Don't hardcode bootargs
Soren Brinkmann [Tue, 8 Dec 2015 15:53:11 +0000 (07:53 -0800)] 
zynqmp: Don't hardcode bootargs

ZynqMP uses devicetree, which allows specifying the kernel
command line in a flexible way. Don't hardcode it in U-Boot.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Acked-by: Sai Pavan Boddu <saipava@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: zynqpl: Extend the zynqaes command
Siva Durga Prasad Paladugu [Wed, 9 Dec 2015 13:16:44 +0000 (18:46 +0530)] 
fpga: zynqpl: Extend the zynqaes command

Extend the zynqaes command to have separate
commands for encrypted bitstream load support.
This patch adds two new commands "zynqaes load"
and "zynqaes loadp" to load encrypted full and partial
bitstreams respectively.
The full bistream load which was supported earlier using
"zynqaes" command is now deprcated and same can be done using
"zynqaes load" command.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: zynqpl: Correct PL bitstream loading sequence for zynqaes
Siva Durga Prasad Paladugu [Wed, 9 Dec 2015 13:16:43 +0000 (18:46 +0530)] 
fpga: zynqpl: Correct PL bitstream loading sequence for zynqaes

Correct the PL bitstream loading sequence for zynqaes command by
clearing the loaded PL bitstream before loading the new encrypted
bitstream using the zynq aes command. This was done by setting
the PROG_B same as in case of fpgaload commands.
This patch fixes the issue of loading the encrypted PL bitstream
onto the PL in which a bitstream has already been loaded
succesfully.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: Add bitstream type BIT_NONE
Siva Durga Prasad Paladugu [Wed, 9 Dec 2015 13:16:42 +0000 (18:46 +0530)] 
fpga: Add bitstream type BIT_NONE

Add bitstream type BIT_NONE to the bitstream type
enum. This might be useful while loading bitstreams
in respective drivers.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodts: zynq: cse_qspi: Modify zynq cse qspi dts file
Siva Durga Prasad Paladugu [Wed, 9 Dec 2015 10:13:31 +0000 (15:43 +0530)] 
dts: zynq: cse_qspi: Modify zynq cse qspi dts file

Modify the zynq cse qspi dts file  by removing
the unrequired devices from it. This change is
to reduce the size required for dtb blob to run
u-boot from OCM

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoMerge tag 'v2015.10' into xilinx/master
Michal Simek [Mon, 7 Dec 2015 10:22:14 +0000 (11:22 +0100)] 
Merge tag 'v2015.10' into xilinx/master

Prepare v2015.10

- Fix defconfig
- Fix qspi support for cc108
- Enable NET_RANDOM_ETHADDR for mainline boards
- Fix USB GADGET and LTHOR macros

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agocommon: board: Update fdt_blob after relocation
Siva Durga Prasad Paladugu [Thu, 3 Dec 2015 11:23:44 +0000 (16:53 +0530)] 
common: board: Update fdt_blob after relocation

Update fdt_blob after relocation incase of CONFIG_OF_EMBED
as the fdt will be copied during u-boot relocation
updating it before relocation may cause issue with some
devices if they try to use it before it actually relocated

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq_cse: qspi: Modify SDRAM_BASE and TEXT_BASE for cse qspi
Siva Durga Prasad Paladugu [Thu, 3 Dec 2015 12:27:25 +0000 (17:57 +0530)] 
zynq_cse: qspi: Modify SDRAM_BASE and TEXT_BASE for cse qspi

Correct the SDRAM_BASE and update the TEXT_BASE to point
to OCM start address.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoconfig: zynq_cse: Remove unnecessary configs for zynq cse qspi
Siva Durga Prasad Paladugu [Thu, 3 Dec 2015 12:27:24 +0000 (17:57 +0530)] 
config: zynq_cse: Remove unnecessary configs for zynq cse qspi

Removed unnecessary configs for zynq cse. This
will decrease the size of the image so that it
can fit to OCM easily.Also, decrease malloc
and console buffer size to reduce the size.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynq: Remove zc70x target
Michal Simek [Fri, 30 Oct 2015 14:05:54 +0000 (15:05 +0100)] 
ARM: zynq: Remove zc70x target

Remove zc70x target which was one setting for zc702 and zc706.
Currently zc702 and zc706 are separated.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
10 years agonet: gem: Sync driver with mainline
Michal Simek [Thu, 26 Nov 2015 09:34:41 +0000 (10:34 +0100)] 
net: gem: Sync driver with mainline

Fix one comment, remove unused macro and remove inline from
wait_for_bit.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Sync pointer conversions with mainline
Michal Simek [Thu, 26 Nov 2015 09:30:50 +0000 (10:30 +0100)] 
net: gem: Sync pointer conversions with mainline

"driver: net: Fix pointer conversion warnings for xilinx_zynqmp_ep"
(sha1: 5b47d407e477b9995127aacca2d9a4665e2fde23)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Define descriptors via macro
Michal Simek [Thu, 12 Nov 2015 12:59:56 +0000 (13:59 +0100)] 
net: gem: Define descriptors via macro

Sync up with mainline where location of dummy BDs is defined by macro.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Use the same U-Boot version with/without ATF
Michal Simek [Thu, 5 Nov 2015 07:34:35 +0000 (08:34 +0100)] 
ARM64: zynqmp: Use the same U-Boot version with/without ATF

Remove SECURE_IOU option which is not needed. U-Boot itself can detect
which EL level it is on and based on that use do platform setup.
It also simplify usage because one Kconfig entry is gone.

Note(from Siva): iou_scntr_secure->base_frequency_id_register
needs to programmed with clock-in value for time stamp counter not the
one hardcoded in the routine(zynqmp_get_system_timer_freq()) above.
This may vary based on psu_init.
Note(from Michal): This is more wider problem because the similar code
is in ATF and this needs to be solved in PCW.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: sdhci: Calculate minimum frequency based on max frequency
Siva Durga Prasad Paladugu [Wed, 25 Nov 2015 06:21:37 +0000 (11:51 +0530)] 
zynq: sdhci: Calculate minimum frequency based on max frequency

Calculate the minimum sd clock based on max clock. This will
be done by add_sdhci() if we pass minimum clock as zero.
It also does based on SD host contoller version.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agomicroblaze: Do not compile CMD_GPIO when driver is missing
Michal Simek [Tue, 24 Nov 2015 12:30:21 +0000 (13:30 +0100)] 
microblaze: Do not compile CMD_GPIO when driver is missing

Do not compile CMD_GPIO when GPIO driver is not enabled.
It is causing compilation error.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodts: zynqmp: mini: Create separate dts file for zynqmp mini
Siva Durga Prasad Paladugu [Thu, 19 Nov 2015 10:00:47 +0000 (15:30 +0530)] 
dts: zynqmp: mini: Create separate dts file for zynqmp mini

Create a separate dts file for zynqmp mini qspi as we dont
need all peripherals. This saves the memory.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agocommon: board_f: Dont relocate FDT incase of CONFIG_OF_EMBED
Siva Durga Prasad Paladugu [Thu, 19 Nov 2015 10:00:46 +0000 (15:30 +0530)] 
common: board_f: Dont relocate FDT incase of CONFIG_OF_EMBED

Done relocate fdt incase of CONFIG_OF EMBED as the fdt is
already embedded with u-boot image. Also update the fdt_blob
correctly in this case

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: mini: Remove unnecessary configs for mini
Michal Simek [Thu, 19 Nov 2015 10:00:45 +0000 (15:30 +0530)] 
zynqmp: mini: Remove unnecessary configs for mini

Removed unnecessary configs for mini qspi. This
will decrease the size of the image so that it
can fit to OCM easily.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: dt: DC1: making compatible string generic for qspi node
Ranjit Waghmode [Fri, 30 Oct 2015 08:56:11 +0000 (14:26 +0530)] 
zynqmp: dt: DC1: making compatible string generic for qspi node

This patch makes compatible string as "m25p80" for qspi node in
DC1 device tree file.

Signed-off-by: Ranjit Waghmode <ranjit.waghmode@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: dt: zcu102: making compatible string generic for qspi node
Ranjit Waghmode [Fri, 30 Oct 2015 08:53:20 +0000 (14:23 +0530)] 
zynqmp: dt: zcu102: making compatible string generic for qspi node

This patch makes compatible string as "m25p80" for qspi node in
zcu102 device tree file.

Signed-off-by: Ranjit Waghmode <ranjit.waghmode@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Set factory-fout of si570_1 to 300MHz on ZCU102
Michal Simek [Fri, 6 Nov 2015 09:58:55 +0000 (10:58 +0100)] 
ARM64: zynqmp: Set factory-fout of si570_1 to 300MHz on ZCU102

Change freq to reflect default setting.

Reported-by: Chris Kohn <ckohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Remove maximum-speed property as it is not needed
Subbaraya Sundeep Bhatta [Fri, 6 Nov 2015 06:11:11 +0000 (11:41 +0530)] 
ARM64: zynqmp: Remove maximum-speed property as it is not needed

If maximum-speed is not specified in dts controller defaults
to super speed. Super speed can fall back to any other speed
based on speed negotiation.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Make USB0 controller to work in host mode
Subbaraya Sundeep Bhatta [Fri, 6 Nov 2015 06:10:57 +0000 (11:40 +0530)] 
ARM64: zynqmp: Make USB0 controller to work in host mode

Make host mode as default for USB0 controller.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: dwc3: Fix issue with dwc3_readl and dwc3_writel
Siva Durga Prasad Paladugu [Fri, 6 Nov 2015 10:16:26 +0000 (15:46 +0530)] 
usb: dwc3: Fix issue with dwc3_readl and dwc3_writel

This patch fixes the issue with dwc3_readl and dwc3_writel
The issue was not rootcaused yet and hence adding temporary
hack by reverting the part of the patch with below commit ID
"b2f6b30ab757cf84f03d577cad936f0d2fb25091"

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Fix bootmode SD_MODE1
Michal Simek [Fri, 6 Nov 2015 09:22:37 +0000 (10:22 +0100)] 
ARM64: zynqmp: Fix bootmode SD_MODE1

When only sdhci1 IP is enabled and SD_MODE1 bootmode is selected
U-Boot using sdboot1 variable which refers to mmc dev 1.
But this device doesn't exist because only one controller is available.

This patch fix logic around sdboot mode with using sdbootdev internal
variable.

Reported-by: Chris Kohn <ckohn@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add missing nand node for ep108
Punnaiah Choudary Kalluri [Thu, 5 Nov 2015 16:51:14 +0000 (22:21 +0530)] 
ARM64: zynqmp: Add missing nand node for ep108

Add missing nand node for ep108.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add DT properties for TI phy for zcu102
Michal Simek [Fri, 6 Nov 2015 08:23:02 +0000 (09:23 +0100)] 
ARM64: zynqmp: Add DT properties for TI phy for zcu102

Add missing TI phy properties which are required for phy to be probed
properly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: DC5: Add support for XM019 DC5
Siva Durga Prasad Paladugu [Thu, 5 Nov 2015 12:37:26 +0000 (18:07 +0530)] 
zynqmp: DC5: Add support for XM019 DC5

Add initial support for zc1751 xm019 dc5
support. It has GEM1 and SD0 enabled.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Setup correct COUNTER_FREQUENCY for silicon
Michal Simek [Thu, 5 Nov 2015 07:32:14 +0000 (08:32 +0100)] 
zynqmp: Setup correct COUNTER_FREQUENCY for silicon

When U-Boot runs from EL3 system timer is setup based on this macro.
Software default freq for silicon is 100MHz but enable opton to rewrite
it. Emulation platform is using 4MHz.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Use correct indentation in phy node
Michal Simek [Thu, 5 Nov 2015 07:51:04 +0000 (08:51 +0100)] 
ARM64: zynqmp: Use correct indentation in phy node

Fix all incorrect indentation in phy node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Correct the watchdog timer interrupt number
Punnaiah Choudary Kalluri [Wed, 4 Nov 2015 07:04:17 +0000 (12:34 +0530)] 
ARM64: zynqmp: Correct the watchdog timer interrupt number

Corrected the watchdog timer interrupt number.
Origin value was for CSUPMU watchdog.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: DT: Fix UART compatible string
Soren Brinkmann [Wed, 4 Nov 2015 19:18:09 +0000 (11:18 -0800)] 
ARM64: zynqmp: DT: Fix UART compatible string

ZynqMP has r1p12 not r1p8. r1p12 contains break detection support.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Move kernel and fdt offsets and sizes to board config file
Siva Durga Prasad Paladugu [Mon, 2 Nov 2015 14:15:35 +0000 (19:45 +0530)] 
zynqmp: Move kernel and fdt offsets and sizes to board config file

Move kernel and fdt offsets and sizes to board config file
as the flash size varies across boards

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoqspi: zynqmp: Write baud rate divisor to config register
Siva Durga Prasad Paladugu [Tue, 3 Nov 2015 07:31:44 +0000 (13:01 +0530)] 
qspi: zynqmp: Write baud rate divisor to config register

Write the calculated baud rate divisor to config register
the baud rate divisor is calculated based on frequency
provided as a part of argument during sf probe

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoqspi: zynqmp: Handle dma separately from zynqmp_qspi_genfifo_fill_rx
Siva Durga Prasad Paladugu [Thu, 29 Oct 2015 09:44:01 +0000 (15:14 +0530)] 
qspi: zynqmp: Handle dma separately from zynqmp_qspi_genfifo_fill_rx

Define zynqmp_qspi_start_dma() to handle dma during
qspi rx. The also solves the issue of stack corruption
if prints were enabled in driver.
The stack corruption is due to buffer allocated in else
part using ALLOC_CACHE_ALIGN_BUFFER and using that buffer
outside else part which will cause stack corruption as the
ALLOC_CACHE_ALIGN_BUFFER allocates buffer from stack.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoqspi: zynqmp: Poll for generic fifo empty
Siva Durga Prasad Paladugu [Thu, 29 Oct 2015 06:30:18 +0000 (12:00 +0530)] 
qspi: zynqmp: Poll for generic fifo empty

Poll for generic fifo empty before filling
the new generic fifo entry.
This fixes the issue of intermittent erase
write failures.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: probe: Clear 4byte support if flash size is < 16MiB
Siva Durga Prasad Paladugu [Thu, 29 Oct 2015 06:30:17 +0000 (12:00 +0530)] 
sf: probe: Clear 4byte support if flash size is < 16MiB

Clear 4byte support if flash size is < 16MiB even though
the driver support 4 byte mode.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: probe: Handle flash size properly incase of dual parallel
Siva Durga Prasad Paladugu [Thu, 29 Oct 2015 06:30:16 +0000 (12:00 +0530)] 
sf: probe: Handle flash size properly incase of dual parallel

Handle flash size properly incase of dual parallel
The flash size has to be divided by 2 while checking
the flash size to enter 4byte mode and for bank
selection during init.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM: zynq: Linux adv7511 on i2c bus
Michal Simek [Mon, 26 Oct 2015 12:06:08 +0000 (13:06 +0100)] 
ARM: zynq: Linux adv7511 on i2c bus

Add missing adv7511 connected to the second pca9548 channel.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Adding DT node for Xilinx NWL PCIe Host Controller
Bharat Kumar Gogada [Tue, 27 Oct 2015 13:38:14 +0000 (19:08 +0530)] 
ARM64: zynqmp: Adding DT node for Xilinx NWL PCIe Host Controller

Adding PCIe Root Port driver node for Xilinx PCIe NWL bridge IP.

Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: ZynqMP: DT: Add PM firmware node
Soren Brinkmann [Wed, 28 Oct 2015 22:56:58 +0000 (15:56 -0700)] 
ARM64: ZynqMP: DT: Add PM firmware node

Add node for the power management firmware.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: Add declaration for spi_flash_cmd_bp_unlock
Michal Simek [Wed, 28 Oct 2015 16:03:59 +0000 (17:03 +0100)] 
spi: Add declaration for spi_flash_cmd_bp_unlock

This patch removes compilation warning:
+../drivers/mtd/spi/sf_probe.c: In function
'spi_flash_validate_params':
+../drivers/mtd/spi/sf_probe.c:402:3: warning: implicit declaration of
function 'spi_flash_cmd_bp_unlock' [-Wimplicit-function-declaration]

Also add missing flash parameter:
+../drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
+../drivers/mtd/spi/sf_probe.c:402:3: error: too few arguments to
function 'spi_flash_cmd_bp_unlock'
+   ret = spi_flash_cmd_bp_unlock();

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: udc: Fix warnings on 64-bit builds
Michal Simek [Wed, 28 Oct 2015 15:49:44 +0000 (16:49 +0100)] 
usb: udc: Fix warnings on 64-bit builds

Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid
pointer from integer cast size mismatch warnings.

Warning log:
+../drivers/usb/gadget/udc/udc-core.c: In function
‘usb_gadget_unmap_request’:
+../drivers/usb/gadget/udc/udc-core.c:68:19: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Build warning fixes for 64-bit
Michal Simek [Wed, 28 Oct 2015 15:27:06 +0000 (16:27 +0100)] 
net: gem: Build warning fixes for 64-bit

Cast pointers to unsigned long instead of a sized 32-bit type to avoid
pointer to integer cast size mismatch warnings.

Warning log:
drivers/net/zynq_gem.c: In function â€˜zynq_gem_init’:
drivers/net/zynq_gem.c:354:7: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
      ((u32)(priv->rxbuffers) +
       ^
In file included from drivers/net/zynq_gem.c:19:0:
drivers/net/zynq_gem.c:360:10: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   writel((u32)priv->rx_bd, &regs->rxqbase);
          ^
./arch/arm/include/asm/io.h:146:34: note: in definition of macro
‘writel’
 #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v;
})
                                  ^
drivers/net/zynq_gem.c:385:10: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   writel((u32)dummy_tx_bd, &regs->transmit_q1_ptr);
          ^
./arch/arm/include/asm/io.h:146:34: note: in definition of macro
‘writel’
 #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v;
})
                                  ^
drivers/net/zynq_gem.c:386:10: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   writel((u32)dummy_rx_bd, &regs->receive_q1_ptr);
          ^
./arch/arm/include/asm/io.h:146:34: note: in definition of macro
‘writel’
 #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v;
})
                                  ^
drivers/net/zynq_gem.c: In function â€˜zynq_gem_send’:
drivers/net/zynq_gem.c:487:22: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  priv->tx_bd->addr = (u32)ptr;
                      ^
In file included from drivers/net/zynq_gem.c:19:0:
drivers/net/zynq_gem.c:497:9: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  writel((u32)priv->tx_bd, &regs->txqbase);
         ^
./arch/arm/include/asm/io.h:146:34: note: in definition of macro
‘writel’
 #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v;
})
                                  ^
drivers/net/zynq_gem.c:499:9: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  addr = (u32) ptr;
         ^
drivers/net/zynq_gem.c:504:9: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  addr = (u32)priv->rxbuffers;
         ^
drivers/net/zynq_gem.c: In function â€˜zynq_gem_recv’:
drivers/net/zynq_gem.c:543:31: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   net_process_received_packet((u8 *)addr, frame_len);
                               ^
drivers/net/zynq_gem.c: In function â€˜zynq_gem_initialize’:
drivers/net/zynq_gem.c:622:35: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  priv->rx_bd = (struct emac_bd *)((u32)bd_space + BD_SEPRN_SPACE);
                                   ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoqspi: zynqmp: Build warning fixes for 64-bit
Michal Simek [Wed, 28 Oct 2015 15:22:38 +0000 (16:22 +0100)] 
qspi: zynqmp: Build warning fixes for 64-bit

Cast pointers to unsigned long instead of a sized 32-bit type to avoid
pointer to integer cast size mismatch warnings.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: dwc3: Fix warnings on 64-bit builds
Michal Simek [Wed, 28 Oct 2015 15:00:38 +0000 (16:00 +0100)] 
usb: dwc3: Fix warnings on 64-bit builds

Change aritmentics to use 64bit types to be compatible with 64bit
builds.

Compilation warnings:
drivers/usb/dwc3/ep0.c: In function â€˜dwc3_ep0_start_trans’:
drivers/usb/dwc3/ep0.c:85:19: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  dwc3_flush_cache((int)trb, sizeof(*trb));
                   ^
drivers/usb/dwc3/gadget.c: In function â€˜dwc3_prepare_one_trb’:
drivers/usb/dwc3/gadget.c:775:19: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
  dwc3_flush_cache((int)trb, sizeof(*trb));
                   ^
drivers/usb/dwc3/core.c: In function â€˜dwc3_setup_scratch_buffers’:
drivers/usb/dwc3/core.c:284:19: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
  dma_unmap_single((void *)dwc->scratch_addr, dwc->nr_scratch *
                   ^
drivers/usb/dwc3/core.c: In function â€˜dwc3_free_scratch_buffers’:
drivers/usb/dwc3/core.c:299:19: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
  dma_unmap_single((void *)dwc->scratch_addr, dwc->nr_scratch *
                   ^
drivers/usb/dwc3/core.c: In function â€˜dwc3_uboot_init’:
drivers/usb/dwc3/core.c:632:14: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
  dwc->regs = (int *)(dwc3_dev->base + DWC3_GLOBALS_REGS_START);
              ^
drivers/usb/dwc3/ep0.c: In function â€˜dwc3_ep0_complete_data’:
drivers/usb/dwc3/ep0.c:793:19: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
  dwc3_flush_cache((int)trb, sizeof(*trb));
                   ^
drivers/usb/dwc3/ep0.c:824:21: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
    dwc3_flush_cache((int)trb, sizeof(*trb));
                     ^
drivers/usb/dwc3/ep0.c:834:20: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
   dwc3_flush_cache((int)dwc->ep0_bounce, DWC3_EP0_BOUNCE_SIZE);
                    ^
  CC      lib/display_options.o
drivers/usb/dwc3/gadget.c: In function â€˜dwc3_cleanup_done_reqs’:
drivers/usb/dwc3/gadget.c:1772:19: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
  dwc3_flush_cache((int)trb, sizeof(*trb));
                   ^
drivers/usb/dwc3/gadget.c: In function
‘dwc3_gadget_uboot_handle_interrupt’:
drivers/usb/dwc3/gadget.c:2673:21: warning: cast from pointer to integer
of different size [-Wpointer-to-int-cast]
    dwc3_flush_cache((int)evt->buf, evt->length);
                     ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: xhci-zynqmp: Fix incorrect recasting
Michal Simek [Wed, 28 Oct 2015 14:55:50 +0000 (15:55 +0100)] 
usb: xhci-zynqmp: Fix incorrect recasting

This patch fix these compatilation warnings:
drivers/usb/host/xhci-zynqmp.c: In function â€˜xhci_hcd_init’:
  LD      drivers/dfu/built-in.o
drivers/usb/host/xhci-zynqmp.c:98:31: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
  *hcor = (struct xhci_hcor *)((uint32_t) *hccr
                               ^
drivers/usb/host/xhci-zynqmp.c:98:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
  *hcor = (struct xhci_hcor *)((uint32_t) *hccr
          ^
In file included from drivers/usb/host/xhci-zynqmp.c:13:0:
drivers/usb/host/xhci-zynqmp.c:102:8: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
        (uint32_t)*hccr, (uint32_t)*hcor,
        ^
include/common.h:109:26: note: in definition of macro â€˜debug_cond’
    printf(pr_fmt(fmt), ##args); \
                          ^
drivers/usb/host/xhci-zynqmp.c:101:2: note: in expansion of macro
‘debug’
  debug("zynqmp-xhci: init hccr %x and hcor %x hc_length %d\n",
  ^
drivers/usb/host/xhci-zynqmp.c:102:25: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
        (uint32_t)*hccr, (uint32_t)*hcor,
                         ^
include/common.h:109:26: note: in definition of macro â€˜debug_cond’
    printf(pr_fmt(fmt), ##args); \
                          ^
drivers/usb/host/xhci-zynqmp.c:101:2: note: in expansion of macro
‘debug’
  debug("zynqmp-xhci: init hccr %x and hcor %x hc_length %d\n",
  ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agousb: lthor: Specify correct parameter for sizeof type
Michal Simek [Wed, 28 Oct 2015 14:51:21 +0000 (15:51 +0100)] 
usb: lthor: Specify correct parameter for sizeof type

This patch removes this warning:
  CC      drivers/usb/gadget/f_thor.o
drivers/usb/gadget/f_thor.c: In function â€˜thor_tx_data’:
drivers/usb/gadget/f_thor.c:572:2: warning: format â€˜%d’ expects argument
of type â€˜int’, but argument 4 has type â€˜long unsigned int’ [-Wformat=]
  debug("%s: dev->in_req->length:%d to_cpy:%d\n", __func__,
  ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodfu: Fix Specify correct parameter for sizeof type
Michal Simek [Wed, 28 Oct 2015 12:04:30 +0000 (13:04 +0100)] 
dfu: Fix Specify correct parameter for sizeof type

Warning log:
drivers/dfu/dfu.c: In function â€˜dfu_write’:
drivers/dfu/dfu.c:201:2: warning: format â€˜%x’ expects argument of type
‘unsigned int’, but argument 8 has type â€˜long int’ [-Wformat=]
  debug("%s: name: %s buf: 0x%p size: 0x%x p_num: 0x%x offset: 0x%llx
bufoffset: 0x%x\n",
  ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agospi: zynqmp: Remove unused variables
Michal Simek [Wed, 28 Oct 2015 10:09:25 +0000 (11:09 +0100)] 
spi: zynqmp: Remove unused variables

This patch remove compilation warnings:
drivers/spi/zynqmp_qspi.c: In function â€˜zynqmp_qspi_child_pre_probe’:
drivers/spi/zynqmp_qspi.c:288:6: warning: unused variable â€˜reg’
[-Wunused-variable]
  u32 reg;
      ^
drivers/spi/zynqmp_qspi.c:287:5: warning: unused variable â€˜bootmode’
[-Wunused-variable]
  u8 bootmode;
     ^
drivers/spi/zynqmp_qspi.c: In function
‘zynqmp_qspi_check_is_dual_flash’:
drivers/spi/zynqmp_qspi.c:300:6: warning: unused variable â€˜is_dual’
[-Wunused-variable]
  int is_dual = -1;

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agophy: ti: Add missing function declaration to phy.h
Michal Simek [Wed, 28 Oct 2015 10:07:48 +0000 (11:07 +0100)] 
phy: ti: Add missing function declaration to phy.h

Fix compilation warning:
drivers/net/phy/phy.c: In function â€˜phy_init’:
drivers/net/phy/phy.c:488:2: warning: implicit declaration of function
‘phy_ti_init’ [-Wimplicit-function-declaration]
  phy_ti_init();
  ^

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: axi_emac: Fix parentheses around operand !
Michal Simek [Wed, 28 Oct 2015 10:00:47 +0000 (11:00 +0100)] 
net: axi_emac: Fix parentheses around operand !

Fix these compilation warning by proper grouping:
In function 'axi_dma_init': drivers/net/xilinx_axi_emac.c:391:7:
warning: suggest parentheses around operand of '!' or change '&' to '&&'
or '!' to '~' [-Wparentheses]
    if (!(in_be32(&priv->dmatx->control) |
        ^
In function 'axiemac_send': drivers/net/xilinx_axi_emac.c:501:21:
warning: suggest parentheses around operand of '!' or change '&' to '&&'
or '!' to '~' [-Wparentheses]
  while (timeout && (!in_be32(&priv->dmatx->status) &

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodm: sf: Add checking for MANUAL_RELOC code only
Michal Simek [Wed, 28 Oct 2015 09:56:39 +0000 (10:56 +0100)] 
dm: sf: Add checking for MANUAL_RELOC code only

This fixes the patch:
"dm: sf: Add support for all targets which requires MANUAL_RELOC"
(sha1: 238448fed49cb1dae7ffd09939afeaa1918c408e)
to call the code only for manual relocation case.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq-common: Define CONFIG_SYS_I2C_ZYNQ based on board config
Siva Durga Prasad Paladugu [Wed, 28 Oct 2015 05:49:08 +0000 (11:19 +0530)] 
zynq-common: Define CONFIG_SYS_I2C_ZYNQ based on board config

Enable CONFIG_SYS_I2C_ZYNQ only if it has either I2C0 or I2C1
enabled in a board config.This fixes the issue of i2c error
during board init if board specific doesnt have either I2C0
or I2C1.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: phy: ti: Enable automatic crossover mode
Michal Simek [Mon, 19 Oct 2015 08:43:30 +0000 (10:43 +0200)] 
net: phy: ti: Enable automatic crossover mode

Enable automatic crossover cable detection.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodm: sf: Add support for all targets which requires MANUAL_RELOC
Michal Simek [Tue, 27 Oct 2015 12:52:47 +0000 (13:52 +0100)] 
dm: sf: Add support for all targets which requires MANUAL_RELOC

It is follow up patch based on
"dm: Add support for all targets which requires MANUAL_RELOC"
(sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3)
to update function pointers for DM.

Using post_bind is not ideal but it is one on current option what can be
used. Variable reloc_done has to be used do not call relocation after
every bind. Maybe new core functions should be introduced for this case.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodm: core: Add missing entries for manual relocation
Michal Simek [Tue, 27 Oct 2015 12:48:08 +0000 (13:48 +0100)] 
dm: core: Add missing entries for manual relocation

Patches:
"dm: core: Add a post_bind method for parents"
(sha1: 0118ce79577f9b0881f99a6e4f8a79cd5014cb87)
"dm: core: Add a uclass pre_probe() method for devices"
(sha1: 02c07b3741f1b825934b1a6eb8f23530532dc426)
"dm: core: Allow the uclass to set up a device's child after binding"
(sha1: 081f2fcbd9a95ba10677065359791f8fea3f8c58)
"dm: core: Allow uclass to set up a device's child before it is probed"
(sha1: 83c7e434c9dd3ca81f8b763e23c1881b973bcf2f)

Adds new entries to struct driver and struct uclass_driver without
extending code for manual relocation. This patch fixes it for all
architectures which requires MANUAL_RELOC.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agodm: spi: Add support for all targets which requires MANUAL_RELOC
Michal Simek [Tue, 27 Oct 2015 12:36:42 +0000 (13:36 +0100)] 
dm: spi: Add support for all targets which requires MANUAL_RELOC

It is follow up patch based on
"dm: Add support for all targets which requires MANUAL_RELOC"
(sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3)
to update function pointers for DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Fix tca6416 i2c device description
Michal Simek [Mon, 26 Oct 2015 12:51:51 +0000 (13:51 +0100)] 
ARM64: zynqmp: Fix tca6416 i2c device description

Chip 0x20 was exchange by 0x21. Fix this and move it to appropriate
location based on i2c address. And extend description for 0x21.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Enable can1 for ZCU102
Michal Simek [Mon, 26 Oct 2015 12:51:23 +0000 (13:51 +0100)] 
ARM64: zynqmp: Enable can1 for ZCU102

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add the second uart to ZCU102
Michal Simek [Mon, 26 Oct 2015 12:48:36 +0000 (13:48 +0100)] 
ARM64: zynqmp: Add the second uart to ZCU102

Add second uart to ZCU102.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Enable DP for DC1
Michal Simek [Wed, 21 Oct 2015 13:52:31 +0000 (15:52 +0200)] 
ARM64: zynqmp: Enable DP for DC1

Enable DP for DC1.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Use separate clk description for boards
Michal Simek [Tue, 20 Oct 2015 13:59:48 +0000 (15:59 +0200)] 
ARM64: zynqmp: Use separate clk description for boards

Simplify clk description by moving it to separate file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Extract clock information from generic DTSI
Michal Simek [Fri, 9 Oct 2015 11:51:23 +0000 (13:51 +0200)] 
ARM64: zynqmp: Extract clock information from generic DTSI

Clock setting is platform specific.
Move it specific file which targets ep108 only.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Move xlnx_dpdma node
Michal Simek [Wed, 21 Oct 2015 13:19:45 +0000 (15:19 +0200)] 
ARM64: zynqmp: Move xlnx_dpdma node

Sort nodes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Move dp_sub node
Michal Simek [Wed, 21 Oct 2015 13:17:59 +0000 (15:17 +0200)] 
ARM64: zynqmp: Move dp_sub node

Sort nodes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Move dp_snd_codec0
Michal Simek [Wed, 21 Oct 2015 13:16:44 +0000 (15:16 +0200)] 
ARM64: zynqmp: Move dp_snd_codec0

Sort nodes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Move dp_snd_card node
Michal Simek [Wed, 21 Oct 2015 13:15:43 +0000 (15:15 +0200)] 
ARM64: zynqmp: Move dp_snd_card node

Sort nodes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Sort DP nodes - move xilinx_drm
Michal Simek [Wed, 21 Oct 2015 13:13:35 +0000 (15:13 +0200)] 
ARM64: zynqmp: Sort DP nodes - move xilinx_drm

Move xilinx_drm to the right position and add xilinx_drm label.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: update the nand node with clock and chip select info
Michal Simek [Wed, 21 Oct 2015 13:10:54 +0000 (15:10 +0200)] 
ARM64: zynqmp: update the nand node with clock and chip select info

Added clock specification.
Added chip select information.
It is possible that the nand flash device(s) size can be > 4GB. So,
Increased
the address cycles property value to 2.
Since DC2 hw contains two flash devices and each flash size is 4GB,
modified the
partition table to accommodate the second flash and also added
partitions to
cover the whole flash size.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Fix i2c devices for DC2
Michal Simek [Wed, 21 Oct 2015 13:06:57 +0000 (15:06 +0200)] 
ARM64: zynqmp: Fix i2c devices for DC2

Cleanup i2c bus descriptions with devices based on SPEC.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Update the spi1 node as per the DC2 spec
Michal Simek [Wed, 21 Oct 2015 13:04:52 +0000 (15:04 +0200)] 
ARM64: zynqmp: Update the spi1 node as per the DC2 spec

Updated the spi1 node with the flash details that is available
on DC2 card.

Currently the frequency is limited the freq to 20Mhz and this can
be increased later.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Update the ethernet phy mdio address
Michal Simek [Wed, 21 Oct 2015 13:03:26 +0000 (15:03 +0200)] 
ARM64: zynqmp: Update the ethernet phy mdio address

Updated the ethernet phy mdio address.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Do not enable gpu for DC2
Michal Simek [Wed, 21 Oct 2015 13:02:08 +0000 (15:02 +0200)] 
ARM64: zynqmp: Do not enable gpu for DC2

DC2 has no Display port that's why make no sense to enable GPU.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Sync header with Linux for DC1/DC2
Michal Simek [Wed, 21 Oct 2015 12:57:56 +0000 (14:57 +0200)] 
ARM64: zynqmp: Sync header with Linux for DC1/DC2

Just sync comment with Linux kernel.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Enable GPU by default
Michal Simek [Wed, 21 Oct 2015 12:56:53 +0000 (14:56 +0200)] 
ARM64: zynqmp: Enable GPU by default

Enable GPU by default as was done in Linux.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Remove temporary comments from dtses
Michal Simek [Wed, 21 Oct 2015 12:56:23 +0000 (14:56 +0200)] 
ARM64: zynqmp: Remove temporary comments from dtses

DTS comment cleanup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Keep gpio node alphabetically sorted
Michal Simek [Fri, 9 Oct 2015 11:44:45 +0000 (13:44 +0200)] 
ARM64: zynqmp: Keep gpio node alphabetically sorted

No functional change.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Remove comment about gpu name
Michal Simek [Tue, 20 Oct 2015 14:14:21 +0000 (16:14 +0200)] 
ARM64: zynqmp: Remove comment about gpu name

Keep gpu name for now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Remove psci origin description
Michal Simek [Tue, 20 Oct 2015 14:09:40 +0000 (16:09 +0200)] 
ARM64: zynqmp: Remove psci origin description

psci-0.2 is fully working for Linux. There was problem in past because
on XEN. Hopefully this is fixed already.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: List all i2c muxes as separate buses for ZCU102
Michal Simek [Wed, 21 Oct 2015 11:24:07 +0000 (13:24 +0200)] 
ARM64: zynqmp: List all i2c muxes as separate buses for ZCU102

Simplify work with I2C muxes by definitely i2c bus topology.
Here is example of it:
ZynqMP> i2c bus
Bus 0: zynq_0
Bus 1: zynq_0->PCA9544A@0x75:0
Bus 2: zynq_0->PCA9544A@0x75:1
Bus 3: zynq_0->PCA9544A@0x75:2
Bus 4: zynq_1
Bus 5: zynq_1->PCA9548@0x74:0
Bus 6: zynq_1->PCA9548@0x74:1
Bus 7: zynq_1->PCA9548@0x74:2
Bus 8: zynq_1->PCA9548@0x74:3
Bus 9: zynq_1->PCA9548@0x74:4
Bus 10: zynq_1->PCA9548@0x75:0
Bus 11: zynq_1->PCA9548@0x75:1
Bus 12: zynq_1->PCA9548@0x75:2
Bus 13: zynq_1->PCA9548@0x75:3
Bus 14: zynq_1->PCA9548@0x75:4
Bus 15: zynq_1->PCA9548@0x75:5
Bus 16: zynq_1->PCA9548@0x75:6
Bus 17: zynq_1->PCA9548@0x75:7

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add i2c bus description
Michal Simek [Tue, 20 Oct 2015 13:36:20 +0000 (15:36 +0200)] 
ARM64: zynqmp: Add i2c bus description

Add description of i2c bus based on schematics. Some parts are still
unclear and needs to be checked. PMBUS included.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoi2c: Instantiate I2C controllers when selected
Michal Simek [Wed, 21 Oct 2015 12:38:05 +0000 (14:38 +0200)] 
i2c: Instantiate I2C controllers when selected

Do not enable both I2C controllers by default. Enable them only when
they are selected.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add new boards to maintainer file
Michal Simek [Wed, 21 Oct 2015 13:59:51 +0000 (15:59 +0200)] 
ARM64: zynqmp: Add new boards to maintainer file

Keep buildman happy.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add missing NR_DRAM_BANKS for mini configuration
Michal Simek [Wed, 21 Oct 2015 14:26:25 +0000 (16:26 +0200)] 
ARM64: zynqmp: Add missing NR_DRAM_BANKS for mini configuration

This should be the part of patch:
"zynqmp: Setup correct memory size for ep108"
(sha1: 19912a76ab43d2759cd0571842c0868fb5585e13)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Use correct eth phy address on zcu102
Michal Simek [Tue, 20 Oct 2015 09:09:14 +0000 (11:09 +0200)] 
ARM64: zynqmp: Use correct eth phy address on zcu102

Phy address is 21 (0x15).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: ZCU102 has only one SD interface
Michal Simek [Tue, 20 Oct 2015 09:08:03 +0000 (11:08 +0200)] 
ARM64: zynqmp: ZCU102 has only one SD interface

Remove additional SD interface.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoPrepare v2015.10 v2015.10
Tom Rini [Mon, 19 Oct 2015 22:46:28 +0000 (18:46 -0400)] 
Prepare v2015.10

Signed-off-by: Tom Rini <trini@konsulko.com>
10 years agopowerpc: Drop old non-generic-board code
Simon Glass [Sat, 17 Oct 2015 18:58:50 +0000 (12:58 -0600)] 
powerpc: Drop old non-generic-board code

This code is no-longer used. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
10 years agosbc8641d: enable and test CONFIG_SYS_GENERIC_BOARD
Paul Gortmaker [Sat, 17 Oct 2015 20:40:30 +0000 (16:40 -0400)] 
sbc8641d: enable and test CONFIG_SYS_GENERIC_BOARD

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
10 years agosbc8641d: increase monitor size from 256k to 384k
Paul Gortmaker [Sat, 17 Oct 2015 20:40:31 +0000 (16:40 -0400)] 
sbc8641d: increase monitor size from 256k to 384k

Between v2015.07-rc1 and v2015.07-rc2 this board started
silent boot failure.  A bisect led to commit 6eed3786c68c8a49d
("net: Move the CMD_NET config to defconfigs").  This commit
looks harmless in itself, but it did implicitly add a feature
to the image which led to this:

 u-boot$git describe 6eed3786c68c8a49d
 v2015.07-rc1-412-g6eed3786c68c
              ^^^

 u-boot$ls -l ../41*/u-boot.bin
 -rwxrwxr-x 1 paul paul 261476 Oct 16 16:47 ../411/u-boot.bin
 -rwxrwxr-x 1 paul paul 266392 Oct 16 16:43 ../412/u-boot.bin
 u-boot$bc
 bc 1.06.95
 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
 This is free software with ABSOLUTELY NO WARRANTY.
 For details type `warranty'.
 256*1024
 262144

i.e. we finally broke through the 256k monitor size.  Jump it
up to 384k and fix the hard coded value used in the env offset
at the same time.

We were probably flirting with the 256k size issue without
knowing it when testing on different baselines in earlier
commits, but since this is all board specific, a rebase or
reorder to put this commit 1st is of little value.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
10 years agosbc8641d: add basic flash setup instructions to README file
Paul Gortmaker [Sat, 17 Oct 2015 20:40:29 +0000 (16:40 -0400)] 
sbc8641d: add basic flash setup instructions to README file

...so that I don't have to go work them out from scratch again
by peering at the manual.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
10 years agosbc8641d: set proper environment sector size.
Paul Gortmaker [Sat, 17 Oct 2015 20:40:28 +0000 (16:40 -0400)] 
sbc8641d: set proper environment sector size.

When debugging an env fail due to too small a malloc pool, it
was noted that the env write was 256k.  But the device sector
size is 1/2 that, as can be seen from "fli" output:

Bank # 1: CFI conformant flash (16 x 16)  Size: 16 MB in 131 Sectors
  Intel Extended command set, Manufacturer ID: 0x89, Device ID: 0x1888
  Erase timeout: 4096 ms, write timeout: 1 ms
  Buffer write timeout: 2 ms, buffer size: 64 bytes

  Sector Start Addresses:
  FF000000 E RO   FF020000 E RO   FF040000 E RO   FF060000 E RO   FF080000 E RO
  FF0A0000 E RO   FF0C0000 E RO   FF0E0000 E RO   FF100000 E RO   FF120000 E RO
  [...]
  FFF00000   RO   FFF20000   RO   FFF40000   RO   FFF60000   RO   FFF80000   RO
  FFFA0000   RO   FFFC0000   RO   FFFE0000 E RO   FFFE8000   RO   FFFF0000 E RO
  FFFF8000   RO
=>

The desired env sector is FFF40000->FFF60000, or 0x20000 in length,
just after the 256k u-boot image which starts @ FFF00000.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
10 years agosbc8641d: increase malloc pool size to a sane default
Paul Gortmaker [Sat, 17 Oct 2015 20:40:27 +0000 (16:40 -0400)] 
sbc8641d: increase malloc pool size to a sane default

Currently the board fails to save its env, since the env size
is much smaller than the sector size, and the malloc fails for
the pad buffer, giving the user visible symptom of:

Unable to save the rest of sector (253952)

Allow for 1M malloc pool, the same as used on the sbc8548 board.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
10 years agosbc8641d: enable command line editing
Paul Gortmaker [Sat, 17 Oct 2015 20:40:26 +0000 (16:40 -0400)] 
sbc8641d: enable command line editing

It is just too painful to use interactively without it.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
10 years agoimage-fit: Fix signature checking
Andrej Rosano [Wed, 14 Oct 2015 15:45:40 +0000 (17:45 +0200)] 
image-fit: Fix signature checking

On signature verification failures fit_image_verify() should
exit with error.

Signed-off-by: Andrej Rosano <andrej@inversepath.com>
10 years agoigep00x0: Use BCH8 ECC
Ladislav Michl [Mon, 12 Oct 2015 16:09:14 +0000 (18:09 +0200)] 
igep00x0: Use BCH8 ECC

Used NAND chips requires at least 4-bit error correction, so use BCH8
as it is what kernel uses.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Javier Martinez Canillas <javier@osg.samsung.com>
10 years agovexpress64: Juno: Add initialisation code for Juno R1 PCIe host bridge.
Liviu Dudau [Mon, 19 Oct 2015 10:08:32 +0000 (11:08 +0100)] 
vexpress64: Juno: Add initialisation code for Juno R1 PCIe host bridge.

Juno R1 has an XpressRICH3 PCIe host bridge that needs to be initialised
in order for the Linux kernel to be able to enumerate the bus. Add
support code here that enables the host bridge, trains the links and
sets up the Address Translation Tables.

Signed-off-by: Liviu Dudau <Liviu.Dudau@foss.arm.com>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
[trini: Always declare vexpress64_pcie_init and continue handling logic
inside the function]
Signed-off-by: Tom Rini <trini@konsulko.com>
10 years agovexpress64: Juno: Declare all 8GB of RAM and make them visible to the kernel.
Liviu Dudau [Mon, 19 Oct 2015 10:08:31 +0000 (11:08 +0100)] 
vexpress64: Juno: Declare all 8GB of RAM and make them visible to the kernel.

Juno comes with 8GB RAM, but U-Boot only passes 2GB to the kernel.
Declare a secondary memory bank and set the sizes correctly.

Signed-off-by: Liviu Dudau <Liviu.Dudau@foss.arm.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>