Keep enetaddr and mac hw address in sync.
In default config mismatch in received frame
dest address and mac hw address results
in drop of unicast frames.
This patch will be reverted when mainline version
fix this in the core that's why it is just temporary
solution for now.
http://lists.denx.de/pipermail/u-boot/2015-March/208211.html
Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arasan: nfc: Add initial nand driver support for Xilinx ZynqMP
Added initial nand driver support for arasan nand flash
controller. This supports nand erase, nand read, nand write
This uses the hardware ECC for read and write operations
ZynqMP uses this driver.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Disable all level shifters before enabling
the PS-to-PL level shifters as it would
be good to disable all level shifters before
enabling the PS-to-PL in order to ensure that
it is in proper state
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: nand: Send address cycles as per onfi parameter page
Send address cycles as per value read from onfi parameter
page for Read and write commands instead of using a
hard coded value. This may vary for different parts and
hence use it from onfi parameter page value.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek [Wed, 25 Feb 2015 13:32:29 +0000 (14:32 +0100)]
zynqmp: Fix compilation warning around missing sata header
Warning:
board/xilinx/zynqmp/zynqmp.c: In function ‘scsi_init’:
board/xilinx/zynqmp/zynqmp.c:57:2: warning: implicit declaration of
function ‘ahci_init’ [-Wimplicit-function-declaration]
ahci_init(ZYNQMP_SATA_BASEADDR);
^
board/xilinx/zynqmp/zynqmp.c:58:2: warning: implicit declaration of
function ‘scsi_scan’ [-Wimplicit-function-declaration]
scsi_scan(1);
^
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek [Wed, 25 Feb 2015 12:56:13 +0000 (13:56 +0100)]
qspi: Move zynqmp QSPI driver to separate file
This driver comes from zynq_qspi.c driver but
this zynqmp_qspi.c driver will be replaced by different
one that's why this patch is just preparation for easier
merge.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Compilation warning:
In file included from include/common.h:26:0,
from drivers/spi/zynq_qspi.c:9:
drivers/spi/zynq_qspi.c: In function 'spi_setup_slave':
include/linux/kernel.h:155:17: warning: comparison of distinct pointer
types lacks a cast [enabled by default]
(void) (&_min1 == &_min2); \
^
drivers/spi/zynq_qspi.c:822:28: note: in expansion of macro 'min'
qspi->qspi.max_speed_hz = min(max_hz, lqspi_frequency);
^
In file included from include/common.h:26:0,
from drivers/spi/zynq_qspi.c:9:
drivers/spi/zynq_qspi.c: In function 'spi_setup_slave':
include/linux/kernel.h:155:17: warning: comparison of distinct pointer
types lacks a cast [enabled by default]
(void) (&_min1 == &_min2); \
^
drivers/spi/zynq_qspi.c:822:28: note: in expansion of macro 'min'
qspi->qspi.max_speed_hz = min(max_hz, lqspi_frequency);
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek [Tue, 13 Jan 2015 09:59:52 +0000 (10:59 +0100)]
mtd: spi: Return 0 instead of NULL
This patch remove warning:
drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
drivers/mtd/spi/sf_probe.c:215:4: warning: return makes integer from
pointer without a cast [enabled by default]
return NULL;
^
drivers/mtd/spi/sf_probe.c:223:5: warning: return makes integer from
pointer without a cast [enabled by default]
return NULL;
^
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek [Tue, 13 Jan 2015 09:27:31 +0000 (10:27 +0100)]
fpga: Remove BIT_COMPRESSED from fpga.h
Compressed bitstreams are full or partial and current
fpga command is able to handle compressed bitstreams
by default that's why no enum value is needed for it.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek [Tue, 13 Jan 2015 09:19:59 +0000 (10:19 +0100)]
Merge tag 'v2015.01' into master
Add AFX/CSE board support - Kconfig entry, defconfigs
Add RSA Kconfig entry and targets for it
Add zc770-xm011 and zynq-cc108 DTBs from the Linux kernel
Sync zynq-7000.dtsi with the Linux kernel.
Use spl_load_image_fat for bitstream loading in SPL.
Disable CONFIG_OF_CONTROL for all zynq boards.
Nand:
- Fix zynq_nand_read_subpage_raw parameters.
- Remove nand.h from sys_proto.h and move it zynq_nand.c
- Do not call nand_release(). Removed by:
"mtd, ubi, ubifs: resync with Linux-3.14"
(sha1: ff94bc40af3481d47546595ba73c136de6af6929)
QSPI:
- spi_flash_params has been moved from spi_flash.h
to sf_internal.h - fix zynq_qspi.c driver to reflect this.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek [Tue, 13 Jan 2015 09:59:52 +0000 (10:59 +0100)]
mtd: spi: Return 0 instead of NULL
This patch remove warning:
drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
drivers/mtd/spi/sf_probe.c:215:4: warning: return makes integer from
pointer without a cast [enabled by default]
return NULL;
^
drivers/mtd/spi/sf_probe.c:223:5: warning: return makes integer from
pointer without a cast [enabled by default]
return NULL;
^
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Always disable dcache after the flush operation
The following sequence is advisable while disabling d-cache:
1. disable_dcache() - flushes and disables d-cache
2. invalidate_dcache_all() - invalid any entry that came to the cache
in the short period after the cache was flushed but before the
cache got disabled
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Pali Rohár [Thu, 8 Jan 2015 09:11:40 +0000 (10:11 +0100)]
Nokia RX-51: Do not call secure PPA routine on non secure devices
Since commit 41623c91b09a0c865fab41acdaff30f060f29ad6 u-boot running in qemu is
crashing in function do_omap3_emu_romcode_call(). RX-51 board uses this function
for Cortex-A8 errata 430973 workaround (Set IBE bit in ACR) which is needed only
on real secure device and not in qemu.
This board patch just disable calling secure PPA routine on non secure devices.
Qemu implements GP device and with this patch u-boot is working in qemu again.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz>
Masahiro Yamada [Fri, 19 Dec 2014 05:27:13 +0000 (14:27 +0900)]
ARM: remove redudant information from Kconfig files
- "string" type for SYS_* is defined in arch/Kconfig
- SYS_CPU "armv7" has been replaced with "select CPU_V7"
- SYS_SOC "tegra124" is already defined in tegra124/Kconfig
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Bo Shen <voice.shen@atmel.com>
Kevin Hilman [Mon, 15 Dec 2014 20:07:52 +0000 (12:07 -0800)]
common/board_f.c: fix compile error when tracing disabled
When CONFIG_TRACE is disabled, linking fails with:
common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init'
To fix, wrap trace init calls with #ifdef CONFIG_TRACE.
While at it, remove the static inline version of the init call from
trace.h as suggested by Simon Glass, since it doesnt work.
Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@ti.com> Signed-off-by: Kevin Hilman <khilman@linaro.org> Acked-by: Simon Glass <sjg@chromium.org>
Łukasz Majewski [Fri, 21 Nov 2014 08:22:43 +0000 (09:22 +0100)]
fix: tools: kwbimage.c: Initialize headersz to suppress warning
When building with my toolchain (4.8.2):
CROSS_COMPILE=/home/lukma/work/ptxdist/toolchains/arm/OSELAS.Toolchain-2013.12.0/arm-v7a-linux-gnueabi/gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin/arm-v7a-linux-gnueabi-
I see following WARNING:
tools/kwbimage.c: In function "kwbimage_set_header":
tools/kwbimage.c:803:8: warning: "headersz" may be used uninitialized in this function [-Wmaybe-uninitialized]
memcpy(ptr, image, headersz);
^
This fix aims to suppress it.
Alexey Brodkin [Mon, 29 Dec 2014 12:42:57 +0000 (15:42 +0300)]
arc: introduce "mdbtrick" target
MetaWare debugger (MDB) is still used as a primary tool for interaction
with target via JTAG. Moreover some very advanced features are not yet
implemented in GDB for ARC (and not sure if they will be implemnted
sometime soon given complexity and rare need for those features for
common user).
So if we're talking about development process when U-Boot is loaded in
target memory not by low-level boot-loader but manually through JTAG
chances are high developer uses MDB for it.
But MDB doesn't support PIE (position-independent executable) - it will
refuse to even start - that means no chance to load elf contents on
target.
Then the only way to load U-Boot in MDB is to fake it by:
1. Reset PIE flag in ELF header
This is simpe - on attempt to open elf MDB checks header and if it
doesn't match its expectation refuces to use provided elf.
2. Strip all debug information from elf
If (1) is done then MDB will open elf but on parsing of elf's debug
info it will refuse to process due to debug info it cannot understand
(symbols with PIE relocation).
Even though it could be done manually (I got it documented quite a while
ago here http://www.denx.de/wiki/U-Boot/ARCNotes) having this automated
way is very convenient. User may build U-Boot that will be loaded on
target via MDB saying "make mdbtrick".
Then if we now apply the manipulation MDB will happily start and will
load all required sections into the target.
Indeed there will be no source-level debug info available. But still MDB
will do its work on showing disassembly, global symbols, registers,
accessing low-level debug facilities etc.
As a summary - this is a pretty dirty hack but it simplifies life a lot
for us ARc developers.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de>
Masahiro Yamada [Fri, 26 Dec 2014 13:20:58 +0000 (22:20 +0900)]
mtd: nand: do not scan BBT after scrub
Currently, "nand scrub" runs chip->scan_bbt at the end of
nand_erase_opts() even if NAND_SKIP_BBTSCAN flag is set.
It violates the intention of NAND_SKIP_BBTSCAN.
Move NAND_SKIP_BBTSCAN flag check to nand_block_checkbad() so that
chip->scan_bbt() is never run if NAND_SKIP_BBTSCAN is set.
Also, unset NAND_BBT_SCANNED flag instead of running chip->scan_bbt()
right after scrub. We can be lazier here because the BBT is scanned
at the next call of nand_block_checkbad().
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Scott Wood <scottwood@freescale.com>