Re: [U-Boot] [PATCH v4 03/10] Exynos542x: Add workaround for ARM errata 798870

2015-02-25 Thread Akshay Saraswat
Hi Kevin, Akshay Saraswat aksha...@samsung.com writes: [...] I don't think it hurts to have a generic function with ARM errata workaround implementation. Whoever wish to use it can call it in their boot path. And it's not even getting executed right now for any SoC other than Exynos542x, so

Re: [U-Boot] [PATCH v4 03/10] Exynos542x: Add workaround for ARM errata 798870

2015-02-25 Thread Akshay Saraswat
Hi Nishanth, On 17:13-20150224, Nishanth Menon wrote: On 13:27-20150220, Akshay Saraswat wrote: This patch adds workaround for ARM errata 798870 which says If back-to-back speculative cache line fills (fill A and fill B) are issued from the L1 data cache of a CPU to the L2 cache

Re: [U-Boot] [PATCH v4 03/10] Exynos542x: Add workaround for ARM errata 798870

2015-02-25 Thread Akshay Saraswat
On 13:27-20150220, Akshay Saraswat wrote: This patch adds workaround for ARM errata 798870 which says If back-to-back speculative cache line fills (fill A and fill B) are issued from the L1 data cache of a CPU to the L2 cache, the second request (fill B) is then cancelled, and the second

[U-Boot] [PATCH v4 10/10] Exynos: Fix L2 cache timings on Exynos5420 and Exynos5800

2015-02-19 Thread Akshay Saraswat
in the A15 cluster comes up it doesn't actually mess up the settings of the 1st CPU in the A15 cluster. An alternative option is to have the kernel write its own low_power_start() code. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v4 09/10] Exynos542x: Make A7s boot with thumb-mode U-Boot on warm reset

2015-02-19 Thread Akshay Saraswat
the execution unit consider the branch target as an ARM instruction. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - No change. Changes since v2: - No change. Changes since v1

[U-Boot] [PATCH v4 08/10] Exynos542x: Fix secondary core booting for thumb

2015-02-19 Thread Akshay Saraswat
instructions. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - No change. Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested-by. arch

[U-Boot] [PATCH v4 02/10] Exynos542x: CPU: Power down all secondary cores

2015-02-19 Thread Akshay Saraswat
that they may come out of WFE and jump to power_down_core function. Step-6: And ultimately because of power_down_core all secondary cores shut-down. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v3: - No change

[U-Boot] [PATCH v4 00/11] Add support for booting multiple cores

2015-02-19 Thread Akshay Saraswat
of few macros for better understanding in patch 2. - Added MPIDR bit assignment info comment in power_down_core in patch 2. - Changed to SPDX header in sec_boot.S in patch 5. - Fixed compilation error for snow build in patch 11. Akshay Saraswat (9): Exynos542x: Config: Add

[U-Boot] [PATCH v4 01/10] Exynos542x: Config: Add various configs

2015-02-19 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - No change. Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested-by. - Removed unnecessary

[U-Boot] [PATCH v4 05/10] Exynos542x: Add workaround for exynos iROM errata

2015-02-19 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - Included armv7.h in lowlevel_init.c. Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested

[U-Boot] [PATCH v4 06/10] Exynos542x: cache: Disable clean/evict push to external

2015-02-19 Thread Akshay Saraswat
L2 Auxiliary Control Register provides configuration and control options for the L2 memory system. Bit 3 of L2ACTLR stands for clean/evict push to external. Setting bit 3 disables clean/evict which is what this patch intends to do. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed

[U-Boot] [PATCH v4 03/10] Exynos542x: Add workaround for ARM errata 798870

2015-02-19 Thread Akshay Saraswat
a recent write or eviction (write B) to the same cache line as fill B then the L2 logic might deadlock. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes

[U-Boot] [PATCH v4 04/10] Exynos542x: Add workaround for ARM errata 799270

2015-02-19 Thread Akshay Saraswat
the logic that uses that bit retains the previous value. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - Added errata number in comment

[U-Boot] [PATCH v4 07/10] Exynos542x: add L2 control register configuration

2015-02-19 Thread Akshay Saraswat
to switching. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - Rebased. Changes since v2: - Replaced #ifndef

[U-Boot] [PATCH v3 01/11] Exynos542x: Config: Add various configs

