Commit graph

2845 commits

Author SHA1 Message Date
Gokul Sriram Palanisamy
3d9bb6e8f1 ARM: qca: ipq8064: Added support for NOR+NAND
Updates mtdparts and mtdids to add secondary NAND partition.

Change-Id: Iddf7dd7507a4c531c8247b07ff7d244db7091ef2
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-12-21 15:29:22 +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
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
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
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
3491df2edd ipq40xx : Enable crashdump support
Change-Id: Ibd3b04dcc7870be1922409f81f3011b7edac35bc
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
2016-10-04 06:52:29 -07:00
Akila N
03787a3b82 ipq40xx: Parsing config values from dts
Change-Id: I6fc163b24d1beb4baf93992588f25cb254507606
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-08-24 16:50:15 +05:30
Akila N
e7aaad5e69 ipq40xx: Eliminate use of gboard_param
This change eliminates the use of gboard_param
variable. Subsequent changes will make use of
dts.

Change-Id: Ic79a72c4fa1b86e864b55306a32c110bcfbc9184
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-08-23 15:30:36 +05:30
Manoharan Vijaya Raghavan
c47af78ae2 ipq807x: discard interp and dynamic section from u-boot
Change-Id: I29d6c571688f9cd875e04af51692150df263f4f4
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-08-17 06:49:22 -07:00
Linux Build Service Account
c2a3c549d3 Merge "qca: Moving bootipq command file to board common location" into eggplant 2016-08-09 18:30:39 -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
2fc38add98 qca: ipq806x: Added support in timer driver
Added ipq806x timer information to common timer driver.

Updated qcom timer comon driver for ipq806x support.
Change-Id: I1a28ef362bc4161af38d1065b3c4b848ef4ad0d1
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-09 00:14:08 -07:00
Gokul Sriram Palanisamy
5f86620451 qca: Moving bootipq command file to board common location
Moving cmd_bootqca.c from architecture specific common directory to
board specific common directory.

Change-Id: I453abeb554572bf2363a959e7dbe32efcf7dbac6
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-08-08 17:08:52 +05:30
Aditya Kumar Patra S
d28e6f633f qca:ipq806x: Added board configurations
Change-Id: Ibb9abe23daf78b5a7098240e86a58458e32a4775
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-05 03:01:42 -07:00
Aditya Kumar Patra S
c6cc859ca4 qca:ipq806x: Adding board support code for ipq806x
Added dts and initial board support for ipq806x.

Change-Id: I33992413905a0399ea3d6dfbd606c8e7ec30b6bf
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-05 03:01:24 -07:00
Aditya Kumar Patra S
c56a3e8e2a qca: ipq806x: Adding support for IPQ806x
Added files are taken as is from coconut/collard branch.
arch/arm/cpu/armv7/qca/ipq806x/clock.c:
https://source.codeaurora.org/quic/qsdk/oss/boot/u-boot/commit/arch/arm/cpu/armv7/ipq/clock.c

Note: The path of clock.c file is changed in eggplant branch
from "arch/arm/cpu/armv7/ipq" to "arch/arm/cpu/armv7/qca/ipq806x/"

include/configs/ipq806x.h:
https://source.codeaurora.org/quic/qsdk/oss/boot/u-boot/commit/include/configs/ipq806x_cdp.h

Note: In eggplant branch the name of board configuration header file
is changed from "ipq806x_cdp.h" to "ipq806x.h".

Change-Id: If0ca7ad8277c022f8967a1a189798f965b63ea29
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
2016-08-05 03:00:56 -07:00
Gowtham Siddarth Dhandapani
2a12ef637f qca: ipq40xx: Enabled full boot chain for eMMC
Change-Id: I5e795ff87d2c7a28ef5bd6cf2bbaabdc26cd48e7
Signed-off-by: Gowtham Siddarth Dhandapani <gdhandap@codeaurora.org>
2016-08-05 14:54:10 +05:30
Gokul Sriram Palanisamy
66fac376fe qca: ipq4019: Boot Flash specific mtdids
Set mtdids environment variable based on the boot flash so that right
set of mtdids is patched to kernel device tree.

Change-Id: If2f063e51a6bb73f3e8197fb133e0399b0b4df18
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-08-02 18:00:08 +05:30
Gokul Sriram Palanisamy
c1f2522a96 qca: ipq4019: Enabling qpic-nand driver
Adds QPIC NAND initialization configs and gpio configurations.

