]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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 agozynq: qspi: Add support for Macronix QSPI parts
Siva Durga Prasad Paladugu [Mon, 19 Oct 2015 11:27:24 +0000 (16:57 +0530)] 
zynq: qspi: Add support for Macronix QSPI parts

Added support for Macronix QSPI parts in Zynq
Tested the Macronix QSPI parts MX25L256 and
MX25L512 in single, dual prallel and dual stacked
modes.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agocommon: mii: Do not allow to exceed max phy limit
Michal Simek [Mon, 19 Oct 2015 13:13:34 +0000 (15:13 +0200)] 
common: mii: Do not allow to exceed max phy limit

Phy can have addresses 0-31. Check this boundary to ensure that user
can't call commands on phy address 32 and more.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Enable eth phy detection
Michal Simek [Mon, 19 Oct 2015 13:12:21 +0000 (15:12 +0200)] 
ARM64: zynqmp: Enable eth phy detection

Phy detection is working fine. ZCU102 has phy at address 21(0x15).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Use uart instead of DCC
Michal Simek [Mon, 19 Oct 2015 08:47:50 +0000 (10:47 +0200)] 
ARM64: zynqmp: Use uart instead of DCC

Use uart as default serial interface instead of jtag debug port.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: phy: Fix macros coding style in DP83867
Michal Simek [Mon, 19 Oct 2015 08:42:36 +0000 (10:42 +0200)] 
net: phy: Fix macros coding style in DP83867

No functional changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Add support for zcu102
Michal Simek [Thu, 15 Oct 2015 11:50:58 +0000 (13:50 +0200)] 
ARM64: zynqmp: Add support for zcu102

It is very similar to zc1751 with DC1 but there are two i2c connected.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoARM64: zynqmp: Enable advance memory test by default
Michal Simek [Thu, 15 Oct 2015 12:34:28 +0000 (14:34 +0200)] 
ARM64: zynqmp: Enable advance memory test by default

Temp space in at the beggining of OCM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove additional defconfig
Michal Simek [Wed, 7 Oct 2015 15:01:48 +0000 (17:01 +0200)] 
zynqmp: Remove additional defconfig

They are not needed now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable TI PHYs
Edgar E. Iglesias [Sat, 26 Sep 2015 07:58:29 +0000 (00:58 -0700)] 
zynqmp: Enable TI PHYs

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: phy: Add support for Texas Instruments DP83867
Edgar E. Iglesias [Sat, 26 Sep 2015 06:46:08 +0000 (23:46 -0700)] 
net: phy: Add support for Texas Instruments DP83867

Code is taken from Linux kernel driver.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoRevert "net: phy: Add support for NatSemi DP83867"
Edgar E. Iglesias [Sat, 26 Sep 2015 06:45:19 +0000 (23:45 -0700)] 
Revert "net: phy: Add support for NatSemi DP83867"

This reverts commit bba49814a3280f7385adc37bcb89550ba966f8cf.

National Semiconductors became part of TI that's why add new phy to TI
specific file instead.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Add support for different PHY interface types
Michal Simek [Wed, 7 Oct 2015 14:42:56 +0000 (16:42 +0200)] 
net: zynq: Add support for different PHY interface types

MII is setup by default for all cases. The most of boards are using
RGMII but PHY drivers are not doing any specific setting that's why MII
setting was working file. With TI DP83867 is necessary to setup
paramaters based on interface type.

Use one setting per board for it which is something what will be removed
when driver is moved to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Add debug message to phyread/phywrite
Michal Simek [Wed, 7 Oct 2015 14:34:51 +0000 (16:34 +0200)] 
net: zynq: Add debug message to phyread/phywrite

Add debug messages to phyread/write to help with PHY debug.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Differentiate EMMC boot mode
Michal Simek [Mon, 5 Oct 2015 13:59:38 +0000 (15:59 +0200)] 
zynqmp: Differentiate EMMC boot mode

Show also EMMC bootmode if selected. There is difference compare to SD
bootmode. Use the same bootcommand till better boot command is created.

Reported-by: Sai Pavan Boddu <saipava@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: dc2: Remove SATA configuration
Michal Simek [Mon, 5 Oct 2015 14:07:16 +0000 (16:07 +0200)] 
zynqmp: dc2: Remove SATA configuration

DC2 has no SATA on it. Remove it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add command for SD root on second card
Michal Simek [Mon, 5 Oct 2015 12:27:32 +0000 (14:27 +0200)] 
zynqmp: Add command for SD root on second card

For DC1 configuration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Disable secondary queues
Edgar E. Iglesias [Sat, 26 Sep 2015 06:50:07 +0000 (23:50 -0700)] 
net: zynq: Disable secondary queues

Zynq has no priority queues.
ZynqMP requires this change to get network working.
This patch was not needed on ep108 for uknown reason even it should be
used.
Tested on Zynq and ZynqMP.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Fix clearing statistic
Michal Simek [Mon, 5 Oct 2015 10:49:48 +0000 (12:49 +0200)] 
net: zynq: Fix clearing statistic

Previous loop was completely bogus. Iterration should go just over
statistic counters.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: zynq: Extend register description with offsets
Michal Simek [Mon, 5 Oct 2015 09:49:43 +0000 (11:49 +0200)] 
net: zynq: Extend register description with offsets

Extend comments with register offset to help with debuggging.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynq: sdhci: Define max clock by macro
Michal Simek [Mon, 28 Sep 2015 23:27:13 +0000 (01:27 +0200)] 
zynq: sdhci: Define max clock by macro

zc1571 with silicon can operate on 200MHz maximum frequency. Setup this
frequency by default and fix setting for ep108.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Show information about bootmode
Michal Simek [Sun, 20 Sep 2015 15:20:42 +0000 (17:20 +0200)] 
zynqmp: Show information about bootmode

Showing information about bootmode is very useful to make sure
that correct bootmode is selected.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Setup correct memory size for ep108
Michal Simek [Mon, 5 Oct 2015 09:02:33 +0000 (11:02 +0200)] 
zynqmp: Setup correct memory size for ep108

Move memory configuration to board configuration file to ensure memory
setup for every particular board.
Support 2GB ram for dc1 and dc2. Patch for extending it to 4GB will be
added when it is properly tested.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agoRevert "zynqmp: Use 2GB of memory"
Michal Simek [Mon, 5 Oct 2015 09:06:36 +0000 (11:06 +0200)] 
Revert "zynqmp: Use 2GB of memory"

This reverts commit 8db3532d0576c1bf3373fb0a6b8ce013c602b983.

This patch breaks support for ep108 where only 1GB is available.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Add support for SD1 boot mode
Michal Simek [Mon, 5 Oct 2015 08:51:12 +0000 (10:51 +0200)] 
zynqmp: Add support for SD1 boot mode

SD1 boot mode is using different bootmode values.
Add support for this mode used on DC1.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: dc1: Add support for SD card
Michal Simek [Mon, 28 Sep 2015 22:39:44 +0000 (00:39 +0200)] 
zynqmp: dc1: Add support for SD card

mmc0 is emmc, mmc1 is SD card. For switching between IPs please use mmc
dev command.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agosf: Add support for device SST26WF016B
Siva Durga Prasad Paladugu [Tue, 29 Sep 2015 07:30:36 +0000 (13:00 +0530)] 
sf: Add support for device SST26WF016B

This patch adds support for Microchip part
SST26WF016B. This device needs unlock
block protection command to be sent for
all the erase and write ops to be successful.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: phy: Add support for NatSemi DP83867
Michal Simek [Thu, 24 Sep 2015 15:36:00 +0000 (17:36 +0200)] 
net: phy: Add support for NatSemi DP83867

This is temporary version to get dc1 up and running without breaking
different boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Use jtagboot instead of netboot
Michal Simek [Fri, 25 Sep 2015 19:13:43 +0000 (21:13 +0200)] 
zynqmp: Use jtagboot instead of netboot

Use verified image.ub instead of Image.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Remove SDHCI0 enabling for all zynqmp boards
Michal Simek [Fri, 25 Sep 2015 18:36:16 +0000 (20:36 +0200)] 
zynqmp: Remove SDHCI0 enabling for all zynqmp boards

Just follow particular card setting.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: dc2: There is no SD on this card
Michal Simek [Fri, 25 Sep 2015 17:52:53 +0000 (19:52 +0200)] 
zynqmp: dc2: There is no SD on this card

Broken configuration.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Use 2GB of memory
Michal Simek [Thu, 24 Sep 2015 18:15:20 +0000 (20:15 +0200)] 
zynqmp: Use 2GB of memory

There is 4GB on board but this needs to be rework to get it work in
u-boot. Use maximum memory size without any intensive work.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agonet: gem: Enable CTRL+C in wait_for_bit
Michal Simek [Thu, 24 Sep 2015 18:13:45 +0000 (20:13 +0200)] 
net: gem: Enable CTRL+C in wait_for_bit

Enable to break waiting loop at any time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Include GbE speed/duplex detection
Michal Simek [Thu, 24 Sep 2015 18:12:29 +0000 (20:12 +0200)] 
zynqmp: Include GbE speed/duplex detection

Get right speed/duplex via mii info.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
10 years agozynqmp: Enable TI phys for target
Michal Simek [Wed, 23 Sep 2015 17:35:31 +0000 (19:35 +0200)] 
zynqmp: Enable TI phys for target

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
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>