Commit graph

35308 commits

Author SHA1 Message Date
Sasirekaa Madhesu
da5968ecbd ipq40xx: Enable USB device mode through dts patching
This commit enables USB device mode through dts patching.
To enable 'setenv usb_mode device' to be executed in u-boot 
environment before booting the kernel.

Change-Id: I2bcba292a514d04eed7e941a7feba00600fc1fc9
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-22 17:34:07 +05:30
Linux Build Service Account
1fbb054c7e Merge "ipq:Increase bootp timeout to support dhcp during stress" 2018-02-21 10:37:26 -08:00
Linux Build Service Account
2c3843028a Merge "ipq40xx: Add ethernet support for DK07-C3 board." 2018-02-21 06:01:13 -08:00
Linux Build Service Account
dff8f7d0dd Merge "ipq807x: Device tree support in u-boot for HK07" 2018-02-21 06:01:12 -08:00
Linux Build Service Account
0c2dda72a5 Merge "ipq807x: Enabled dcache" 2018-02-20 08:31:03 -08:00
Pavithra Palanisamy
7427356e03 ipq:Increase bootp timeout to support dhcp during stress
Change-Id: I7df8387a096a417e6850694e2107f9260b7afe58
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-02-20 19:03:28 +05:30
Linux Build Service Account
9e50bbd593 Merge "ipq806x: Customized environment size handling" 2018-02-20 02:38:09 -08:00
Linux Build Service Account
276a30716d Merge "driver: usb:Increase timeout for XHCI events by 1000ms" 2018-02-20 00:28:00 -08:00
Nikhil Prakash V
fc67dc00a8 ipq807x: Device tree support in u-boot for HK07
Adding device tree support for HK07 in u-boot-2016.

Change-Id: Ib1ea4ffe1df241d2c2cbd3fac4fff3f157eae077
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-02-20 13:25:49 +05:30
Gokul Sriram Palanisamy
bfabe17cdf ipq807x: Enabled dcache
Change-Id: I6b574801e56ae3c5b6ceccb20981813160ca699e
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-20 11:23:34 +05:30
Gokul Sriram Palanisamy
a3ee77558d dcache: Invalidated dcache before enabling
Change-Id: Ic4756624e077111243c2c1c9b3124a2e9f90c91a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-20 11:21:40 +05:30
Linux Build Service Account
4f4928b94d Merge "ipq40xx: Added support for spansion SPI NOR" 2018-02-19 06:04:03 -08:00
Linux Build Service Account
b7435142c8 Merge "ipq40xx: Add DK01-C3 config support for Standard profile" 2018-02-19 06:04:02 -08:00
Linux Build Service Account
2a332b2c0c Merge " ipq807x: fixed secure pshold API name" 2018-02-19 06:03:59 -08:00
Santan Kumar
55a83d0640 driver: usb:Increase timeout for XHCI events by 1000ms
Change-Id: Icfa9994db2445d6a365b309fb009de1832de3755
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-02-19 17:55:15 +05:30
Linux Build Service Account
11b1596619 Merge "qca: cache: Enabled dcache on board initialization" 2018-02-19 03:08:13 -08:00
Antony Arun T
1279dad923 ipq806x: Customized environment size handling
To save space in NOR flash, environment loading from flash is
handled differently for NOR and NAND. The size for NOR flash
environment is taken from partition size itself.

Change-Id: I588471b679fad0e96b836d43dc1a0136c5400fc1
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-02-19 16:11:21 +05:30
Saravanan Jaganathan
5fd15748ea ipq807x: fixed secure pshold API name
Change-Id: I448a1341bec82b1a35d671eb12b2ba94f29cdc1d
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2018-02-19 00:03:17 -08:00
Sasirekaa Madhesu
612713b37f ipq40xx: Add ethernet support for DK07-C3 board.
This patch enables ethernet initialization in
DK07-C3 board.

Change-Id: I70bf4dd2917b0fc02f937b236e68ebcb6b1c423c
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-19 12:02:27 +05:30
Gokul Sriram Palanisamy
19a90604e9 qca: cache: Enabled dcache on board initialization
dcache is enabled only during boot from flash.
During JTAG recovery, dcache_enable is skipped
to avoid cache issues in recovery environment.