2015-02-18 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested-by. - Removed unnecessary CONFIGS. include/configs/exynos5420

[U-Boot] [PATCH v3 02/11] Exynos542x: CPU: Power down all secondary cores

2015-02-18 Thread Akshay Saraswat
that they may come out of WFE and jump to power_down_core function. Step-6: And ultimately because of power_down_core all secondary cores shut-down. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v2: - No change

[U-Boot] [PATCH v3 00/11] Add support for booting multiple cores

2015-02-18 Thread Akshay Saraswat
. - Fixed compilation error for snow build in patch 11. Akshay Saraswat (10): Exynos542x: Config: Add various configs Exynos542x: CPU: Power down all secondary cores Exynos542x: Add workaround for ARM errata 798870 Exynos542x: Add workaround for ARM errata 799270 Exynos542x: Add workaround

[U-Boot] [PATCH v3 04/11] Exynos542x: Add workaround for ARM errata 799270

2015-02-18 Thread Akshay Saraswat
the logic that uses that bit retains the previous value. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v2: - No change. Changes since v1

[U-Boot] [PATCH v3 05/11] Exynos542x: Add workaround for exynos iROM errata

2015-02-18 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested-by. - Changed to SPDX header in sec_boot.S. arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH v3 03/11] Exynos542x: Add workaround for ARM errata 798870

2015-02-18 Thread Akshay Saraswat
a recent write or eviction (write B) to the same cache line as fill B then the L2 logic might deadlock. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes

[U-Boot] [PATCH v3 09/11] Exynos542x: Fix secondary core booting for thumb

2015-02-18 Thread Akshay Saraswat
instructions. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested-by. arch/arm/cpu/armv7/exynos/lowlevel_init.c | 2

[U-Boot] [PATCH v3 07/11] Exynos542x: cache: Disable clean/evict push to external

2015-02-18 Thread Akshay Saraswat
L2 Auxiliary Control Register provides configuration and control options for the L2 memory system. Bit 3 of L2ACTLR stands for clean/evict push to external. Setting bit 3 disables clean/evict which is what this patch intends to do. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed

[U-Boot] [PATCH v3 11/11] Exynos: Fix L2 cache timings on Exynos5420 and Exynos5800

2015-02-18 Thread Akshay Saraswat
in the A15 cluster comes up it doesn't actually mess up the settings of the 1st CPU in the A15 cluster. An alternative option is to have the kernel write its own low_power_start() code. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v3 06/11] Exynos542x: Change ambiguous function name set_l2cache

2015-02-18 Thread Akshay Saraswat
1. Renaming set_l2cache to configure_l2actlr in order to avoid misleading comprehensions. Apparently this name suggests that L2 cache is being set or initialized which is incorrect as per the code in this function. 2. Cleaning missed mrc for L2 control register. Signed-off-by: Akshay

[U-Boot] [PATCH v3 08/11] Exynos542x: add L2 control register configuration

2015-02-18 Thread Akshay Saraswat
to switching. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v2: - Replaced #ifndef with if(proid_is_soc()) check. Changes since v1

[U-Boot] [PATCH v3 10/11] Exynos542x: Make A7s boot with thumb-mode U-Boot on warm reset

2015-02-18 Thread Akshay Saraswat
the execution unit consider the branch target as an ARM instruction. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v2: - No change. Changes since v1: - Added Reviewed-by Tested

Re: [U-Boot] [PATCH v3 02/11] Exynos542x: CPU: Power down all secondary cores

2015-02-18 Thread Akshay Saraswat
secondary cores shut-down. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v2: - No change. Changes since v1: - Removed unnecessary macros. - Changed names of few macros for better understanding

Re: [U-Boot] [PATCH v3 03/11] Exynos542x: Add workaround for ARM errata 798870

2015-02-18 Thread Akshay Saraswat
Hello, On Wed, 18 Feb 2015 15:16:27 +0530 Akshay Saraswat aksha...@samsung.com wrote: This patch adds workaround for ARM errata 798870 which says If back-to-back speculative cache line fills (fill A and fill B) are issued from the L1 data cache of a CPU to the L2 cache, the second request

Re: [U-Boot] [PATCH v5 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Akshay Saraswat
Hi, Hi Akshay, On 02/03/2015 05:27 PM, Akshay Saraswat wrote: Cleaning up soc_get_periph_rate to make the logic easy to comprehend. Could you give more detailed description? We did just a cleanup here by removing I2C sepecific calculations because we can now have a generic div and pre-div

[U-Boot] [PATCH v6 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Akshay Saraswat
specific exceptions. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v5: - Elaborated Commit message and fixed a nit. Changes since v4: - New patch. arch/arm/cpu/armv7/exynos/clock.c | 74 ++- 1 file changed, 35 insertions

[U-Boot] [PATCH v6 5/7] Exynos5: Use clock_get_periph_rate generic API

2015-02-04 Thread Akshay Saraswat
because of the introduction of generic clock_get_periph_rate function. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org --- Changes since v5: - No Change. Changes since v4: - Added Reviewed-by. Changes since v3: - Merged patches

[U-Boot] [PATCH v6 4/7] Exynos5: Fix exynos5_get_periph_rate calculations

2015-02-04 Thread Akshay Saraswat
exynos5_get_periph_rate function reads incorrect div for SDMMC2 3. It also reads prediv and does division only for SDMMC0 2 when actually various other peripherals need that. Adding changes to fix these mistakes in periph rate calculation. Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v6 6/7] Exynos: clock: change mask bits as per peripheral

2015-02-04 Thread Akshay Saraswat
We have assumed and kept mask bits for divider and pre-divider as 0xf and 0xff, respectively. But these mask bits change from one peripheral to another, and hence, need to be specified in accordance with the peripherals. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v5

[U-Boot] [PATCH v6 2/7] Exynos542x: Move exynos5420_get_pll_clk up and rename

2015-02-04 Thread Akshay Saraswat
to exynos542x_get_pll_clk because it is being used for both Exynos 5420 and 5800. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v5: - No Change. Changes since v4: - No Change. Changes

[U-Boot] [PATCH v6 3/7] Exynos542x: Add and enable get_periph_rate support

2015-02-04 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org --- Changes since v5: - No Change. Changes since v4: - Added Reviewed-by. Changes since v3: - Added a case for SPLL in exynos542x_get_periph_rate. - Changed EXYNOS542x - EXYNOS542X

[U-Boot] [PATCH v6 0/7] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-02-04 Thread Akshay Saraswat
: Added checks for negative values in soc_get_periph_rate. Changes since v1: - Added 2 new patches. Akshay Saraswat (7): Exynos5: Fix compiler warnings due to clock_get_periph_rate Exynos542x: Move exynos5420_get_pll_clk up and rename Exynos542x: Add and enable get_periph_rate support

[U-Boot] [PATCH v6 1/7] Exynos5: Fix compiler warnings due to clock_get_periph_rate

2015-02-04 Thread Akshay Saraswat
Apparently, members of clk_bit_info array do not map correctly to the members of enum periph_id. This mapping got broken after we changed periph_id(s) to reflect interrupt number instead of their position in a sequence. This patch intends to fix above mentioned issue. Signed-off-by: Akshay

[U-Boot] [PATCH v2 02/11] Exynos542x: CPU: Power down all secondary cores

2015-02-03 Thread Akshay Saraswat
that they may come out of WFE and jump to power_down_core function. Step-6: And ultimately because of power_down_core all secondary cores shut-down. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v1: - Removed

[U-Boot] [PATCH v2 01/11] Exynos542x: Config: Add various configs

2015-02-03 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v1: - Added Reviewed-by Tested-by. - Removed unnecessary CONFIGS. include/configs/exynos5420-common.h | 16 1 file changed

[U-Boot] [PATCH v2 03/11] Exynos542x: Add workaround for ARM errata 798870

2015-02-03 Thread Akshay Saraswat
a recent write or eviction (write B) to the same cache line as fill B then the L2 logic might deadlock. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes

[U-Boot] [PATCH v2 04/11] Exynos542x: Add workaround for ARM errata 799270

2015-02-03 Thread Akshay Saraswat
the logic that uses that bit retains the previous value. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v1: - Added Reviewed-by Tested

[U-Boot] [PATCH v2 00/11] Add support for booting multiple cores

2015-02-03 Thread Akshay Saraswat
. - Added MPIDR bit assignment info comment in power_down_core in patch 2. - Changed to SPDX header in sec_boot.S in patch 5. - Fixed compilation error for snow build in patch 11. Akshay Saraswat (10): Exynos542x: Config: Add various configs Exynos542x: CPU: Power down

[U-Boot] [PATCH v5 0/7] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-02-03 Thread Akshay Saraswat
: - Added 2 new patches. Akshay Saraswat (7): Exynos5: Fix compiler warnings due to clock_get_periph_rate Exynos542x: Move exynos5420_get_pll_clk up and rename Exynos542x: Add and enable get_periph_rate support Exynos5: Fix exynos5_get_periph_rate calculations Exynos5: Use

[U-Boot] [PATCH v5 3/7] Exynos542x: Add and enable get_periph_rate support

2015-02-03 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org --- Changes since v4: - Added Reviewed-by. Changes since v3: - Added a case for SPLL in exynos542x_get_periph_rate. - Changed EXYNOS542x - EXYNOS542X. Changes since v2: - Fixed enum

[U-Boot] [PATCH v5 2/7] Exynos542x: Move exynos5420_get_pll_clk up and rename

2015-02-03 Thread Akshay Saraswat
to exynos542x_get_pll_clk because it is being used for both Exynos 5420 and 5800. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v4: - No Change. Changes since v3: - Added Reviewed

[U-Boot] [PATCH v5 1/7] Exynos5: Fix compiler warnings due to clock_get_periph_rate

2015-02-03 Thread Akshay Saraswat
Apparently, members of clk_bit_info array do not map correctly to the members of enum periph_id. This mapping got broken after we changed periph_id(s) to reflect interrupt number instead of their position in a sequence. This patch intends to fix above mentioned issue. Signed-off-by: Akshay

[U-Boot] [PATCH v2 11/11] Exynos: Fix L2 cache timings on Exynos5420 and Exynos5800

2015-02-03 Thread Akshay Saraswat
in the A15 cluster comes up it doesn't actually mess up the settings of the 1st CPU in the A15 cluster. An alternative option is to have the kernel write its own low_power_start() code. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v2 06/11] Exynos542x: Change ambiguous function name set_l2cache

2015-02-03 Thread Akshay Saraswat
1. Renaming set_l2cache to configure_l2actlr in order to avoid misleading comprehensions. Apparently this name suggests that L2 cache is being set or initialized which is incorrect as per the code in this function. 2. Cleaning missed mrc for L2 control register. Signed-off-by: Akshay

[U-Boot] [PATCH v2 08/11] Exynos542x: add L2 control register configuration

2015-02-03 Thread Akshay Saraswat
to switching. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v1: - Added Reviewed-by Tested-by. arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH v2 05/11] Exynos542x: Add workaround for exynos iROM errata

2015-02-03 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v1: - Added Reviewed-by Tested-by. - Changed to SPDX header in sec_boot.S. arch/arm/cpu/armv7/exynos/Makefile| 2 + arch/arm/cpu

[U-Boot] [PATCH v2 09/11] Exynos542x: Fix secondary core booting for thumb

2015-02-03 Thread Akshay Saraswat
instructions. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v1: - Added Reviewed-by Tested-by. arch/arm/cpu/armv7/exynos/lowlevel_init.c | 2 +- arch/arm/include/asm/arch-exynos

[U-Boot] [PATCH v2 07/11] Exynos542x: cache: Disable clean/evict push to external

2015-02-03 Thread Akshay Saraswat
L2 Auxiliary Control Register provides configuration and control options for the L2 memory system. Bit 3 of L2ACTLR stands for clean/evict push to external. Setting bit 3 disables clean/evict which is what this patch intends to do. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed

[U-Boot] [PATCH v2 10/11] Exynos542x: Make A7s boot with thumb-mode U-Boot on warm reset

2015-02-03 Thread Akshay Saraswat
the execution unit consider the branch target as an ARM instruction. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v1: - Added Reviewed-by Tested-by. arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH v5 5/7] Exynos5: Use clock_get_periph_rate generic API

2015-02-03 Thread Akshay Saraswat
because of the introduction of generic clock_get_periph_rate function. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org --- Changes since v4: - Added Reviewed-by. Changes since v3: - Merged patches 5 and 6 of version 3 to fix build errors

[U-Boot] [PATCH v5 4/7] Exynos5: Fix exynos5_get_periph_rate calculations

2015-02-03 Thread Akshay Saraswat
exynos5_get_periph_rate function reads incorrect div for SDMMC2 3. It also reads prediv and does division only for SDMMC0 2 when actually various other peripherals need that. Adding changes to fix these mistakes in periph rate calculation. Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v5 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-03 Thread Akshay Saraswat
Cleaning up soc_get_periph_rate to make the logic easy to comprehend. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v4: - New patch. arch/arm/cpu/armv7/exynos/clock.c | 76 +-- 1 file changed, 33 insertions(+), 43 deletions

[U-Boot] [PATCH v5 6/7] Exynos: clock: change mask bits as per peripheral

2015-02-03 Thread Akshay Saraswat
We have assumed and kept mask bits for divider and pre-divider as 0xf and 0xff, respectively. But these mask bits change from one peripheral to another, and hence, need to be specified in accordance with the peripherals. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v4

[U-Boot] [PATCH v4 4/6] Exynos5: Fix exynos5_get_periph_rate calculations

2015-02-02 Thread Akshay Saraswat
exynos5_get_periph_rate function reads incorrect div for SDMMC2 3. It also reads prediv and does division only for SDMMC0 2 when actually various other peripherals need that. Adding changes to fix these mistakes in periph rate calculation. Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v4 3/6] Exynos542x: Add and enable get_periph_rate support

2015-02-02 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com --- Changes since v3: - Added a case for SPLL in exynos542x_get_periph_rate. - Changed EXYNOS542x - EXYNOS542X. Changes since v2: - Fixed enum and exynos542x_get_periph_rate switch. - Added checks for negative values

[U-Boot] [PATCH v4 2/6] Exynos542x: Move exynos5420_get_pll_clk up and rename

2015-02-02 Thread Akshay Saraswat
to exynos542x_get_pll_clk because it is being used for both Exynos 5420 and 5800. Signed-off-by: Akshay Saraswat aksha...@samsung.com Reviewed-by: Simon Glass s...@chromium.org Tested-by: Simon Glass s...@chromium.org --- Changes since v3: - Added Reviewed-by Tested-by. Changes since v2

[U-Boot] [PATCH v4 1/6] Exynos5: Fix compiler warnings due to clock_get_periph_rate

2015-02-02 Thread Akshay Saraswat
Apparently, members of clk_bit_info array do not map correctly to the members of enum periph_id. This mapping got broken after we changed periph_id(s) to reflect interrupt number instead of their position in a sequence. This patch intends to fix above mentioned issue. Signed-off-by: Akshay

[U-Boot] [PATCH v4 0/6] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-02-02 Thread Akshay Saraswat
. - Patch-3: Added checks for negative values in soc_get_periph_rate. - Patch-4: Added checks for negative values in soc_get_periph_rate. Changes since v1: - Added 2 new patches. Akshay Saraswat (6): Exynos5: Fix compiler warnings due to clock_get_periph_rate Exynos542x

[U-Boot] [PATCH v4 6/6] Exynos: clock: change mask bits as per peripheral

2015-02-02 Thread Akshay Saraswat
We have assumed and kept mask bits for divider and pre-divider as 0xf and 0xff, respectively. But these mask bits change from one peripheral to another, and hence, need to be specified in accordance with the peripherals. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v3

[U-Boot] [PATCH v4 5/6] Exynos5: Use clock_get_periph_rate generic API

2015-02-02 Thread Akshay Saraswat
because of the introduction of generic clock_get_periph_rate function. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v3: - Merged patches 5 and 6 of version 3 to fix build errors. Changes since v2: - No change. Changes since v1: - Separated

Re: [U-Boot] [PATCH v3 3/6] Exynos542x: Add and enable get_periph_rate support

2015-02-01 Thread Akshay Saraswat
2015 at 21:46, Joonyoung Shim jy0922.s...@samsung.com wrote: Hi Simon, On 01/28/2015 01:09 PM, Simon Glass wrote: Hi, On 15 January 2015 at 23:09, Joonyoung Shim jy0922.s...@samsung.com wrote: Hi, On 01/16/2015 02:48 PM, Akshay Saraswat wrote: We planned to fetch peripheral rate through

