Commit graph

34851 commits

Author SHA1 Message Date
Prabhu Jayakumar
eef8109a37 MIPS: qca956x: enable the ethernet driver
This change enables the GMAC and PHY driver for
the AP152 target

Change-Id: I2d4155754092a4d04d46a40624a68296f9c8fee0
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2016-11-04 15:33:12 +05:30
Prabhu Jayakumar
aee2b6dbdd MIPS: qca956x: enable the flash driver
This change enables the flash driver on u-boot for
the AP152 target.

Change-Id: I9778adf4a4d347fdcce16fbfede87f765302595c
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2016-11-04 10:56:59 +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
Gokul Sriram Palanisamy
89d3427cfc ipq8064: Added nand to aliases to enable nand
Added nand to ap145, ap160, ap160_2xx, ap161 and db149 device tree.

Change-Id: I867633b9d50ca2aa826138d164b422d085b2b7db
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-31 22:19:49 -07:00
Gokul Sriram Palanisamy
f6b4529449 qca: Modified the way serial init to looks for console and gsbi_base
Updated serial init to look for console property in aliases instead of
directly looking for serial node. This is to support device tree to
contain multiple serial nodes with different unit address to support
boards using different gsbi peripherals.

Change-Id: Iae741d7e56464a2a43f9132dfe87af62945ce60e
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-11-01 10:47:06 +05:30
Gokul Sriram Palanisamy
13e938b53d ipq806x: Added support for compressed dtb images
This commit lays a foundation for packing multiple dtb
images in a single itb image, by supporting compressed dtb
images. This is basically to support all boards across
different soc versions in a single itb image.
The plan is to compress the dtb images, so as to save flash space.

Change-Id: Iba81e311cfda55696209cf99c81e062980629871
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-26 17:04:12 +05:30
Gokul Sriram Palanisamy
b429ae2267 ipq8064: Enabled u-boot reset by enabling watchdog
On applying 'reset' command on u-boot, it enables the watchdog
with a default reset value. CPU will reset after the set value.

Change-Id: Idee257e6fcdf576e5209066fabeb76340465c25e
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-21 14:12:04 +05:30
Gokul Sriram Palanisamy
f62b258e04 ipq8074: Adding qpic-nand gpio configuration to device tree
Change-Id: Iac2039fa6eac0143ae8b7f086e4ac1b91070899c
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-20 07:37:41 -07:00
Gokul Sriram Palanisamy
8a8d34f7a0 ipq8064: Updated configuration name with soc_version
Inserted soc_version to configuration string
to support soc versions v2.0 and v3.0.

Change-Id: Ifbd92175312df15cb3adf250f964aa156bd33f71
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-20 07:37:33 -07:00
Gokul Sriram Palanisamy
79c21864bd qca: Updated smem qca_platform structure
Since smem structure is differnt for ipq8064 and ipq4019, Updated smem
structure table qca_platform to match both the SOCs.

Change-Id: Ia80fc3f8e4460785ed742b719617e6bcfd99ea27
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-20 20:05:09 +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
Manoharan Vijaya Raghavan
f6e3a7cfb2 ipq8064: Increased malloc size to an additional 256KB
Single image flashing fails with error: memory not allocated.
Increasing the malloc size to overcome this error.

Change-Id: If3e365ebd949eaf1e1d8153c63177099360a8f98
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-19 16:32:04 +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
Gokul Sriram Palanisamy
fae4bc20ab ipq8064: Added mtd_node for qcom_nand and updated MTDPARTS_MAXLEN to 4096
In ft_board_setup,
1. Added ipq nand device qcom,qcom_nand to mtd nodes list.
2. The maximum size of mtdparts used is 4096. Hence,
   updating MTDPARTS_MAXLEN to match this value.

Change-Id: Iede752ddf72c410c6f4a6f828d8c2caef90cbf09
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-17 23:20:26 +05:30
Gokul Sriram Palanisamy
e664dcf4bc arm: dts: ipq8064: Added bootdelay and bootcmd
Added bootdelay and bootcmd in device tree to support autoboot.
The value provided in the device tree will override the value provided
for CONFIG_BOOTDELAY and CONFIG_BOOTCOMMAND in board configuration.

Change-Id: I0482db510976eddb038ff8f7f38cafed07363051
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-17 02:57:15 -07:00
Gokul Sriram Palanisamy
9915ab836d arm: dts: ipq8064: Added support for DB149, AP145 and AP145_1xx.
Added device tree to extend support for DB149, AP145, AP145_1xx.

Change-Id: Ief0fdcc521bb3c884ada04dfece27bce47d00c9f
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-17 02:56:45 -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
Sham Muthayyan
282e0cde88 qca: ipq806x: Add NAND dts entries
Change-Id: Ia7f137e2716123ea71dffc607e18aeefce4b3e4a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-10-14 06:58:28 -07:00
Sham Muthayyan
55a105ea74 qcom: ipq: Add nand specific header files
Change-Id: Ie3a269d67589a3eaa2805212ec15fd6ddeac120a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-10-14 06:58:18 -07:00
Ajay Kishore
e11ebd407d ipq806x: enable saveenv command
Change-Id: If57cde6fb84da52dfb9cb21d1018dcfd82773989
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-14 18:26:59 +05:30
Linux Build Service Account
8db2cb33b6 Merge "ipq806x: Fixed compilation errors" into eggplant 2016-10-14 02:54:32 -07:00
Ajay Kishore
b3ba04edb8 ipq806x: Enabled board late init support
Change-Id: Ic5705320231f88b2249ed40d2158a8382669121b
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-14 13:17:21 +05:30
Ajay Kishore
3411acc4a9 ipq806x: Enabled default boot delay time
The default timeout is 2 seconds.