Change-Id: Ie3003f67c787cbc6b88dc42017aeb2a9508d2ff9
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:40 -08:00
Gokul Sriram Palanisamy
4a788032d8 ipq807x: dcache support for mmc driver
This patch makes mmc driver dcache aware to keep
the mmc functionality intact, with or without dcache
is enabled.

flush_cache used here does both clean and invalidate
cache thus preventing data loss during unaligned access,
if any.

Change-Id: I0910bd17678d3855bba27e9f8f7c08606774b28d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:34 -08:00
Gokul Sriram Palanisamy
a9998014f9 ipq807x: dcache support for spi nor driver
Change-Id: Ic1c9319655dd937ce3345228a749bd08fccb572f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:30 -08:00
Gokul Sriram Palanisamy
a0ff1642d4 ipq807x: dcache support for nand driver
This patch adds the support on nand driver to work
when dcache is on.
flush_dcache_range will do both clean and invalidate.
To avoid any data loss when an un-aligned buffer used
in RX path, before giving buffer to bam and after bam
updates the data in buffer, buffer will be flushed.

Change-Id: Ib38d68726efe1692ae94c2be1af61cf29d1c2e50
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:23 -08:00
Sham Muthayyan
7d7aa70559 ipq807x: Add Cache support for ethernet
Change-Id: I58bf5e992175e73635f35b2b4bcbb44b501bd799
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-02-19 11:19:09 +05:30
Linux Build Service Account
e703375fa3 Merge "qca: Disabling dcache before scheduling secondary cores" 2018-02-17 14:00:39 -08:00
Linux Build Service Account
0f5b9a078e Merge "sf: params: Add MX25U12835F part support" 2018-02-17 03:54:30 -08:00
Gokul Sriram Palanisamy
9b5374d10a qca: Disabling dcache before scheduling secondary cores
Disabling dcache before scheduling secondary cores
and enabling it back after the cores are down.

Change-Id: I73011db903a0da1113d09fb8306b8d3f940ece60
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-16 04:56:25 -08:00
Sasirekaa Madhesu
6924926bbd ipq40xx: Added support for spansion SPI NOR
Change-Id: Ifac5a550715836c439563b848de11fb26d28aa5c
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-16 10:36:41 +05:30
Kathiravan T
7d93e5bcac ipq806x: FLASH XFER STEP register settings
This change is ported from U-Boot 2012.07 version. Reference commit:
commit a653a9f554 ('ipq806x: FLASH XFER STEP register settings')

Change-Id: I372b0745e53b2d7a222c3445183bb1407fe113d4
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-02-15 00:02:30 -08:00
Linux Build Service Account
bfa4e09dd3 Merge "ipq806x: Enabled HW Watchdog" 2018-02-12 10:12:15 -08:00
Linux Build Service Account
164f621923 Merge "ipq806x: Add run command support" 2018-02-12 10:12:12 -08:00
Linux Build Service Account
bb13bb1878 Merge "ipq40xx: Add run command support" 2018-02-12 07:18:32 -08:00
Linux Build Service Account
5e8f1fcc51 Merge "ipq806x: 8033 PHY reset through GPIO32 for the 11ad dock" 2018-02-12 07:18:31 -08:00
Linux Build Service Account
03aa6e3f42 Merge "USB: xhci:Use Max packet macro to align max packet with spec" 2018-02-12 04:08:21 -08:00
Antony Arun T
a87141b204 ipq806x: Enabled HW Watchdog
Change-Id: I0850c1082be7dcbd1301acca5ed345d6db72aa2e
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-02-12 16:18:59 +05:30
Balaji Jagadeesan
99baf3f2c0 ipq806x: Add run command support
Change-Id: I6c7d338b7a98a8d85eff16d3fd683b5f48397aa3
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-02-12 12:57:23 +05:30
Santan Kumar
dea8282911 USB: xhci:Use Max packet macro to align max packet with spec
Change-Id: I0b6141a17560e0b3ed21c05f2807b9f19c43d26c
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-02-09 18:35:17 +05:30
Rajkumar Ayyasamy
02deda8328 ipq806x: 8033 PHY reset through GPIO32 for the 11ad dock
In case of 11ad dock (AK01), 8033 phy needs to be reset,
before switch initialization. GPIO32 is configured to
reset phy.

