Commit graph

8308 commits

Author SHA1 Message Date
Jaiganesh Narayanan
290b4e0b2d ARM: net: ipq807x: Added ethernet support for hk-01 h/w
Added the ipq807x ethernet edma, ppe, gmac driver support
in the u-boot

Change-Id: I1d8ddd19f2c3d3765adda2253d3b71876142aa59
Signed-off-by: Jaiganesh Narayanan <njaigane@codeaurora.org>
2017-01-16 14:37:51 +05:30
Prabhu Jayakumar
97c3087906 qca: move ARM specific files to another sublevel
As the U-boot source is going to be common between ARM and MIPS
architecture , it is required to pick only the files specific
to the respective architectures during the build.

So, move the qca arm target specific common files to another
sub level by specifying the ARCH arm.

Change-Id: I06b538834109981f21fef6270bfb8e437a2f5a7e
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2017-01-06 12:33:30 +05:30
Aditya Kumar Patra S
0ce2cb2d44 qca: ipq806x: SPI-NOR driver support
Change-Id: I0e6a664d825991780c03d18c8b5c0fc85bd67f66
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-12-21 01:10:03 -08:00
Linux Build Service Account
0fe6e3659a Merge "ipq40xx: dts: Add i2c gpios and clk frequency" 2016-12-20 18:08:46 -08:00
Gokul Sriram Palanisamy
5c0dd6970e ARM: qca: ipq8074: Added support for NOR+NAND
Change includes
1. Device tree entry for SPI_NOR GPIO configuration
2. Register SPI_NOR as psudo NAND

Change-Id: I4d271dcd2970af370975e4a8d9a78199e1cfd2a2
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-12-02 15:17:35 +05:30
Linux Build Service Account
2cb7ce9d73 Merge changes I8d729e8d,I960300c3,I20517eb6 into eggplant
* changes:
  ipq807x: Initialize TLV and CPU context dump size
  ipq806x: Initialize TLV and CPU context dump size
  ipq40xx: Added flash crashdump data support
2016-11-25 05:34:39 -08:00
Akila N
005e4c761d ipq40xx: dts: Add i2c gpios and clk frequency
Change-Id: I62e5acb28c6369149119cc0d7a1f0aff619f698a
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-11-24 16:21:32 +05:30
Ajay Kishore
3522095242 ipq806x: Initialize TLV and CPU context dump size
This patch initialize TLV and CPU context dump size,
required for crashdump collection in flash.

Change-Id: I960300c3ea6c97481a7c5fd551b648454c13deef
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-11-23 06:42:52 -08:00
G Dhivya
70dde8bf2e ipq40xx: Remove mmc_init call during board init
This fix removes the mmc_init that is being called during
board init to prevent error message in cases where eMMC
card is not connected.

Change-Id: I918c71c391002d24e704be30043ff0cc8dfd4f83
Signed-off-by: G Dhivya <gdhivya@codeaurora.org>
2016-11-23 15:08:29 +05:30
Linux Build Service Account
46a3cf234e Merge "ipq806x: Added support for I2C diagnostics" into eggplant 2016-11-21 05:30:47 -08:00
Ajay Kishore
db05c5974f ipq806x: Added support for I2C diagnostics
Change-Id: I1287a66b25e437cd29feb755c034407ea1555ca5
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-11-16 12:21:11 +05:30
Prabhu Jayakumar
c4c0122082 MIPS: qca956x: initial changes for the AP152 target
This change initializes the CPU PLL , configures the
timer, DRAM & enables the serial console for the
AP152 target.

Change-Id: If2a6884813250c09a856c3cb2e1783bf3940619c
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2016-11-04 10:56:32 +05:30
Aditya Kumar Patra S
b917394e6f qca: ipq806x: Devicetree changes for ethernet support.
1. Added ethernet support for DB149
2. Added gmac_gpio node to aliases, to make
   it common across the boards

Change-Id: I18a3d3ebaac993635830d36bd7c51f91ebd6749b
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-11-02 11:45:27 +05:30
Ajay Kishore
d38583f326 ipq806x: nand: Add missing writebufsize initialization for ubi fastmap
The writebufsize is introduced in mtd struct for the ubi fastmap
support.
This is not initialized in the qpic nand driver which leads to ubi
error.
Fixed the following ubi error.
	bad write buffer size 0 for 2048 min. I/O unit
	UBI init error 22

Change-Id: I35778366b95930bd01108bf300f073ee21940bc6
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-20 13:02:43 +05:30
Gokul Sriram Palanisamy
96fa862182 qca: moving qpic-nand initialization to common location
Moves qpic-nand configuration and gpio initialization routine
to common location.

Change-Id: Ic78230d4e66450bb6804cf9cbd79cec9e8d2f5df
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-18 05:27:50 -07:00
Sham Muthayyan
7da9e191b4 mtd: nand: Fixed the nand controller for IPQ806x
Change-Id: I3d5ca487d809f72f3b2015f7dd02eb5b4daf536d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-10-17 02:34:24 -07:00
Sham Muthayyan
d3c1ef65db mtd: nand: Add nand controller driver for IPQ806x
Change-Id: Ie424c792da6cd0850ecbc0236e62102cf18e38f6
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-10-17 02:33:39 -07:00
Aditya Kumar Patra S
85671fbdd2 qca: ipq806x: Moved clock.c to driver/clk/ location.
Change-Id: Ib4246f2fbe0ab0085827833b93c71835255c5361
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 01:41:38 -07:00
Aditya Kumar Patra S
d2639a4f08 qca: ipq806x: Adding ethernet init sequence.
1. Added Ethernet and switch init calls.
2. Added GMAC config info to Devicetree.
3. Enabled Network components in config file.

