[PATCH 0/4] Support for the FSP2 476fpe board in arch/powerpc

2017-05-15 Thread Ivan Mikhaylov
for common usage included as well. Tested on FSP2 board with uboot and initramfs image. Ivan Mikhaylov (4): arch/powerpc/44x/fsp2: platform support for fsp2(476fpe) board arch/powerpc/44x/fsp2: add device tree for fsp2 board arch/powerpc/44x/fsp2: add defconfig for fsp2 board arch/powerpc

[PATCH 4/4] arch/powerpc/44x/fsp2: wdt tcr update instead of whole rewrite

2017-05-15 Thread Ivan Mikhaylov
using the 476 to reset. Panic happens in case of error as silently reboot without any outputs on serial. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/kernel/time.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/k

[PATCH 2/4] arch/powerpc/44x/fsp2: add device tree for fsp2 board

2017-05-15 Thread Ivan Mikhaylov
Add a device tree for fsp2 board (476 based). Signed-off-by: Ivan Mikhaylov --- arch/powerpc/boot/dts/fsp2.dts | 608 1 files changed, 608 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/fsp2.dts diff --git a/arch/powerpc/boot

[PATCH 1/4] arch/powerpc/44x/fsp2: platform support for fsp2(476fpe) board

2017-05-15 Thread Ivan Mikhaylov
Add platform code support for FSP2 (476fpe) board. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/Kconfig | 12 +++ arch/powerpc/platforms/44x/Makefile |1 + arch/powerpc/platforms/44x/fsp2.c | 62 +++ 3 files changed, 75 insertions

[PATCH 3/4] arch/powerpc/44x/fsp2: add defconfig for fsp2 board

2017-05-15 Thread Ivan Mikhaylov
this patch adds default fsp2 config for main usage. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/configs/44x/fsp2_defconfig | 126 +++ 1 files changed, 126 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/44x/fsp2_defconfig diff --git a/arch

Re: [PATCH 4/4] arch/powerpc/44x/fsp2: wdt tcr update instead of whole rewrite

2017-05-19 Thread Ivan Mikhaylov
Hi Michael, >> diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c >> index 2b33cfa..f75e512 100644 >> --- a/arch/powerpc/kernel/time.c >> +++ b/arch/powerpc/kernel/time.c >> @@ -738,12 +738,28 @@ static int __init get_freq(char *name, int cells, >> unsigned long *val) >> >> s

[PATCH 0/2] add eMMC support for fsp2 board

2017-06-23 Thread Ivan Mikhaylov
fsp2 based on powerpc 476fpe using eMMC arasan, so we added support of this inside our dts and also enabled via additional dependence for sdhci-st driver in Kconfig. this code depends on commit c4b56b023daa91953e9ebe91143e6ca156f0bcb7 which is located in powerpc linux tree in 'next' bra

[PATCH 2/2] 44x/fsp2: enable eMMC arasan for fsp2 platform

2017-06-23 Thread Ivan Mikhaylov
* add mmc0 section into dts for arasan * change defconfig appropriately Signed-off-by: Ivan Mikhaylov --- arch/powerpc/boot/dts/fsp2.dts | 19 +++ arch/powerpc/configs/44x/fsp2_defconfig |2 ++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch

[PATCH 1/2] mmc/host: add FSP2(ppc476fpe) into depends for sdhci-st

2017-06-23 Thread Ivan Mikhaylov
* shdci-st driver can be used for ppc476 fsp2 soc Signed-off-by: Ivan Mikhaylov --- drivers/mmc/host/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 2eb9701..e6c0d86 100644 --- a/drivers/mmc/host/Kconfig

[PATCH v1 1/2] mmc/host: add FSP2(ppc476fpe) into depends for sdhci-st

2017-06-30 Thread Ivan Mikhaylov
shdci-st driver can be used for ppc476 fsp2 soc. Signed-off-by: Ivan Mikhaylov --- drivers/mmc/host/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 2eb9701..edf5787 100644 --- a/drivers/mmc/host/Kconfig

[PATCH v1 0/2] add eMMC support for fsp2 board

2017-06-30 Thread Ivan Mikhaylov
fsp2 based on powerpc 476fpe using eMMC arasan, so we added support of this inside our dts and also enabled via additional dependence for sdhci-st driver in Kconfig. this code depends on commit c4b56b023daa91953e9ebe91143e6ca156f0bcb7 which is located in powerpc linux tree in 'next' bra

[PATCH v1 2/2] 44x/fsp2: enable eMMC arasan for fsp2 platform