Change-Id: I18a7f05b57c9a02adb27d58d8b4098d44edb49bd
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-09 17:18:44 +05:30
Abhishek Sahu
f7375a5dbe mtd: nand: ipq: erased page bitflips detection
Some of the newer nand parts can have bit flips in an erased
page due to the process technology used. In this case, ipq
nand controller is not able to identify that page as an erased
page. In case of bitflips, the ECC engine tries to correct the
data and then it generates the uncorrectable error. Now, this
data is not equal to original raw data.

Following logic is being added to identify the erased
codeword bitflips.

1. Maintain the bitmasks for the codewords which generated
   uncorrectable error.
2. Read the raw data again in temp buffer and count the
   number of zeros. Since spare bytes are unused in ECC layout and
   won’t affect ECC correctability so no need to count number of
   zero in spare bytes.
3. If the number of zero is below ECC correctability then it
   can be treated as erased CW. In this case, make all the data/oob
   of actual user buffers as 0xff.

Change-Id: I5a80cd371a926efa36c40b4db68e78ed78c30536
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-02-09 01:50:12 -08:00
Abhishek Sahu
408362f410 mtd: nand: ipq: reorganize read page error handling
Following are the major issues in current implementation

1. The mtd layer expects the driver to return non-negative
   integer representing the maximum number of bitflips that were
   corrected on any one ecc region. The mtd layer takes care of
   returning EUCLEAN based on returned number.
2. The read should return the complete data in case of
   EBADMSG so move the EBADMSG check in the main read function.

Change-Id: Iab3a28427e8350e8c99368762373f2cbce918786
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-02-09 15:18:54 +05:30
Abhishek Sahu
e86df26289 mtd: nand: ipq: init mtd ecc strength and bitflip_threshold
1. assign ecc strength in mtd structure which will be used by
   mtd layer
2. Initialize bitflip_threshold with 3*4 of ecc strength so
   that MTD layer will return EUCLEAN if number of ecc correction
   are more than bitflip_threshold.

Change-Id: I81cfe6059375117ced7888b877705919287a7be2
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-02-09 15:18:53 +05:30
Antony Arun T
fff58f6989 sf: params: Add MX25U12835F part support
Change-Id: Ib112587634758b0ada0e369971402f3e8ef6a8be
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-02-08 23:39:39 -08:00
Linux Build Service Account
4dcba1bb54 Merge "sysupgrade: Add support to authenticate image using TZ" 2018-02-08 23:34:03 -08:00
Linux Build Service Account
68f0e9fb64 Merge "ipq806x: Enabling pci for AP160 and Ap160_2xx board" 2018-02-08 18:36:16 -08:00
Linux Build Service Account
58f99d4204 Merge "qca: Add logic to restrict runmulticore command on secondary cores" 2018-02-08 18:36:15 -08:00
Linux Build Service Account
7be2d06674 Merge "mtd: nand: qcom: erased page bitflips detection." 2018-02-08 15:43:35 -08:00
Linux Build Service Account
3221496969 Merge "qca: spi-nor: Store the probe information to avoid unnecessary probes" 2018-02-08 15:43:34 -08:00
Sasirekaa Madhesu
9857b3461c ipq40xx: Add DK01-C3 config support for Standard profile
This patch is to support DK01-C3 dts which is required
for standard profile in linux 4.4 kernel.Linux 3.14 kernel
does not have DK01-C3, hence it uses DK01-C1 config.

Change-Id: I4afa8c4511e55f093b573cf42e04b0917ce7d0b4
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-08 18:40:41 +05:30
Linux Build Service Account
abdb324398 Merge "ipq40xx: Update emmc pin configs" 2018-02-08 05:06:22 -08:00
Rajkumar Ayyasamy
fd01d1b29b ipq806x: Enabling pci for AP160 and Ap160_2xx board
1. Added pci entries in AP160 and AP160_2xx dts

2. The wifi pcie card requires to be powered on from GPIO
pins. This patch also adds the same in AP160 dts file and
enable it during PCIe configuration.

Change-Id: Icd8f5741d5df38d46640c78a7475853e77b873a9
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-02-08 18:06:48 +05:30