Commit graph

13399 commits

Author SHA1 Message Date
Ajay Kishore
37ddd8e488 ipq807x: Added support for I2C diagnostics
Diagnostics feature includes read, write and
probe commands.

Change-Id: Ia230a366e35241e4c3812b820bfb38ff0101ad0d
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-07-29 04:19:55 -07:00
Ajay Kishore
e7485c18fd dm: i2c: Convert to driver model
Change-Id: Ie0ac70054991783bd4f8b89af2151177a2bba0f8
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-07-29 11:26:30 +05:30
Ajay Kishore
d8cf279460 ipq40xx: Added support for I2C diagnostics
Diagnostics support includes read, write and probe
commands.

Change-Id: I899be70b69c5965e72ae413b913e4f837ffc9f40
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-07-28 13:36:38 +05:30
Gokul Sriram Palanisamy
3891c01666 qca: Moved CONFIG_SF_DEFAULT_SPEED to board specific
To avoid compiler warning.

Change-Id: Iedbbbe9166af77286715c7a6b09a90f00cb3b34e
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-27 01:59:36 -07:00
Gokul Sriram Palanisamy
5c9e6939cf qca: Adding device tree support for qpic-nand
Sets qpic-nand base address by reading from device tree using the
compatible string

Change-Id: I6e23ea579d9472fc9c977f9b549c312d61e9402b
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-27 01:55:36 -07:00
Gokul Sriram Palanisamy
c1f2522a96 qca: ipq4019: Enabling qpic-nand driver
Adds QPIC NAND initialization configs and gpio configurations.

Change-Id: I5f21989813e9a811525c730926be4a8565822a3d
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-27 14:22:39 +05:30
Saravanan Jaganathan
0e20a955c1 qca: ipq: USB support is now DM model
Moved to DM approach to make it more flexible to support
AK/DK/HK chipset.

Change-Id: I0fded02c97b7ace500df44bbf39285ef6fb58321
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2016-07-24 17:03:05 +05:30
Saravanan Jaganathan
d31988fb33 qca: ipq: Moved DWC3 base address definition to arch specific
This would allow us to define architecture specific base address
in the respective config files.

Change-Id: Ide1573525cfe09d8db51d397ee55b907b256f47e
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2016-07-21 04:56:16 -07:00
Saravanan Jaganathan
0fc2fe5344 qca: ipq: xhci-ipq40xx.c is now xhci-ipq.c
Step 1 to make this file generic to support AK/DK/DK.

Change-Id: Ie058337135b73510d29a3e563c1c341aa6b1fd8e
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2016-07-21 04:55:42 -07:00
Gokul Sriram Palanisamy
2e43d14733 qca: bootipq: Enabling qca common bootipq with multiple dtb support
Change-Id: I73135cc66e7c439c8cc77c355965a225f6c722fd
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-18 07:06:51 -07:00
Gokul Sriram Palanisamy
4a358cb07e ipq4019: Enabling qca common bootipq command
Change-Id: Ia5c3e996142dfdc194f0ed2f4bbe860b586a4139
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-18 19:36:18 +05:30
Saravanan Jaganathan
2230d5482d qca: ipq: Fixed compiler warnings
Fixed warnings for both ipq807x and ipq40xx
builds.

Change-Id: I69accebf525ee52f470335a14474378f5e7f65b0
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2016-07-09 17:41:34 +05:30
Ajay Kishore
705d77050f qca: ipq40xx: Added USB support
Basic USB enumuration support has been added.
Only storage devices are identified. Hubs are not supported.

Change-Id: Ia6532d7cec4e531270fc403381a1d690a9e455f0
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2016-07-09 08:56:26 +05:30
Manoharan Vijaya Raghavan
5f00583181 arm64: qca: Added support for booting AARCH64 kernel
check the image header, if the magic signature matches then
perform and indirect jump to 64 bit EL1 through TZ.

Change-Id: I92888faa7ed908652671bf09a4f6d4599340db5b
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-06-30 23:54:17 -07:00
Manoharan Vijaya Raghavan
bc66f872cb scm: qca: Added scm call support for 64 bit TZ
Change-Id: I061193a9cf3be3a6c6ad42de7756aa8319004a29
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-06-30 23:53:58 -07:00
Manoharan Vijaya Raghavan
184e49acc6 dts: Added support for multiple dtbs in u-boot
dtbs are made as .o
a table specifying their machid and address is added
the dtbs and header are added to u-boot image in a seperate section
dtb will be chosen based on machid detected from SMEM

Change-Id: I50ac5b56da3a431c1a75cb9fc113fafaedbc09b8
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-06-30 23:53:17 -07:00
Sham Muthayyan
2a8bb9d7d7 qcom: nand: Add IPQ807x support
Change-Id: If83199c83275dba83350ddbf0f2d3a80de3e9c65
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-06-27 06:40:50 -07:00
Sham Muthayyan
32d68e6e5b ipq807x: QPIC NAND Makefile and board file changes
Change-Id: I67aeca19bcb7bdc5c83cb1fc6666cdb55bb24c37
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-06-27 19:09:37 +05:30
Sham Muthayyan
f464f73be8 qcom: Moving SMEM into common location
The SMEM is used for all the platforms like ipq40xx and ipq807x.
So moving this into a common place to use all qcom platforms.

