Commit graph

37165 commits

Author SHA1 Message Date
Linux Build Service Account
f286af0057 Merge "ipq4019: Common dts support for nor and nor plus emmc" into eggplant 2016-11-17 01:47:40 -08:00
Linux Build Service Account
add1b4876b Merge "MIPS: qca956x: enable the flash driver" into eggplant 2016-11-17 01:33:01 -08:00
Linux Build Service Account
8c46bb2ecf Merge "MIPS: qca956x: initial changes for the AP152 target" into eggplant 2016-11-17 01:33:00 -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
Aditya Kumar Patra S
6d2e7fc8a6 qca: ipq806x: Fixed timer driver
The logic used to calculate tick count in
_udelay() was always giving Zero. Updated
the logic to make it work across QCA boards.

Change-Id: Iebc5905003ad99e66b299de3beabb80ce40ce710
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-11-14 00:59:01 -08:00
Aditya Kumar Patra S
467a26184d qca: ipq806x: Added Ethernet support in devicetrees.
Added ethernet support to devicetrees of AP145,
AP160 and Ap161 boards.

Change-Id: Iad370852c4d3e2dc662627d2890198bb0747d03c
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-11-14 00:58:24 -08:00
Gokul Sriram Palanisamy
80391fae04 ARM: qca: ipq8074: Updated u-boot load address to 0x4A600000
Updated CONFIG_SYS_TEXT_BASE to 0x4A600000

Change-Id: Ifa8ff8e50db5d602e64b21c96964e41053bd50b1
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-11-09 20:57:41 -08:00
Gokul Sriram Palanisamy
73ded92b32 ARM: qca: Enabled command memtest
Change-Id: I2116df3b7d48819211252b1b1a4cf92dc0f285fb
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-11-09 05:42:11 -08:00
Aditya Kumar Patra S
12f0be0d05 qca: tools: Added pack.py tool support
Change-Id: Ic19f502d28525eb21c614f2ad55555a5a6ecbcf7
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-11-09 04:18:28 -08:00
Gokul Sriram Palanisamy
e178e9b65f ARM: ipq8074: Updated ipq8074 board config with ethmac count
Added CONFIG_IPQ_NO_MACS to ipq8074 board config.
Avoids compilation error in common code.

Change-Id: I45efe0d2cb92b5cfefc5f99cfcb7f94c18508e58
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-11-07 18:38:22 +05:30
Gokul Sriram Palanisamy
d92e8c6aa5 ARM: qca: Ported fuseipq command
This is required to blow the fuses in QFPROM using data at sec.dat file.
Fuseipq command is invoked with the address of sec.dat file as argument.
Fuseipq invokes scm_call to carry out this action.

Change-Id: Ib73ba61da7ad339859c4b7b4ea2378650cd96fbf
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-11-04 15:48:56 +05:30
Prabhu Jayakumar
cb833dd465 MIPS: qca956x: Fix gmac descriptor corruption issue
tftp transfer failed as gmac descriptor got corrupted.
GMAC descriptors gets addresses from malloc area that
were already used and made free by some other module.
There is a cache invalidate issue when tftp transfer
happens and gmac descriptors gets corrupted.
flush_cache is needed to avoid this.

Change-Id: I40ae7c771bcac3fade78de4454bfa3dafde4b70a
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2016-11-04 03:04:54 -07:00
Prabhu Jayakumar
8f7336f0a6 MIPS: qca956x: enable the pci driver
This change enables the PCI driver on u-boot for
the AP152 target

Change-Id: I7bce245595935cc844200801c24348f05054b238
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2016-11-04 03:04:29 -07:00
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
Gowtham Siddarth Dhandapani
955a9212b6 ipq4019: Common dts support for nor and nor plus emmc
Change-Id: I1412e076f96f778651ff837f30e4b3fe9ad211e6
Signed-off-by: Gowtham Siddarth Dhandapani <gdhandap@codeaurora.org>
2016-10-28 12:31:26 +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