Re: [U-Boot] [PATCH 00/11] Add support for booting multiple cores

2015-01-20 Thread Akshay Saraswat
Hi Kevin, Akshay Saraswat aksha...@samsung.com writes: This patch series introduces changes for booting secondary CPUs on Exynos5420 and Exynos5800. Thanks for this series. I think this should help get the odroid-xu3 behave better with the mainline linux kernel (assuming I can get

[U-Boot] [PATCH v3 0/6] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-01-15 Thread Akshay Saraswat
for negative values in soc_get_periph_rate. - Patch-4: Added checks for negative values in soc_get_periph_rate. Changes since v1: - Added 2 new patches. Akshay Saraswat (6): Exynos5: Fix compiler warnings due to clock_get_periph_rate Exynos542x: Move exynos5420_get_pll_clk up

[U-Boot] [PATCH v3 1/6] Exynos5: Fix compiler warnings due to clock_get_periph_rate

2015-01-15 Thread Akshay Saraswat
Apparently, members of clk_bit_info array do not map correctly to the members of enum periph_id. This mapping got broken after we changed periph_id(s) to reflect interrupt number instead of their position in a sequence. This patch intends to fix above mentioned issue. Signed-off-by: Akshay

[U-Boot] [PATCH v3 4/6] Exynos5: Fix exynos5_get_periph_rate calculations

2015-01-15 Thread Akshay Saraswat
exynos5_get_periph_rate function reads incorrect div for SDMMC2 3. It also reads prediv and does division only for SDMMC0 2 when actually various other peripherals need that. Adding changes to fix these mistakes in periph rate calculation. Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v3 2/6] Exynos542x: Move exynos5420_get_pll_clk up and rename

2015-01-15 Thread Akshay Saraswat
to exynos542x_get_pll_clk because it is being used for both Exynos 5420 and 5800. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v2: - Changed exynos5420 - exynos542x in line 33. Changes since v1: - New patch. arch/arm/cpu/armv7/exynos/clock.c | 82

[U-Boot] [PATCH v3 3/6] Exynos542x: Add and enable get_periph_rate support

2015-01-15 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com --- Changes since v2: - Fixed enum and exynos542x_get_periph_rate switch. - Added checks for negative values in exynos542x_get_periph_rate. Changes since v1: - Changes suuport - support in commit message. - Removed position

[U-Boot] [PATCH v3 5/6] Exynos5: Use clock_get_periph_rate generic API

2015-01-15 Thread Akshay Saraswat
Replacing SoC and peripheral specific function calls with generic clock_get_periph_rate calls to get the peripheral clocks. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v2: - No change. Changes since v1: - Separated exynos5_get_periph_rate fixes

[U-Boot] [PATCH v3 6/6] Exynos5: Remove dead code for fetching clocks

2015-01-15 Thread Akshay Saraswat
Removing dead code of peripheral and SoC specific function implementations which was used for fetching peripheral clocks. This code is not being used anymore because of the introduction of generic clock_get_periph_rate function. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes

[U-Boot] [PATCH v2 1/6] Exynos5: Fix compiler warnings due to clock_get_periph_rate

2015-01-15 Thread Akshay Saraswat
Apparently, members of clk_bit_info array do not map correctly to the members of enum periph_id. This mapping got broken after we changed periph_id(s) to reflect interrupt number instead of their position in a sequence. This patch intends to fix above mentioned issue. Signed-off-by: Akshay

[U-Boot] [PATCH v2 3/6] Exynos542x: Add and enable get_periph_rate support

2015-01-15 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com --- Changes since v1: - Changes suuport - support in commit message. - Removed position change of exynos5420_get_pll_clk. - Removed #ifdef. arch/arm/cpu/armv7/exynos/clock.c | 151 +++-- arch/arm

[U-Boot] [PATCH v2 5/6] Exynos5: Use clock_get_periph_rate generic API

2015-01-15 Thread Akshay Saraswat
Replacing SoC and peripheral specific function calls with generic clock_get_periph_rate calls to get the peripheral clocks. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v1: - Separated exynos5_get_periph_rate fixes into another patch. arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH v2 4/6] Exynos5: Fix exynos5_get_periph_rate calculations

