Commit graph

37165 commits

Author SHA1 Message Date
Sham Muthayyan
b89040defa ipq807x: Added the USXMII speed and clock
Change-Id: Ieb3e01eef27807091e0a1670d6b7c25334bed396
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:38 -07:00
Sham Muthayyan
92f52b796e ipq807x: Aquantia phy init support
Change-Id: I0f714e0862c8002aa49497af0b65e5d5e61a8b64
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:33 -07:00
Sham Muthayyan
f08292a724 ipq807x: Added the UXSGMII mode support
Change-Id: I69363bd2c8f2fcaf5a41f63b7d509799353ac686
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:26 -07:00
Sham Muthayyan
546ffbe6c8 ipq807x: Added the Aquantia phy support
Change-Id: I4c61cd57cf02a97b6410ac4488e2dbe6e6a3cfd3
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:20 -07:00
Sham Muthayyan
b5a3729df6 ipq807x: Aquantia phy out of reset
Change-Id: I1f13873387e7a5d5ef3242e7cf0798a08ffd0336
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:07 -07:00
Sham Muthayyan
643f0acddf ipq807x: Enabled the 8033 phy support for DB-HK02
Change-Id: Ifa9fcb7ee3f9263e97d81dd8ea984a2c9923af2a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:00 -07:00
Sham Muthayyan
20da321f4a ipq807x: Enabled the 8033 in DB-HK01 board
Change-Id: I3ad840997473ae41a5383e42834d1e9ce116af95
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:55 -07:00
Sham Muthayyan
a3abb0f382 ipq807x: Add the 8033 phy support
Change-Id: If834f2ec2424a05c7ec2b6b26224a1d753551af8
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:49 -07:00
Sham Muthayyan
6a012e63d6 ipq807x: Add the multiple phy support
Change-Id: I8d22e267ccad0f8f14532e46f379e45faf32bad5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:44 -07:00
Sham Muthayyan
11d70f9af5 ipq: Fix the 8033 phy driver
Change-Id: I99462cf2cfe820bb2b59b186dd9c13317c780670
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:37 -07:00
Sham Muthayyan
37be3e378e ipq: Move qca8033 phy driver into common
ipq40xx, ipq807x hardware share the qca8033 phy. So the qca8033 phy
driver has been moved to common directory for use by both the
hardware.

Change-Id: Ic972f00770c9e3cbaf4d727df21f19cd926ddce2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:29 -07:00
Sham Muthayyan
856945d0de ipq807x: Add the PPE interface mode support
This patch added the uniphy interface mode and port mux select
for PSGMII and SGMII.

Change-Id: I26f18a855b9972a358583d706d3f8a8bf09401cc
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:19 -07:00
Linux Build Service Account
23f6546a5d Merge "ARM: env_nand: Updated env to use complete partition" 2017-09-13 10:04:49 -07:00
Linux Build Service Account
3f381d7b20 Merge "Test change for QSDK single dispatcher" 2017-09-13 06:18:24 -07:00
Gokul Sriram Palanisamy
8a3c619b47 ARM: env_nand: Updated env to use complete partition
nand env size was restricted to 256KB out of
the available 512KB to keep it compatible with
kernel. When a badblock is introduced,
env fails to save due to the restricted range.

With this patch, it can now use upto the end
of partition upon skipping any badblocks
but only saving 256KB.

Change-Id: I27f6932fe537fa4c63d890bfe583c48e45fe156b
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-13 15:48:06 +05:30
Vasudevan Murugesan
b94509eaa9 ipq807x: usb: Added SSPHY support
Change-Id: I0fc72c80e2631bad6fb587f951a03e0ef8deea0b
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-12 16:15:38 +05:30
Stefan Wahren
b77ce142bb mmc: add MMC_VERSION_5_1
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
(cherry picked from commit 1a3619cf82)

Change-Id: I7884f7b58cadb6935ffa266d35af64a4e5ca68cb
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-12 15:25:15 +05:30
D Harilakshmi
b39d0cff5d Test change for QSDK single dispatcher
Change-Id: I98954ce23d0e5b353016f126acb54f0d2e68fba5
Signed-off-by: Kalyan Muddala  <kmudda@codeaurora.org>
2017-09-12 11:26:09 +05:30
Linux Build Service Account
81550631dd Merge "ipq807x: Fix KW issues in sysupgrade.c and cmd_bootqca.c" 2017-09-07 19:45:24 -07:00
Linux Build Service Account
9b26f91ccc Merge "ipq807x: Fix various KW warnings in drivers" 2017-09-07 19:45:24 -07:00
Linux Build Service Account
d9d11790df Merge "ARM: usb: Stopping USB before deinit" 2017-09-07 19:45:23 -07:00
Gokul Sriram Palanisamy
4da865f185 ARM: usb: Stopping USB before deinit
Device active flag is set each usb device
while usb is initialized. This flag is
cleared after usb device is removed.

Including usb_stop removes device and clears
this flag preventing usb_stop being called
after usb clock is disabled.

Change-Id: Ic4474a8d98893f1483ab85821020763788ae69d4
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-07 17:04:24 +05:30
Gokul Sriram Palanisamy
767b457534 ipq807x: Fix KW issues in sysupgrade.c and cmd_bootqca.c
Change-Id: I665f3d596cf235be7347faf68f0bf1ea8b10de7a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-07 04:17:41 -07:00
Gokul Sriram Palanisamy
bc7a78c941 ipq807x: Fix various KW warnings in drivers
Change-Id: I7c5c61beeeb00cb9266464a7a084e105a224357d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-07 04:17:21 -07:00
Sanjeev N
9908fc34a6 ipq807x: Added length check in tftp
Added length check in tftp to make sure that the image
can only be written in the Linux HLOS region and WLAN
area, so that it does not lead to Uboot stack corruption.

Change-Id: Ide3c62c1fbf09be24286b5536b41cfc56227eacc
Signed-off-by: Sanjeev N <nsanjeev@codeaurora.org>
2017-09-06 04:35:06 -07:00
Linux Build Service Account
622b74d073 Merge "ubi: fix data aborts in case of NAND bit flips during block read" 2017-09-05 23:01:08 -07:00
Abhishek Sahu
3813ce677b ubi: fix data aborts in case of NAND bit flips during block read
The UBI layer generates the following data aborts if any of the
NAND block contains bit flips

    ubi0: attaching mtd2
    ubi0: fixable bit-flip detected at PEB 149
    ubi0: scanning is finished
    ubi0: fixable bit-flip detected at PEB 149
    data abort
    pc : [<4a934cc8>]          lr : [<4a933aec>]
    reloc pc : [<4a934cc8>]    lr : [<4a933aec>]
    sp : 4a77f2e0  ip : 00000095     fp : 00000075
    r10: 000001b7  r9 : 4a77fea0     r8 : 00000001
    r7 : 0001f000  r6 : 0001f000     r5 : 4a785e40  r4 : 4a7c4180
    r3 : 00000000  r2 : 00000075     r1 : 4a7860b8  r0 : 4a7c49c0
    Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
    Resetting CPU ...

UBI layer will move the data from original block to some other
block in case of bit flips in the function ubi_eba_copy_leb. This
function uses volume EBA table vol->eba_tbl. The current UBI code
calls ubi_wl_init followed by ubi_eba_init but the ubi_eba_init
only initializes the volume EBA table. In case of bit failure,
the ubi_wl_init calls function __schedule_ubi_work which will
call ubi_eba_copy_leb and triggers data abort.

ubi_attach() {
    ubi_wl_init ->  __schedule_ubi_work -> ubi_eba_copy_leb
    ubi_eba_init
}

The UBI code has been written for Linux kernel and it has been
ported to UBOOT. Since UBOOT does not support threads so all the
thread functions are being called in uboot synchronously.
In Linux kernel, the UBI background thread starts
after the initialization, which is being controlled by
thread_enabled variable which will be set to true after all
initialization.

Now this patch checks for thread_enabled variable and call the
do_work only if the thread is enabled.

Change-Id: I4b2b40031dbd5f16ceefef541248973ca326cd9c
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2017-09-05 16:52:06 +05:30
Saravanan Jaganathan
3a9f14f1e6 ipq807x : Dcache fix for DDR more than or equal to 3GB
Change-Id: Ia9eccd72cd2c721517d0dfedc5783be8f59fe30a
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2017-08-29 22:47:53 -07:00
vijay kumar
01b8983f67 lib: fdt: add integer overflow checks in fdt header
these checks will usefull in finding the integer overflow
in fdt header fields.

(cherry picked from commit b6b7c1e767cd03e34fe835115d01f83d935abf3a)