Change-Id: I5f21989813e9a811525c730926be4a8565822a3d
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-27 14:22:39 +05:30
Gokul Sriram Palanisamy
2e43d14733 qca: bootipq: Enabling qca common bootipq with multiple dtb support
Change-Id: I73135cc66e7c439c8cc77c355965a225f6c722fd
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-18 07:06:51 -07:00
Gokul Sriram Palanisamy
4a358cb07e ipq4019: Enabling qca common bootipq command
Change-Id: Ia5c3e996142dfdc194f0ed2f4bbe860b586a4139
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-18 19:36:18 +05:30
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
Gokul Sriram Palanisamy
09f8becdef ipq40xx: Adding bootipq command in a common location
This file is picked from codeaurora at
https://source.codeaurora.org/quic/qsdk/oss/boot/uboot-1.0/tree/arch/arm/cpu/armv7/qca/cmd_bootqca.c

Change-Id: Ib275e744e5d4b6b187bf15b907ba2758f5e9b236
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2016-07-06 18:40:26 +05:30
Manoharan Vijaya Raghavan
bc66f872cb scm: qca: Added scm call support for 64 bit TZ
Change-Id: I061193a9cf3be3a6c6ad42de7756aa8319004a29
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-06-30 23:53:58 -07:00
Manoharan Vijaya Raghavan
f3c9b9f060 scm: qcom: Moving smc calls to common folder
SMC calls are common for IPQ807x, IPQ40xx hence moving it to
common folder

Change-Id: I3d6564ad51ebe396f85cedbf41374374f40865c6
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-06-30 23:53:46 -07:00
Manoharan Vijaya Raghavan
184e49acc6 dts: Added support for multiple dtbs in u-boot
dtbs are made as .o
a table specifying their machid and address is added
the dtbs and header are added to u-boot image in a seperate section
dtb will be chosen based on machid detected from SMEM

Change-Id: I50ac5b56da3a431c1a75cb9fc113fafaedbc09b8
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-06-30 23:53:17 -07:00
Sham Muthayyan
f464f73be8 qcom: Moving SMEM into common location
The SMEM is used for all the platforms like ipq40xx and ipq807x.
So moving this into a common place to use all qcom platforms.

Change-Id: I04f0bf0e7aad0eae71024d734d8049a3470d510d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2016-06-23 23:04:57 -07:00
Linux Build Service Account
89cefaa85b Merge changes I22bde577,I1aad7193,Ic7849ca2 into eggplant
* changes:
  qca: ipq40xx: Expose SPI driver as pseudo NAND driver
  qca: ipq40xx: Adding files scm.c and scm.h
  qca: ipq40xx: Configure u-boot environment in nand
2016-06-02 23:13:07 -07:00
Manoharan Vijaya Raghavan
2fb1c57774 dts: combine dtb in u-boot ELF
u-boot and dtb are seperate images. This patch combines them as
single ELF image.

Change-Id: Ib3c72c26844ffd4fd8489d0595c243a15434802e
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-05-30 13:12:45 +05:30
Linux Build Service Account
2c7472734b Merge "ARM: ipq807x: Enable barrier operations" into eggplant 2016-05-08 22:49:21 -07:00
Manoharan Vijaya Raghavan
770a77a88e ARM: ipq807x: Enable barrier operations
Set SCTLR.CP15BEN in CP15 register

Change-Id: I3d36b2276fe258bffff0b2bbe6c4f309f073a162
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-04-21 13:11:58 +05:30
Akila N
8013845f03 qca: ipq40xx: Adding files scm.c and scm.h
Change-Id: I1aad71936526a497499a476dd2a0e9b004e7364e
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-18 03:12:29 -07:00
Linux Build Service Account
f8a87cfcf1 Merge "timer: ipq807x: avoid timer intialization" into eggplant 2016-04-08 00:21:37 -07:00
Akila N
03363dc9b9 qca: ipq40xx: Adding support for UART driver
Change-Id: Ib63a39202ad1475600ac6583aed85a52a7de82a7
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-06 22:15:38 -07:00
Akila N
722c00bbdf qca: ipq40xx: Enabling Makefile and Kconfig
Change-Id: I468af254928078268bc2720580f76ea854f36cc4
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-06 22:15:18 -07:00
Akila N
438419dd6e qca: ipq40xx: Addding smem related files
Change-Id: I1ba2b87e7e33a0ba8a2357aab5fd4b961ce4bd81
Signed-off-by: Akila N <akilan@codeaurora.org>
2016-04-07 10:42:38 +05:30
Manoharan Vijaya Raghavan
3d07b57d26 timer: ipq807x: avoid timer intialization
GCNT is already enabled by SBL, hence this could be avoided
in u-boot.