Change-Id: I04f0bf0e7aad0eae71024d734d8049a3470d510d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-06-23 23:04:57 -07:00
Vasudevan Murugesan
e452f79755 ipq807x: Enable EFI partition type for eMMC
Change-Id: I29b4d4b3d4b5a047e9bb1d71347c36a489a0eea2
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2016-06-10 03:58:15 -07:00
Linux Build Service Account
89cefaa85b Merge changes I22bde577,I1aad7193,Ic7849ca2 into eggplant
* changes:
  qca: ipq40xx: Expose SPI driver as pseudo NAND driver
  qca: ipq40xx: Adding files scm.c and scm.h
  qca: ipq40xx: Configure u-boot environment in nand
2016-06-02 23:13:07 -07:00
Manoharan Vijaya Raghavan
2fb1c57774 dts: combine dtb in u-boot ELF
u-boot and dtb are seperate images. This patch combines them as
single ELF image.

Change-Id: Ib3c72c26844ffd4fd8489d0595c243a15434802e
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-05-30 13:12:45 +05:30
Manoharan Vijaya Raghavan
94ad8648c6 qcom: ipq807x: dts: Change of U-Boot load address as DDR base is now fixed
DDR base address is now fixed to be at 0x40000000 and this patch
changes u-boot load address in accordance with that.

Change-Id: I13d0da43a7b0db0e6e322e3828e42da46ebd53cb
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-05-09 07:27:59 -07:00
Vasudevan Murugesan
4cf0b0294a ipq807x: Enabled spi-nor flash support
Change-Id: Id3b876e9d3c00268e608a2fcb76a30a38d965e48
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2016-04-27 11:44:00 +05:30
Akila N
1149982888 qca: ipq40xx: Expose SPI driver as pseudo NAND driver
Change-Id: I22bde577152837b4e8ca5b09e1a0985462fcb1c9
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-20 11:29:45 +05:30
Akila N
da1841647b qca: ipq40xx: Configure u-boot environment in nand
Change-Id: Ic7849ca28adcebf24f376900abd22e409194cd3e
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-18 03:11:51 -07:00
Akila N
1aa59e6721 qca: ipq40xx: Enable spi nor driver in fifo mode
Change-Id: I641f2a206f0537c6b715841447100dcbe89f87b3
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-18 15:38:30 +05:30
Manoharan Vijaya Raghavan
cba3df6d12 qca: ipq807x: Fixing load address of u-boot
Change-Id: Ife8766a46525333a4b248b8d9a9bb1537fdca3ac
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-04-05 11:00:21 +05:30
Akila N
e0974323f9 qca: ipq40xx: Add configuation files for ipq40xx
Change-Id: Id5236cad6be0bcc1584ecc8c59bd0d17c8af567e
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-03-18 15:41:51 +05:30
Manoharan Vijaya Raghavan
256e4709d3 qca: timer: added support for timer for ipq807x
Added timer related registers in dts, processing in timer source code

Change-Id: I2496ae5cd9a0cdf6449b428a22c4ea5cadf51d88
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-03-02 16:31:16 +05:30
Manoharan Vijaya Raghavan
a15b3f4f44 qca: ipq807x: Adding support for IPQ807x
Added config, dts and initial board support code for ipq807x

Change-Id: If624f806c65467900165781d9b32a6c060990418
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-03-02 15:25:41 +05:30
Tom Rini
d77a092dd3 Merge git://git.denx.de/u-boot-rockchip 2016-01-08 14:19:24 -05:00
Tom Rini
b685c7348c Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2016-01-08 10:18:18 -05:00
Andy Fleming
9d243b1481 cyrus: Enable STDIO deregister
If CONFIG_SYS_STDIO_DEREGISTER is not enabled, usb reset
will fail every time. Enabling it allows usb reset to
work.

Signed-off-by: Andy Fleming <afleming@gmail.com>
2016-01-08 10:15:47 -05:00
Andre Przywara
7babe48252 arm64: Juno/FVP: adjust kernel load address
The default kernel load offset for an arm64 kernel is 0x80000, so
U-Boot takes cares of moving the loaded kernel to a matching memory
location just before booting it.
Since we run with caches off, this takes a while for any decently
sized kernel - with no output explaining the reason for the delay
(unless one uses a DEBUG build).
By adjusting the default load offset for Juno and VFP to be 512K
aligned in the first place we can skip this copying and boot much
faster.
Tested on Juno.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
2016-01-08 10:15:44 -05:00
Robert P. J. Day
f5abb40997 include: Correct "requset" typoes in misc.h
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
2016-01-08 10:15:42 -05:00
Simon Glass
dd8e42900b rockchip: Fix the configuration for chromebook_jerry
Various updates did not make it through to this board. Also the instructions
for building a SPI image are no-longer correct. Fix these so that Jerry can
boot to a prompt again.