2015-01-15 Thread Akshay Saraswat
exynos5_get_periph_rate function reads incorrect div for SDMMC2 3. It also reads prediv and does division only for SDMMC0 2 when actually various other peripherals need that. Adding changes to fix these mistakes in periph rate calculation. Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v2 2/6] Exynos542x: Move exynos5420_get_pll_clk up and rename

2015-01-15 Thread Akshay Saraswat
to exynos542x_get_pll_clk because it is being used for both Exynos 5420 and 5800. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes since v1: - New patch. arch/arm/cpu/armv7/exynos/clock.c | 82 +++ 1 file changed, 41 insertions(+), 41 deletions

[U-Boot] [PATCH v2 0/4] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-01-15 Thread Akshay Saraswat
useless due to introduction of clock_get_periph_rate. Changes since v1: - Added 2 new patches. Akshay Saraswat (6): Exynos5: Fix compiler warnings due to clock_get_periph_rate Exynos542x: Move exynos5420_get_pll_clk up and rename Exynos542x: Add and enable get_periph_rate support

[U-Boot] [PATCH 05/11] Exynos542x: Add workaround for exynos iROM errata

2015-01-15 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/Makefile| 2 + arch/arm/cpu/armv7/exynos/lowlevel_init.c | 90 +++ arch/arm/cpu/armv7/exynos/sec_boot.S | 145 ++ 3 files changed, 219 insertions(+), 18 deletions

[U-Boot] [PATCH 02/11] Exynos542x: CPU: Power down all secondary cores

2015-01-15 Thread Akshay Saraswat
that they may come out of WFE and jump to power_down_core function. Step-6: And ultimately because of power_down_core all secondary cores shut-down. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH 03/11] Exynos542x: Add workaround for ARM errata 798870

2015-01-15 Thread Akshay Saraswat
a recent write or eviction (write B) to the same cache line as fill B then the L2 logic might deadlock. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/lowlevel_init.c | 22 ++ 1 file changed, 22

[U-Boot] [PATCH 06/11] Exynos542x: Change ambiguous function name set_l2cache

2015-01-15 Thread Akshay Saraswat
1. Renaming set_l2cache to configure_l2actlr in order to avoid misleading comprehensions. Apparently this name suggests that L2 cache is being set or initialized which is incorrect as per the code in this function. 2. Cleaning missed mrc for L2 control register. Signed-off-by: Akshay

[U-Boot] [PATCH 04/11] Exynos542x: Add workaround for ARM errata 799270

2015-01-15 Thread Akshay Saraswat
the logic that uses that bit retains the previous value. Signed-off-by: Kimoon Kim kimoon@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/lowlevel_init.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH 10/11] Exynos542x: Make A7s boot with thumb-mode U-Boot on warm reset

2015-01-15 Thread Akshay Saraswat
the execution unit consider the branch target as an ARM instruction. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/lowlevel_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/exynos/lowlevel_init.c b/arch/arm/cpu/armv7/exynos

[U-Boot] [PATCH 11/11] Exynos: Fix L2 cache timings on Exynos5420 and Exynos5800

2015-01-15 Thread Akshay Saraswat
in the A15 cluster comes up it doesn't actually mess up the settings of the 1st CPU in the A15 cluster. An alternative option is to have the kernel write its own low_power_start() code. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Akshay Saraswat aksha...@samsung.com

[U-Boot] [PATCH v2 6/6] Exynos5: Remove dead code for fetching clocks

2015-01-15 Thread Akshay Saraswat
Removing dead code of peripheral and SoC specific function implementations which was used for fetching peripheral clocks. This code is not being used anymore because of the introduction of generic clock_get_periph_rate function. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- Changes

[U-Boot] [PATCH 01/11] Exynos542x: Config: Add various configs

2015-01-15 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com --- include/configs/exynos5-common.h | 28 1 file changed, 28 insertions(+) diff --git a/include/configs/exynos5-common.h b/include/configs/exynos5-common.h index ad63f3c..831bfd3 100644 --- a/include/configs/exynos5-common.h

[U-Boot] [PATCH 00/11] Add support for booting multiple cores

2015-01-15 Thread Akshay Saraswat
This patch series introduces changes for booting secondary CPUs on Exynos5420 and Exynos5800. Akshay Saraswat (10): Exynos542x: Config: Add various configs Exynos542x: CPU: Power down all secondary cores Exynos542x: Add workaround for ARM errata 798870 Exynos542x: Add workaround for ARM