Change-Id: I207f0085f015ea7c5e80d8d20c0af95e498a9565
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-04-06 15:47:28 +05:30
Manoharan Vijaya Raghavan
df62dea585 qcom: timer: change timer load value type
changing timer load value to 64 bit data type

Change-Id: I09a35980e5ac15fdfdae3896e7f04ef87b403894
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-03-03 15:09:06 +05:30
Manoharan Vijaya Raghavan
256e4709d3 qca: timer: added support for timer for ipq807x
Added timer related registers in dts, processing in timer source code

Change-Id: I2496ae5cd9a0cdf6449b428a22c4ea5cadf51d88
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-03-02 16:31:16 +05:30
Balamurugan Selvarajan
3bdd8c2e59 qca: timer: Adding timer code for IPQxxxx
Change-Id: I67e1ac0bfbe8c35ba56ad6116e3fb4766ed8c16f
Signed-off-by: Balamurugan Selvarajan <bselvara@codeaurora.org>
2016-03-02 02:01:40 -08:00
Manoharan Vijaya Raghavan
a15b3f4f44 qca: ipq807x: Adding support for IPQ807x
Added config, dts and initial board support code for ipq807x

Change-Id: If624f806c65467900165781d9b32a6c060990418
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2016-03-02 15:25:41 +05:30
Tom Rini
90345c92a8 am33xx/am43xx: Add platform data for GPIOs
On these platforms we have many cases of boards that enable device model
and GPIO support but do not enable OF_CONTROL and pass in a device tree
with the binary.  We need to bring in the platform data here as well.

Tested on Beaglebone Black.

Reported-by: Robert Nelson <robertcnelson@gmail.com>
Reported-by: Francisco Aguerre <franciscoaguerre@gmail.com>
Reported-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
2016-01-08 10:15:45 -05:00
Tom Rini
f1993ca066 Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2016-01-03 10:32:24 -05:00
Michael Heimpold
fe21eaf92d ARM: mxs: allow boards to select DC-DC switching clock source
For some board designs, it might be useful to switch the DC-DC
clock source to something else rather the default 24 MHz, e.g.
for EMI reasons.

For this, override the mxs_power_setup_dcdc_clocksource function
in your board support files.

Example:
void mxs_power_setup_dcdc_clocksource(void)
{
    mxs_power_switch_dcdc_clocksource(POWER_MISC_FREQSEL_20MHZ);
}

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
2016-01-03 15:56:36 +01:00
Peng Fan
839479dda6 imx: ddr: drop duplicated debug info
Drop duplicated debug info for tcl.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
2016-01-03 15:19:58 +01:00
Mingkai Hu
0d6faf2bd0 armv8/ls1043a: Implement workaround for PEX erratum A009929
Consecutive write transactions from core to PCI express outbound
path hangs after 25 to 30 transactions depending on core freq.
This erratum enable the mbist clock through COP register setting.

Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2015-12-17 08:52:18 +08:00
Tom Rini
e6e3faa5c2 Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2015-12-14 20:27:23 -05:00
Tang Yuantian
989c5f0a8f armv8: Add sata support on Layerscape ARMv8 board
Freescale ARM-based Layerscape contains a SATA controller
which comply with the serial ATA 3.0 specification and the
AHCI 1.3 specification.
This patch adds SATA feature on ls2080aqds, ls2080ardb and
ls1043aqds boards.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2015-12-15 08:57:35 +08:00
Aneesh Bansal
70f959c3c4 armv8: Make SEC read/write as snoopable for LS1043
For LS1043, SEC read/writes are made snoopable by setting
the corresponding bits in SCFG to avoid coherency issues.

Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2015-12-15 08:57:34 +08:00
Aneesh Bansal
b644d3e932 armv8: define usec2ticks function
usec2ticks() function has been defined for ARMv8 which will
be used by SEC Driver.

Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2015-12-15 08:57:34 +08:00