Re: [PATCHv9 4/4] ARM: socfpga: Enable OCRAM ECC on startup

From: Dinh Nguyen
Date: Mon Feb 08 2016 - 14:02:31 EST




On 01/27/2016 10:13 AM, tthayer@xxxxxxxxxxxxxxxxxxxxx wrote:
> From: Thor Thayer <tthayer@xxxxxxxxxxxxxxxxxxxxx>
>
> This patch enables the ECC for On-Chip RAM on machine startup. The ECC
> has to be enabled before data is stored in memory otherwise the ECC will
> fail on reads.
>
> Signed-off-by: Thor Thayer <tthayer@xxxxxxxxxxxxxxxxxxxxx>
> ---
> v9: Improve node release handling.
> v8: Address community comments on strings. Fix match strings based
> on maintainer feedback. Update year in header.
> v7: enable OCRAM ECC during platform init
> v6: Implement OCRAM discovery changes from community. Add
> of_node_put(). Remove be32_to_cpup(). Use __init() which
> allows removal of .init_machine(). Update year in header.
> ---
> arch/arm/mach-socfpga/Makefile | 1 +
> arch/arm/mach-socfpga/core.h | 1 +
> arch/arm/mach-socfpga/ocram.c | 49 +++++++++++++++++++++++++++++++++++++++
> arch/arm/mach-socfpga/socfpga.c | 3 +++
> 4 files changed, 54 insertions(+)
> create mode 100644 arch/arm/mach-socfpga/ocram.c
>

Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxxxxxxxxxxxxx>