Commit graph

35210 commits

Author SHA1 Message Date
Abhishek Sahu
3edd3544f0 mtd: qcom: write NAND_CTRL only once
Currently NAND_CTRL register write generates error.
Register writes to operational registers should always be done
through command descriptors if BAM_MODE is already enabled.
For NAND boot, bootloader already enables BAM_MODE so read the
NAND_CTRL register value and write only if BAM_MODE is not set.

Change-Id: Iabc3e06dc7d8d8b36cdf35907217e1c4d7cc960a
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-05-04 14:55:07 +05:30
Linux Build Service Account
290e544e19 Merge "ipq807x: Add the debug log for the tftp died issue" 2018-01-18 05:41:00 -08:00
Linux Build Service Account
adb6b986e0 Merge "ipq40xx: Register SPI nor as mtd device" 2018-01-18 05:40:58 -08:00
Sham Muthayyan
35c8790688 ipq807x: Add the debug log for the tftp died issue
Change-Id: Ie81a360ecefe3999b893c815ace21b425a0e96e1
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-18 14:09:05 +05:30
Sasirekaa Madhesu
77907d6fd3 ipq40xx: Register SPI nor as mtd device
Registering SPI nor flash as mtd device was based
on 'spi_gpio' entry in dts, whereas it will be done
based on 'spi_nor_available' in this patch as spi_gpio
entry is not required in some of the SPI nor
supported boards.

This patch also enables the spi nand support
in DK04-c5 board.

Change-Id: I2d70a6c108321d0f504daab7bc4e74739499582a
2018-01-18 12:09:39 +05:30
Sham Muthayyan
be6400b9d7 ipq807x: Add ipq_mdio commands
This command helps to debug the phy issues.

Change-Id: If8354d6826795d9ef9d44112582d3b911963bda5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-16 21:32:50 +05:30
Sham Muthayyan
47bbd2ea51 ipq: qca: Fixed AQ-FW for ipq40xx and ipq806x
The AQ-FW support is used only in ipq807x. Add the __weak for
ipq806x and ipq40xx boards.

Change-Id: If5b13b1a9c98d7b74decd15450377f8e866d33e2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-16 15:05:01 +05:30
Linux Build Service Account
c2cf85a1ad Merge "ipq807x: usb: gadget: Restricting usb gadget device to work only on "high-speed"" 2018-01-10 19:36:55 -08:00
Linux Build Service Account
a6319f1486 Merge "ipq806x: fix i2c issues on AK" 2018-01-10 08:36:56 -08:00
Gokul Sriram Palanisamy
e1b9106107 ARM: qca: Skipping u-boot prompt during crashdump
If crashdump magic is found, should not allow user
to access u-boot prompt as tz will be in unsecure state.

Change-Id: Icdc94c33fb87664857bafa981950f9768794cf11
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-10 04:27:44 -08:00
Tushar Nimkar
7f88586a6e ipq807x: usb: gadget: Restricting usb gadget device to work only on "high-speed"
This patch will change the default "super-speed" mode to "high-speed"
If 'usb_mode' is setting to "peripheral" in u-boot it will set with
"high-speed" as 'maximum-speed'. Changes are only for USB port 0.
Affected features : diag, USB console.

Change-Id: I60708cfb4706eea77f00cb5c2bedc7e7b77989f5
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2018-01-09 06:26:15 -08:00
Sham Muthayyan
897bc3b2a4 ipq807x: Fixed the AQ phy reset
Removing the delay for boot time.

Change-Id: Iab968986d58aa5bc930b7c03bb16f5b1041be3b1
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-09 06:17:13 -08:00
Linux Build Service Account
e85f60b2d8 Merge "ipq: qca: move smem_ram_ptable structure to board specific" 2018-01-09 03:18:37 -08:00
Linux Build Service Account
3a57e86711 Merge "ipq40xx: enable SPI NAND support" 2018-01-09 03:18:36 -08:00
Linux Build Service Account
41d043fcf2 Merge "ipq807x: Add support for fail-safe boot on WIFI FW partition." 2018-01-09 03:18:21 -08:00
Antony Arun T
07f112afaf ipq806x: fix i2c issues on AK
This patch fixes the issues in below i2c commands.
i2c probe , i2c md and i2c mw commands.

Change-Id: I3dd99e8846452b20a71b0664d325b309f3564579
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-01-09 00:11:38 -08:00
Rajkumar Ayyasamy
8d368edb1a ipq40xx: enable SPI NAND support
This patch enables SPI-NAND support for DK and making
chip select gpio configurable from DTS.

Change-Id: I2ca7d3021fa27da1d83e2a787a1dc626919124f8
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-08 20:31:35 +05:30
Kathiravan T
083a3f7efb ipq: qca: move smem_ram_ptable structure to board specific
ipq806x has different alignment of smem_ram_ptable structure when
compared to ipq40xx / ipq807x, which leads to fetching of wrong
information.

This patch addresses the issue by moving the above structure to
board specific.

Change-Id: If7bf2fc54243fc38d1b0a5c9e6f6ba6f9641c700
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-01-04 20:52:52 -08:00
Venkat Raju Sana
2b68fba7af ipq807x: Add support for fail-safe boot on WIFI FW partition.
Change-Id: I82a541555298a589e6acf9a57d56304af441a0ce
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2018-01-04 04:28:28 -08:00
Sasirekaa Madhesu
cc3573b68a ARM: qca: dts: Adding support for DK04 and DK07 boards
Adding support for DK04-C2,C3,C4,C5 and
DK07-C1,C2,C3 boards.

Change-Id: I2727645086328331deffd63849bedbf119d163c8
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-01-04 02:29:30 -08:00
Linux Build Service Account
f2d892333f Merge "ipq40xx: move to spi dma driver from fifo driver" 2018-01-03 10:35:24 -08:00
Linux Build Service Account
07e4cea9c0 Merge "qca: psci: Added support to enable secondary cores" 2018-01-03 07:33:07 -08:00
Linux Build Service Account
190a7c71c3 Merge "ipq40xx: Add SPI NAND support" 2018-01-03 04:36:58 -08:00
Rajkumar Ayyasamy
d96ce76277 ipq40xx: move to spi dma driver from fifo driver
Enabling spi dma driver for ipq40xx. This patch
also enables rx and tx pipe configurable from dts.

Change-Id: Id6009f6e9863ab2cdf8b105461d62aa68e3d004b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-03 04:34:54 -08:00
Gokul Sriram Palanisamy
e5b2b114f8 qca: psci: Added support to enable secondary cores
Change-Id: I1211577b7bbaf3fefba3613e46d25c7724e4d555
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-02 02:20:45 -08:00
Rajkumar Ayyasamy
f44fe93184 ipq40xx: Add SPI NAND support
Change-Id: I74de22fcea6455f73f263672b72b30b796f6c820
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-02 14:57:16 +05:30
Gokul Sriram Palanisamy
8e2326232d Revert "ipq806x: use proper partition for env varibales in eMMC"
This reverts commit 6345e2888c.
2017-12-29 16:30:47 +05:30
Linux Build Service Account
de84bbb6b5 Merge "eth: Moved eth_initialize to end of autoboot" 2017-12-28 04:32:22 -08:00
Linux Build Service Account
3e3685a601 Merge "ARM: sdhci: Added auto increment for command timeout" 2017-12-28 01:33:53 -08:00
Gokul Sriram Palanisamy
a23d322ca1 eth: Moved eth_initialize to end of autoboot
If autoboot command fails, it returns to prompt
without ethernet initialized. Hence, moved it to
the end of autoboot to make sure ethrernet is
initialized before entering the prompt.

Change-Id: I79ea6f51842c544e9eb3b97bf7658c45feb34f0b
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-12-28 10:51:35 +05:30
Linux Build Service Account
adaaa17195 Merge "ipq806x: enabled USB support" 2017-12-27 15:35:42 -08:00
Linux Build Service Account
b2d362e64d Merge "ipq806x: use proper partition for env varibales in eMMC" 2017-12-27 07:53:53 -08:00
Kathiravan T
2e4f4226e6 ipq806x: enabled USB support
Change-Id: I621d9de5c33dc78fb8121194eb1560ac817afe7a
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-27 09:32:30 +05:30
Linux Build Service Account
0f0347f694 Merge "ipq40xx: add snapshot of spi_nand driver" 2017-12-26 06:59:33 -08:00
Gokul Sriram Palanisamy
0c3cc6d7e7 ARM: sdhci: Added auto increment for command timeout
Change-Id: I79a2ec29e5623e12838e82581324c41dab78b872
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-12-22 03:44:23 -08:00
Kathiravan T
6345e2888c ipq806x: use proper partition for env varibales in eMMC
In eMMC flash, whenever we save the env variables, it is updated in
the wrong offset instead of using the APPSBLENV partition, which leads
to the system hang in the next reboot. This patch addresses the same.

Also, moved the function board_mmc_env_init to common/env.c, since
the same functionality is used across ipq806x/ipq40xx/ipq807x.

Change-Id: I7e85cbb004ab1ca4d7c926359a8d9a1912922971
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-22 00:09:37 -08:00
Kathiravan T
f83751a0a2 ipq806x: enable secure dump collection
Change-Id: I07e422262a8b77b7aded2a1f093126306e3c7450
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-21 20:24:34 -08:00
Linux Build Service Account
4ffdd3caaf Merge "ipq807x: uboot: spi : code clean up" 2017-12-21 03:57:58 -08:00
Linux Build Service Account
a44535ff2f Merge "ipq: qca: Enabled the SF env" 2017-12-21 03:57:58 -08:00
speriaka
27e5321543 ipq: qca: Enabled the SF env
Change-Id: I040e4de74c7e7fffcfcef416a4772351deb7a79b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-21 10:44:12 +05:30
Sham Muthayyan
91b49b6910 ipq807x: Enable the PPE tx_mac only if the phy link is up
Enable the PPE tx_mac only if the phy link is up else disble
the PPE tx_mac.

Change-Id: I7226a104fa287f8378b98923a00d0caa3f91079d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-19 22:56:58 -08:00
speriaka
77fef22256 ipq807x: uboot: spi : code clean up
This patch involves changes which makes
sure that spi related functionalities are
used only when the config corresponding
to it is defined.

This change will allow us to disable or
enable spi as per our need.

Change-Id: I6c3865a6028b9f2a50fe0bface35b1695b17b515
Signed-off-by: speriaka <speriaka@codeaurora.org>
2017-12-19 13:48:41 +05:30
Kathiravan T
c2ecb4a159 ipq806x: update CONFIG_ENV_SIZE with proper size
kernel fw_env config has statically defined env size
to 256KB on NAND and eMMC which requires u-boot also
to be configured the same way.

Change-Id: If463896ff861036bc856ef7bd342f6233cd82d7a
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-19 00:18:35 -08:00
Sham Muthayyan
a1aa6395b0 ipq807x: Added the 8033 port for uniphy instance 0
Change-Id: I34005349d1dbb74246dbf812f6dbe1ff9024a827
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-17 21:39:13 -08:00
Sham Muthayyan
102d8097d4 ipq807x: Fixed 8033 clocks to improve performance
Change-Id: I53d658b4ab47ba26117f10f7dd34f95cb9cd0cf5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-17 21:39:00 -08:00
Kathiravan T
3527e1e29a ipq806x: Added length check in tftp
Added length check in tftp to make sure the image file address
cannot start in u-boot reserved memory (RAM start + ~32MB) and
the image size cannot exceed (RAM end - ~4MB), so that it cannot
lead to Uboot stack corruption.

Change-Id: Ia045cc57d22c2e6eb7999b2e461a0e652ce2e3ae
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-15 14:37:39 +05:30
Sham Muthayyan
bbfe68e787 ipq807x: Enable Ethernet for HK06
Change-Id: I78571834387d12f84b979b34809b4c817f014ab6
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-13 19:52:55 +05:30
Sham Muthayyan
a60121fe0a ipq807x: Add SF env support
Change-Id: I4ddf96b965e22c980a4c4ea02307afb361d639ec
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-13 18:37:34 +05:30
Vasudevan Murugesan
46632823a3 Revert "ARM: qca: Skipping u-boot prompt during crashdump"
This reverts commit 7e12e80ba8.

Change-Id: Ib5b47336577e84a4033e8bdb079f34939e5045df
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-12-12 16:03:12 +05:30
Sham Muthayyan
3e1a092e67 ipq807x: Fixed the i2c register and data
Change-Id: Ib0f63da02d80430893a34b4f45a303c6cb307558
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-11 19:30:00 -08:00