2017-06-30 Thread Ivan Mikhaylov
Add mmc0 changes for enabling arasan emmc and change defconfig appropriately. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/boot/dts/fsp2.dts | 33 +- arch/powerpc/configs/44x/fsp2_defconfig |2 + 2 files changed, 21 insertions(+), 14 deletions

Re: [PATCH] powerpc/44x/fsp2: correct dtb reg property for /sdhci@020c0000

2017-07-21 Thread Ivan Mikhaylov
Hi Ian, >Building the split device-tree tree[0] highlighted that upstream commit >9eec6cb142bd ("powerpc/44x/fsp2: Add device tree for FSP2 board") introduced >this warning when building the device tree: > >$ make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc fsp2.dtb > CHK scripts/mod/devicet

[PATCH 0/4] fsp2 low level setup

2017-11-02 Thread Ivan Mikhaylov
fsp2 board setup with l2 setup and irq handlers for some critical exceptions. Ivan Mikhaylov (4): 44x/fsp2: add fsp2 headers 44x/fsp2: l2 setup with error clear 44x/fsp2: tvsense workaround for dd1 44x/fsp2: add irq error handlers arch/powerpc/include/asm/fsp2_reg.h | 272

[PATCH 1/4] 44x/fsp2: add fsp2 headers

2017-11-02 Thread Ivan Mikhaylov
* add cmu, plbX, l2 register definitions Signed-off-by: Ivan Mikhaylov --- arch/powerpc/include/asm/fsp2_reg.h | 272 +++ 1 files changed, 272 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/include/asm/fsp2_reg.h diff --git a/arch/powerpc

[PATCH 2/4] 44x/fsp2: l2 setup with error clear

2017-11-02 Thread Ivan Mikhaylov
Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/44x/fsp2.c b/arch/powerpc/platforms/44x/fsp2.c index 92e9804..9585725 100644 --- a/arch

[PATCH 3/4] 44x/fsp2: tvsense workaround for dd1

2017-11-02 Thread Ivan Mikhaylov
* tvsense(temperature and voltage sensors) may provide erratic sense values which may result in parity errors on CMU. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/arch/powerpc

[PATCH 4/4] 44x/fsp2: add irq error handlers

2017-11-02 Thread Ivan Mikhaylov
* add irq error handlers for cmu, plb, opb, mcue, conf with debug information output in case of problem. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 204 - 1 files changed, 203 insertions(+), 1 deletions(-) diff --git a/arch

[PATCH v2 1/4] 44x/fsp2: add fsp2 headers

2017-12-01 Thread Ivan Mikhaylov
add cmu, plbX, l2, ddr3/4, crcs register definitions. add mfcmu, mtcmu functions for indirect access to cmu. add mtl2, mfl2 same for l2 cache core reg set. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.h | 272 + 1 files changed, 272

[PATCH v2 2/4] 44x/fsp2: interrupt handling setup

2017-12-01 Thread Ivan Mikhaylov
* clear out any possible plb6 errors * board interrupt handling setup within l2 reg set * fsp2 parity error setup All those points are needed for correct interrupt handling on board level including error handling report. Reviewed-by: Alistair Popple Signed-off-by: Ivan Mikhaylov --- arch

[PATCH v2 3/4] 44x/fsp2: tvsense workaround for dd1

2017-12-01 Thread Ivan Mikhaylov
once the CMU interrupt is unmasked. Purpose of this to set up CMU in working state in any cases even in case of parity errors. Reviewed-by: Alistair Popple Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 17 + 1 files changed, 17 insertions(+), 0 deletions

[PATCH v2 4/4] 44x/fsp2: add irq error handlers

2017-12-01 Thread Ivan Mikhaylov
add irq error handlers for cmu, plb, opb, mcue, conf with debug information output in case of problems. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 205 - 1 files changed, 204 insertions(+), 1 deletions(-) diff --git a/arch/powerpc

[PATCH v3 4/4] 44x/fsp2: add irq error handlers

2017-12-08 Thread Ivan Mikhaylov
add irq error handlers for cmu, plb, opb, mcue, conf with debug information output in case of problems. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 198 - 1 files changed, 197 insertions(+), 1 deletions(-) diff --git a/arch/powerpc

[PATCH v2 2/2] 44x/fsp2: enable eMMC arasan for fsp2 platform

2017-07-25 Thread Ivan Mikhaylov
Add mmc0 changes for enabling arasan emmc and change defconfig appropriately. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/boot/dts/fsp2.dts | 33 +- arch/powerpc/configs/44x/fsp2_defconfig |2 + 2 files changed, 21 insertions(+), 14 deletions