Change-Id: Ife40362e9afab668c42cb025ab1bc453334cd01e
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-14 13:14:18 +05:30
Ajay Kishore
84fd1890ce ipq806x: Fixed compilation errors
Change-Id: I00bc9fdc5fb58a0b4d63b90c416508e07ab49f25
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-14 13:05:41 +05:30
Gokul Sriram Palanisamy
c5d203be8e ipq806x: Creates u-boot.mbn by adding mbn header
Adds support to add mbn header to u-boot.bin as mbn header is needed by
sbl of all boards with ipq806x soc. A python script at tools/mkheader.py
is included which creates u-boot.mbn from u-boot.bin.

Change-Id: I070d82d9af0ed772cd4970b8fde152a8e3068823
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-12 08:58:50 -07:00
Manoharan Vijaya Raghavan
f338b8128a qca: Fixes objcopy flags to include device tree into u-boot.bin
With CONFIG_OF_COMBINE enabled, device tree was part of u-boot elf.
objcopy was missing this device tree section when copying into u-boot.bin.
This patch fixes this issue.

Change-Id: I604050023fa9fc572f77a450b0f1db472e785129
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-12 08:58:34 -07:00
Gokul Sriram Palanisamy
f5c7ca631b ipq806x: Enables bootipq support
This gerrit adds missing configs and config_name
device tree entry to enable bootipq support for AP148.

Change-Id: If1fb4aa1a3d7d7091b31f882a24f775ced6df52f
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-10-12 20:22:03 +05:30
Ajay Kishore
0effc6b7f9 ipq806x: Fixed compilation warning
Change-Id: Ifbabe06bdad546d70018448253cb7df107f9001a
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-12 13:02:40 +05:30
Ajay Kishore
623a60fb2a ipq806x : Enable crashdump support
Change-Id: I0d0d45ad3f35f6d7e49ec96c9b29b6a9dcdc919e
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-12 10:28:19 +05:30
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
Aditya Kumar Patra S
84d2f385fb qca: Modified board spcific Makefile to support CONFIG_ENV_IS_NOWHERE.
Modified board Makefile to avoid compilation of env.c when
"CONFIG_ENV_IS_NOWHERE" is enabled.

Change-Id: Ie694276c9071ad17f378a9926d78aa5a6e39a449
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 01:41:05 -07:00
Aditya Kumar Patra S
9bbb0820f4 qca: Made IPQ806x specific changes to common fdt fixup files.
Change-Id: I185d28fcaa8f1178e932772ddb10a036cb2b8a1f
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 01:40:51 -07:00
Aditya Kumar Patra S
f8b348e00b qca: Made IPQ806x specific changes to common boardinit and bootipq files.
1. Modified common bootipq command file to support IPQ806x.
    2. Modified common board initialization file to support IPQ806x.

Change-Id: I1fdd93037b885eefea0c5ddede9436861dd485b3
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 14:09:49 +05:30
Aditya Kumar Patra S
db8cc686a2 qca: Added IPQ806x spcific Changes to common SMEM.
Only ipq40xx and ipq807x specific functionalities were
available in common SMEM. Made ipq806x specific changes
so that all QCA platforms can use this.

Change-Id: I00fc9c9ba8e2545d665c9791849d82e0ab5d974a
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-10-07 12:23:27 +05:30
Ajay Kishore
55ae0d19fb ipq807x: Enable crashdump support
Change-Id: Ie404c042c6222c12f25632078b3db96af2522fc7
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-05 11:30:05 +05:30
Ajay Kishore
3491df2edd ipq40xx : Enable crashdump support
Change-Id: Ibd3b04dcc7870be1922409f81f3011b7edac35bc
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-04 06:52:29 -07:00
Linux Build Service Account
66f90c81e5 Merge "spi: Initialise all propertis of spi_slave" into eggplant 2016-10-03 06:30:49 -07:00
Linux Build Service Account
b893fade6f Merge "ipq40xx: Support cpu reset" into eggplant 2016-10-03 06:30:48 -07:00
Linux Build Service Account
ab5c1debe9 Merge changes I786b46f2,I8d25a211 into eggplant
* changes:
  Adding support for imxtract command
  Fix compilation errors in clk driver
2016-10-03 06:30:47 -07:00
Akila N
39d25efe1d Adding support for imxtract command
Change-Id: I786b46f256592d8311c2f9e0f9a971b36436a3cb
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-09-30 02:35:36 -07:00
Akila N
ba59fd6f3c ipq40xx: Support cpu reset
Change-Id: I62cb3edb92144280e55b75f99d2361c8faa4d9c2
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-09-29 21:28:25 +05:30
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
5e6297efa3 ipq807x: Rename the HK01 into soc for ipq807x
Change-Id: I3f23adad92566ba8f1ae38cfedfe690924b4bbf1
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-09-29 02:00:13 -07:00
Sham Muthayyan
ef5b429ab2 ipq807x: Add PCIE support for IPQ807x
Change-Id: Iba6db5caf405b4fe4f1668dc6462504e41d5d219
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-09-29 02:00:01 -07:00
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