Commit graph

8270 commits

Author SHA1 Message Date
Aditya Kumar Patra S
607aab806a qca: serial: Porting qcom serial common driver.
Modified common serial driver to work for all AK, DK and HK boards.

Made the driver more generic. The board specific
configurations are moved to respective board.c files.

Change-Id: I8aa0001d215126eb1dd15d75d6ab3f9139d6f919
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-09 00:13:51 -07:00
Ajay Kishore
ba15b4493a ipq807x: Added clock support
The clock routines specific to ipq807x will
live in clock.c.

Change-Id: I4bb0b5a28ff95d08fab7913ca89ffbe1882ba72f
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-07-29 17:27:20 +05:30
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
Ajay Kishore
39613cda7c qca: i2c: Enable i2c qup driver
These files are copied from:
https://source.codeaurora.org/quic/qsdk/oss/boot/uboot-1.0/tree/drivers/i2c/ipq40xx_i2c.c
https://source.codeaurora.org/quic/qsdk/oss/boot/uboot-1.0/tree/drivers/i2c/ipq40xx_i2c.h
https://source.codeaurora.org/quic/qsdk/oss/boot/uboot-1.0/tree/arch/arm/cpu/armv7/qca/clock.c
https://source.codeaurora.org/quic/qsdk/oss/boot/uboot-1.0/tree/arch/arm/include/asm/arch-qcom-common/clk.h

Change-Id: If80f05b01ee168d2bfde454b9534f9a1db559b12
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-07-28 12:40:10 +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
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
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
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
Linux Build Service Account
f07326d936 Merge "qcom: nand: Add QPIC NAND driver with BAM support" into eggplant 2016-06-26 21:43:26 -07:00
Linux Build Service Account
3467925840 Merge "qcom: dma: Add BAM support" into eggplant 2016-06-26 21:43:26 -07:00
Sham Muthayyan
df863e53b2 qcom: nand: Add QPIC NAND driver with BAM support
These files are copied from
https://us.codeaurora.org/cgit/quic/qsdk/oss/boot/uboot-1.0/tree/arch/arm/include/asm/arch-qcom-common/qpic_nand.h
https://us.codeaurora.org/cgit/quic/qsdk/oss/boot/uboot-1.0/tree/drivers/mtd/qpic_nand.c

Change-Id: I21956eae14487086680d81c21468dbde1306a8e2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-06-24 16:57:43 +05:30
Sham Muthayyan
1eb5034b0b qcom: dma: Add BAM support
These files are copied from
https://us.codeaurora.org/cgit/quic/qsdk/oss/boot/uboot-1.0/tree/arch/arm/include/asm/arch-qcom-common/bam.h
https://us.codeaurora.org/cgit/quic/qsdk/oss/boot/uboot-1.0/tree/drivers/dma/bam.c

Change-Id: I450227a1a85530ee78d6128c97ce722b6abec4bf
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-06-24 16:57:33 +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
Vasudevan Murugesan
a6f449b528 ipq807x: Modified micron flash params to support RUMI
Change-Id: I08c52c7218e01170c5fe489f1e910ccd2abfd852
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2016-04-29 11:35:42 +05:30
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
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
Balamurugan Selvarajan
27d0f93300 qca: ipq40xx: Add qca8075 switch support
Change-Id: I39fdbd864e9eb8e06bd9493eb1af1dcd48485635
Signed-off-by: Balamurugan Selvarajan <bselvara@codeaurora.org>
2016-04-08 16:47:19 +05:30
Balamurugan Selvarajan
f80519be25 qca: ipq40xx: Enable QCA8033 PHY driver
Change-Id: Ia1af1108c9850b56d89468e4fbd7a1cbaad262c3
Signed-off-by: Balamurugan Selvarajan <bselvara@codeaurora.org>
2016-04-08 16:46:25 +05:30
Balamurugan Selvarajan
788ce2c5ce qca: ipq40xx: Add support for MDIO driver
Change-Id: I404a264f53ef333f0b4b137f7a79f089b4d3d0bf
Signed-off-by: Balamurugan Selvarajan <bselvara@codeaurora.org>
2016-04-08 16:45:49 +05:30
Balamurugan Selvarajan
3522c2faad qca: ipq40xx: Add ess driver
Change-Id: If5f6ab192c5fca57296f9213404abcd6bb16bfb7
Signed-off-by: Balamurugan Selvarajan <bselvara@codeaurora.org>
2016-04-08 16:45:12 +05:30
Balamurugan Selvarajan
84ba768fc3 qca: ipq40xx: Add EDMA controller driver
Change-Id: I7f784bac9dedbbbc54cae3827bfe2aa826867c3c
Signed-off-by: Balamurugan Selvarajan <bselvara@codeaurora.org>
2016-04-08 16:44:39 +05:30
Linux Build Service Account
2758c33842 Merge changes Ib63a3920,I468af254,Iae0cc3bf,I367b3521,I3b7d64f5,I1ba2b87e into eggplant
* changes:
  qca: ipq40xx: Adding support for UART driver
  qca: ipq40xx: Enabling Makefile and Kconfig
  qca: ipq40xx: Adding dts support
  qca: ipq40xx: Adding board specific files
  qca: ipq40xx: Adding files iomap.h and gpio.h
  qca: ipq40xx: Addding smem related files