Signed-off-by: Simon Glass <sjg@chromium.org>
2016-01-08 07:59:07 -07:00
Simon Glass
70caa97108 usb: Allow up to 7 storage devices
The current limit of 5 is not enough for the driver model USB tests. Really
we should not have a limit but the driver model code still uses the
usb_dev_desc[] array, which has a limit.

Increasing the limit by 2 should not bother anyone. Adjust it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
2016-01-07 10:27:07 -07:00
Andrey Skvortsov
587c3f8ebe imx_watchdog: always set minimal timeout in reset_cpu
The problem is that timeout bits in WCR register were leaved unchanged.
So previously set timeout value was applied and therefore 'reset'
command takes any value up to two minutes, depending on previous
watchdog settings, instead of minimal 0.5 seconds.

Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
2016-01-07 17:54:53 +01:00
Peng Fan
ce2190f525 imx: mx6ul: disable VIDEO for SPL
With DEBUG macro enabled, SPL build failure:
"
arch/arm/cpu/armv7/built-in.o: In function `reset_misc':
~/uboot/arch/arm/cpu/armv7/mx6/soc.c:406: undefined reference to `lcdif_power_down'
scripts/Makefile.spl:244: recipe for target 'spl/u-boot-spl' failed
"
Wrap VIDEO settings with ifndef CONFIG_SPL_BUILD

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
2016-01-07 17:51:47 +01:00
Eric Nelson
1aa2d074a7 mmc: update MMC_ERASE argument to match Linux kernel.
Table 41 of the JEDEC standard for eMMC says that bit 31 of
the command argument is obsolete when issuing the ERASE
command (CMD38) on page 115 of this document:
	http://www.jedec.org/sites/default/files/docs/jesd84-B45.pdf

The SD Card Association Physical Layer Simplified Specification also
makes no mention of the use of bit 31.
	https://www.sdcard.org/downloads/pls/part1_410.pdf

The Linux kernel distinguishes between secure (bit 31 set) and
non-secure erase, and this patch copies the macro names from
include/linux/mmc/core.h.

Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Eric Nelson <eric@nelint.com>
Tested-by: Hector Palacios <hector.palacios@digi.com>
2016-01-04 11:17:43 -05:00
Tom Rini
f1993ca066 Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2016-01-03 10:32:24 -05:00
Eric Nelson
f0b5f23f32 ARM: imx: fsl_esdhc: fix usage of low 4 bits of sysctl register
The low four bits of the SYSCTL register are reserved on the USDHC
controller on i.MX6 and i.MX7 processors, but are used for clocking
operations on earlier models.

Guard against their usage by hiding the bit mask macros on those
processors.

These bits are used to prevent glitches when changing clocks on
i.MX35 et al. Use the RSTA bit instead for i.MX6 and i.MX7.

>From the i.MX6DQ RM:
	To prevent possible glitch on the card clock, clear the
	FRC_SDCLK_ON bit when changing clock divisor value(SDCLKFS
	or DVS in System Control Register) or setting RSTA bit.

Signed-off-by: Eric Nelson <eric@nelint.com>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Hector Palacios <hector.palacios@digi.com>
2016-01-03 15:21:21 +01:00
Stefan Brüns
faa7db24a4 usb: Move determination of TT hub address/port into separate function
Start split and complete split tokens need the hub address and the
downstream port of the first HS hub (device view).

The core of the function was duplicated in both host/ehci_hcd and
musb-new/usb-compat.h.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
2015-12-31 16:16:29 +01:00
Stefan Brüns
c75f57fba4 usb: Alloc buffer for USB descriptor dynamically
The configuration descriptor includes all interface, endpoint and
auxiliary descriptors (e.g. report, union) so 512 bytes may not be enough.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2015-12-31 10:05:31 +01:00
Tom Rini
40253dd12a Merge git://git.denx.de/u-boot-socfpga
Conflicts:
	include/configs/axs101.h

Signed-off-by: Tom Rini <trini@konsulko.com>
2015-12-24 09:31:35 -05:00
Marek Vasut
c339ea5bfe arm: socfpga: Add support for Denali NAND controller
Add common configuration bits for the Denali NAND controller and also
support for using it as a boot device in SPL.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
2015-12-22 21:30:02 +01:00
Marek Vasut
eba522a0f7 arm: socfpga: Enable DFU MMC support only if DM_MMC is enabled
It is not possible to compile DFU MMC support if the MMC support is not
compiled into U-Boot. Secure the code with an ifdef to prevent compiler
splat.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
2015-12-22 21:30:02 +01:00
Marek Vasut
4197a0f45b arm: socfpga: Enable SPL MMC/SPI support only if DM_MMC/SPI is enabled
It is not possible to compile MMC/SPI SPL if the respective DM_MMC/DM_SPI
bits are not enabled. Secure the code with an ifdef to prevent compiler
splat.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
2015-12-22 21:30:02 +01:00
Chin Liang See
94f53a7ddf arm: socfpga: sr1500: Update qspiboot to use UBIFS
Update the qspiboot console command to use UBIFS instead
of old jffs2 file system.

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>
Cc: Pavel Machek <pavel@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
2015-12-22 21:30:01 +01:00