[U-Boot] [PATCH 09/11] Exynos542x: Fix secondary core booting for thumb

2015-01-15 Thread Akshay Saraswat
instructions. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/lowlevel_init.c | 2 +- arch/arm/include/asm/arch-exynos/system.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/exynos/lowlevel_init.c b/arch/arm/cpu/armv7

[U-Boot] [PATCH 07/11] Exynos542x: cache: Disable clean/evict push to external

2015-01-15 Thread Akshay Saraswat
L2 Auxiliary Control Register provides configuration and control options for the L2 memory system. Bit 3 of L2ACTLR stands for clean/evict push to external. Setting bit 3 disables clean/evict which is what this patch intends to do. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm

[U-Boot] [PATCH 08/11] Exynos542x: add L2 control register configuration

2015-01-15 Thread Akshay Saraswat
to switching. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/lowlevel_init.c | 53 +++ arch/arm/cpu/armv7/exynos/soc.c | 7 2 files changed, 46 insertions(+), 14 deletions

[U-Boot] [PATCH 0/4] Exynos5: Fix warnings and enrich clock_get_periph_rate

2015-01-14 Thread Akshay Saraswat
useless due to introduction of clock_get_periph_rate. Akshay Saraswat (4): Exynos5: Fix compiler warnings due to clock_get_periph_rate Exynos542x: Add and enable get_periph_rate support Exynos5: Use clock_get_periph_rate generic API Exynos5: Remove dead code for fetching clocks arch

[U-Boot] [PATCH 3/4] Exynos5: Use clock_get_periph_rate generic API

2015-01-14 Thread Akshay Saraswat
Replacing SoC and peripheral specific function calls with generic clock_get_periph_rate calls to get the peripheral clocks. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/clock.c | 60 +++ 1 file changed, 48 insertions(+), 12

[U-Boot] [PATCH 1/4] Exynos5: Fix compiler warnings due to clock_get_periph_rate

2015-01-14 Thread Akshay Saraswat
Apparently, members of clk_bit_info array do not map correctly to the members of enum periph_id. This mapping got broken after we changed periph_id(s) to reflect interrupt number instead of their position in a sequence. This patch intends to fix above mentioned issue. Signed-off-by: Akshay

[U-Boot] [PATCH 2/4] Exynos542x: Add and enable get_periph_rate support

2015-01-14 Thread Akshay Saraswat
-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/clock.c | 211 +++-- arch/arm/include/asm/arch-exynos/clk.h | 8 ++ 2 files changed, 183 insertions(+), 36 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/clock.c b/arch/arm/cpu/armv7

[U-Boot] [PATCH 4/4] Exynos5: Remove dead code for fetching clocks

2015-01-14 Thread Akshay Saraswat
Removing dead code of peripheral and SoC specific function implementations which was used for fetching peripheral clocks. This code is not being used anymore because of the introduction of generic clock_get_periph_rate function. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm

[U-Boot] [PATCH] Exynos: Fix warnings from clock_get_periph_rate

2015-01-13 Thread Akshay Saraswat
for Exynos5420. Signed-off-by: Akshay Saraswat aksha...@samsung.com --- arch/arm/cpu/armv7/exynos/clock.c | 574 - arch/arm/include/asm/arch-exynos/clk.h | 8 + 2 files changed, 279 insertions(+), 303 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/clock.c b

Re: [U-Boot] [PATCH 08/18] exynos5: config: prepare for dm i2c support

2015-01-12 Thread Akshay Saraswat
Hi Przemyslaw, Hello Akshay, On 01/09/2015 10:21 AM, Akshay Saraswat wrote: Hi Przemyslaw, This commit allows for test i2c drivers with new i2c api on Exynos5xxx based boards. The S3C24X0 I2C driver supports driver model I2C api, but i2c peripherials drivers on exynos5 boards doesn't. So

Re: [U-Boot] Question about compile warnings of exynos clock

2015-01-12 Thread Akshay Saraswat
patch or config to encounter this? Best Regards, Jaehoon Chung Regards, Simon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Regards, Akshay Saraswat ___ U

  1   2   3   4   5   >