2016-04-07 22:54:12 -07:00
Akila N
03363dc9b9 qca: ipq40xx: Adding support for UART driver
Change-Id: Ib63a39202ad1475600ac6583aed85a52a7de82a7
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-06 22:15:38 -07:00
Vasudevan Murugesan
80664c0da4 ipq807x: mmc: Initial changes for compilable mmc driver
This patch has the initial changes required to make the
qca_mmc driver buildable. Also added the Kconfig
options required for the qca_mmc driver.

Change-Id: I15c0e9288ae5c7ae361659dff1e84b619de989a8
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2016-04-06 18:29:39 +05:30
Vasudevan Murugesan
056b5702d2 ipq807x: Added MMC Kconfig options
Change-Id: Ia487c6e887137db937eef29d8947501fcd071090
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2016-04-01 02:24:46 -07:00
Vasudevan Murugesan
a07af4aa36 ipq807x: mmc: Added eMMC driver files
Change-Id: Icf1683ebe1c7e99c336d884983215d7b416c988b
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2016-03-21 14:16:28 +05:30
Manoharan Vijaya Raghavan
7138d8ac1f dm: ipq807x: DM conversion for serial driver
Change-Id: I08290d0f8f690bc4899adfe08bf7b698105bc9a3
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-03-03 00:53:31 -08:00
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
Manoharan Vijaya Raghavan
ae1ec36950 qcom: serial: common serial driver
Porting serial driver from IPQ806x u-boot for IPQ807x

Change-Id: I860af26485231d5634f33422ca5cb7a0219e6125
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-02-25 11:58:48 +05:30
Tom Rini
b685c7348c Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2016-01-08 10:18:18 -05:00
Bin Meng
7ba34ff09f pci: layerscape: Adjust the return value when ls_pcie_addr_valid() fails
When trying to access non-existent/unsupported PCI devices in
ls_pcie_read_config(), when ls_pcie_addr_valid() fails it returns
error code and fills in the result with 0xffffffff manually. But it
really should return zero to upper layer codes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2016-01-08 10:15:49 -05:00
Bin Meng
9642b78cdf pci: imx: Adjust the return value when imx_pcie_addr_valid() fails
When trying to access non-existent/unsupported PCI devices in
imx_pcie_read_config(), when imx_pcie_addr_valid() fails it returns
error code and fills in the result with 0xffffffff manually. But it
really should return zero to upper layer codes.

Reported-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
2016-01-08 10:15:49 -05:00
Michal Simek
80dc99972b serial: zynq: Use static inline for _debug_uart_init()
Mark _debug_uart_init() as static to avoid sparse warning and
inline it to debug_uart_init().

Reported-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
2016-01-08 10:15:45 -05:00
Robert P. J. Day
76765375d7 bootcount: Correct #endif comment to match, other aesthetics
Correct mismatched comment on #endif to agree with its #if defined().

Also add some missing #endif comments for consistency, take out
extraneous blank lines for readability.

rday
2016-01-08 10:15:43 -05:00
Tom Rini
8c20dc4074 Merge git://git.denx.de/u-boot-dm 2016-01-08 10:02:25 -05:00
Joe Hershberger
c5a75339cf net: Fix delay in net_retry test
Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate packets on timeout)

Check the arp timeout and adjust the timeout start time before the call
to eth_recv() so that the sandbox driver has the opportunity to adjust
the sandbox timer after the new start time has been recorded.

Also, change the adjustment amount by 11 seconds instead of exactly the
10 seconds that the ping timout is expecting since the timeout check is
looking for the time elapsed to be greater than but not equal to the
specified delay.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: Simon Glass <sjg@chromium.org>
2016-01-07 12:18:58 -07:00
Tom Rini
67ecb84ccb Merge branch 'master' of git://git.denx.de/u-boot-spi 2016-01-07 12:41:57 -05: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
Måns Rullgård
88f91d1375 gpio: mxs: add name_to_gpio() function
Override the default name_to_gpio() function with one that
accepts strings of the form bank:pin.  If a colon is present
in the provided name, it behaves like the default version.

This lets the "gpio" command work with sane names rather than
requiring the user to enter the bank/pin composite in decimal.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
2016-01-07 17:54:16 +01:00
Peng Fan
fcbe8c5674 imx: mx7: fix the temperature checking for Rev1.1
To TO1.0, we can not rely on finish bit to read temperature. But to
TO1.1, the issue was fixed by IC, we can rely on finish bit for
temperature reading for TO1.1.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Adrian Alonso <aalonso@freescale.com>
2016-01-07 17:53:11 +01:00
Fabio Estevam
d584c68ce0 phy: atheros: Use ar8035_config for AR8031
Commit 08ad9b068a (" ar8031: modify the config func of ar8031 to
ar8021_config") selected 'ar8021_config' as the configuration function
for AR8031.

The correct would be to use 'ar8035_config' instead as AR8031/AR8035
have the same programming model and even share the same phy driver
in the linux kernel: drivers/net/phy/at803x.c.

Tested on a mx6qsabresd and wandboard, which now can work without
any PHY setup code in the board files.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-01-07 17:46:47 +01:00
Gong Qianyu
8770413f38 spi: fsl_qspi: fix an error of using GENMASK
This commit fixes the change of below commit
"spi: fsl_qspi: Use GENMASK"
(sha1 :bad490a24212c068c5b718b9189f47ea4075d078)

Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
2016-01-07 20:29:33 +05:30