Change-Id: I1704b01ca9f991934045a2d23f52d1af0f490aab
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 01:41:29 -07:00
Aditya Kumar Patra S
2c97e2ff04 qca: ipq806x: Modified Eth and Switch drivers to read data from DTB.
Change-Id: Ie35b52a2c022c29de341c63af13c67b95f7e565a
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 01:41:13 -07:00
Akila N
fa61274d27 spi: Initialise all propertis of spi_slave
All properties of spi_slave as defined in spi.h
are initialised to avoid junk values.

Change-Id: I154bddccb12fe7e5c4787e870927610de85cda1c
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-09-29 21:16:28 +05:30
Akila N
e34c2dc55e Fix compilation errors in clk driver
Change-Id: I8d25a211dea888c9143178aa28ec1e01297132c2
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-09-29 21:03:49 +05:30
Sham Muthayyan
dbc99acc0c qcom: pci: Enable PCI support for ipq40xx
Change-Id: I32506cf862a0ab83a05070fa9cfba9f09a96ddd3
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-09-29 14:29:01 +05:30
Sham Muthayyan
36af874980 qcom: pci: Rename the pci driver
Change-Id: Idbccf67a6c3cee631da75abfc80ee2eaa26599f8
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-09-28 00:37:31 -07:00
Sham Muthayyan
01560470d3 ipq40xx: pci: Add PCIE support
Change-Id: Ibf114efa7e6defb27c4c1a031516faa81448a046
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-09-28 00:37:23 -07:00
Linux Build Service Account
8d3d5c2071 Merge "ipq40xx: Adding ethernet init sequence" into eggplant 2016-09-23 01:42:17 -07:00
Linux Build Service Account
7308319e63 Merge "ipq40xx: Move clock.c to drivers/clk" into eggplant 2016-09-23 01:42:16 -07:00
Aditya Kumar Patra S
a5c1d92139 qca: ipq806x: Added QCA8511 card support.
Change-Id: I9aff645fd7e6879cb637676248f01a65d375d498
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-09-22 18:01:23 +05:30
Aditya Kumar Patra S
a98a8248bb qca: ipq806x: Added S17 PHY driver.
Change-Id: I389cb4b7201485635898d25f958712979cc9fb9c
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-09-22 17:55:40 +05:30
Aditya Kumar Patra S
50b331a6f7 qca: ipq806x: Added GMAC driver.
Change-Id: If35df7d37a82604b1f686765e21c79b1bae094f5
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-09-22 17:46:47 +05:30
Akila N
d3cefa47c5 ipq40xx: Adding ethernet init sequence
Change-Id: I3401f99e89e9dd3af952f70437524eadf3a1a80a
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-09-13 14:41:41 +05:30
Gokul Sriram Palanisamy
5b87057c5d qcom: nand: Add missing writebufsize initialization for ubi fastmap
The writebufsize is introduced in mtd struct for the ubi fastmap
support.
This is not initialized in the qpic nand driver which leads to ubi
error.
Fixed the following ubi error.
	bad write buffer size 0 for 2048 min. I/O unit
	UBI init error 22

Change-Id: Ie523affe2d202f0e7b3e17dc4ecec19f7c02de27
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-08-31 21:59:25 -07:00
Aditya Kumar Patra S
a30ad3ea21 qca: GPIO: Added API to read GPIO input.
Change-Id: Icaaf82668bbdec8aaac478f70a4ef29ffc1396a1
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-30 23:24:34 -07:00
Akila N
4f8a66afca ipq40xx: Move clock.c to drivers/clk
Change-Id: I11cdfe5f9ca52b928cd9fb7cc358b3592512161a
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-08-30 15:27:03 +05:30
Linux Build Service Account
83ea1846ff Merge changes I532ef7e8,I77614174 into eggplant
* changes:
  qca: ipq: Fixed compiler warning
  qca: ipq: Moved clock header files into include folder
2016-08-12 06:30:44 -07:00
Gokul Sriram Palanisamy
ddd2d641fe qca: GPIO: Moved GPIO bit value macros to dt-bindings
1. Moved gpio structure declaration to gpio.h
2. Moved gpio configuration bit value macros to dt-bindings

Change-Id: I9da1cc3703a92e02cfa86765c8d4afe5321fed35
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-08-12 15:15:01 +05:30
Ajay Kishore
bdaab34867 qca: ipq: Moved clock header files into include folder
Moved the clock header files into include folder to
escape from relative paths.

Change-Id: I776141741296e1138e45efb069479a0e26b4855c
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-08-11 23:12:37 -07:00
Aditya Kumar Patra S
69d8838ba5 qca: ipq: Added common GPIO driver.
Added device tree based IPQ common GPIO driver.
Updated device tree with uart_gpio data.

Change-Id: I4752609a766716d3bdd97f6ca1c1c20ffa3caa47
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-09 00:14:30 -07:00
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