Change-Id: I8469116124e4c0086885994132345df95bbf3bdc
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-08-27 22:30:46 -07:00
Linux Build Service Account
39b207217d Merge "ARM:cache-cp15: Set Domain Access Control Register" 2017-08-22 20:16:26 -07:00
Linux Build Service Account
ee2d084fd8 Merge "ipq807x: dts: Added devicetree for HK01-C2 board" 2017-08-22 20:16:25 -07:00
Ramesh Muthusamy
0afdc8209b ipq807x : Enabling MDIO C45 and Uniphy3 support
Change-Id: I9236aa2861a004a030e7e88403302d5e09949ad7
Signed-off-by: Ramesh Muthusamy <rmuthusa@codeaurora.org>
2017-08-22 15:00:18 +05:30
Gokul Sriram Palanisamy
914c8702bc ipq807x: dts: Added devicetree for HK01-C2 board
Change-Id: Ic175f0737c08579220945e0abecfb9ab7b968518
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-22 14:50:53 +05:30
Gokul Sriram Palanisamy
fd0bc4b933 ARM:cache-cp15: Set Domain Access Control Register
A processor can execute instructions from a memory
region only if the access permissions for its
current state permit read access, and the XN
bit is set to 0.

The domain access is to be set as "clients"
for proper functioning of XN bit.

Change-Id: I86daffa828fa7b2fa365e358ef7042630ab98d60
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-22 02:01:19 -07:00
Gokul Sriram Palanisamy
9dc890a648 ipq807x: Reset operation through PSCI
Change-Id: Ib1f2e8f7990101aaa48c3bc259ec293008efca02
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-17 00:02:58 -07:00
Venkat Raju Sana
71c93c6ee1 ipq807x: Increase size of CONFIG_SYS_MALLOC_LEN
UBI is memory greedy and needs more malloc area
while accessing  above 256M of Flash.

Change-Id: I2521eedaf483e104bcb37886003085ed74c8bf0c
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2017-08-14 13:38:32 -07:00
Gokul Sriram Palanisamy
fbc358204d ARM: eMMC: Updated number of alternate partitions
Updated number of alternate partitions and
alternate partition data structure to match
smem entry.

Change-Id: I62484e369ed3d35037237fde2d71f9af045e438a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-10 19:00:47 +05:30
Manoharan Vijaya Raghavan
5ed3415978 ipq807x: timer: Add get_ticks() and get_tbclk() API
get_ticks() will return the timer counter value.
get_tbclk() will return the timer frequency.

Change-Id: Ib698f1c1d58403ae22381b6de8c6518beb4c34cf
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2017-08-09 07:37:25 -07:00
Gokul Sriram Palanisamy
3f2b61ee41 ARM: qca: Updated support for crashdump onto flash
Increased context_dump size from 2K to 4K
for ipq8074 SoC.

Change-Id: I5f10c0f4081c6ebe155599bb2575b1347e1933d1
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-08 03:33:23 -07:00
Linux Build Service Account
36eece43ac Merge "ipq807x: Change the I2C speed to 400KHz" 2017-08-04 08:02:17 -07:00
Linux Build Service Account
d3329bc9cf Merge "ipq807x: Splitting EBICS dump if the size is greater than 1GB" 2017-08-04 08:02:16 -07:00
Linux Build Service Account
40972e4b2f Merge "common: nvedit: Support old format env default command" 2017-08-04 08:02:15 -07:00
Sham Muthayyan
d6372425b9 ipq807x: Change the I2C speed to 400KHz
Change-Id: I5498e07c18d44e07a93d81ffbbf3d40eb3ba2e66
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-08-04 01:34:15 -07:00
Gokul Sriram Palanisamy
a62e9c2e84 ipq807x: Splitting EBICS dump if the size is greater than 1GB
Change-Id: I043b124bef299e13147299e0c9e921520b17b1a5
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-03 20:24:25 +05:30
Gokul Sriram Palanisamy
4e88bbf154 ARM: qca: scm_call: Added fuseipq support
Added scm_call wrapper to support fuseipq
command to work with 64 bit scm_call.

Change-Id: Ie1fd2925e9f7ed5b3eb57eb44b1c360d0d7de916
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-03 18:25:47 +05:30
Aditya Kumar Patra S
d1afc220e5 common: nvedit: Support old format env default command
Change-Id: I5148f77bc4b616207ae1e8cf6e0cb2c04fdd5de3
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2017-08-03 05:36:44 -07:00
Linux Build Service Account
9c30999bb6 Merge "qcom: nand: fix NAND dummy spare area programming" 2017-08-03 05:36:34 -07:00
Linux Build Service Account
16562b7f20 Merge "qcom: nand: fixed the 8 bit NAND ECC support" 2017-08-03 05:36:34 -07:00
xiaofeis
4077f42d0a uboot: make port 5 work on 1000Mhz speed
Change-Id: Ic7e2724ae2ce08895c779ed166fca2a9a0dd6868
Signed-off-by: xiaofeis <xiaofeis@codeaurora.org>
2017-07-31 00:28:35 -07:00
Linux Build Service Account
4031462b20 Merge "ipq807x: Fixed flash ID for MX25U3235F" 2017-07-28 01:41:39 -07:00