[U-Boot] [PATCH 08/12] MX6: add mmdc configuration for MX6Q/MX6DL

Otavio Salvador otavio at ossystems.com.br
Tue Apr 29 20:35:17 CEST 2014


Hello,

On Tue, Apr 29, 2014 at 12:15 PM, Eric Nelson
<eric.nelson at boundarydevices.com> wrote:
> On 04/28/2014 01:17 PM, Tim Harvey wrote:
>>
>> Add functions for configuring MMDC iomux and configuration based on
>> board-specific configurations.
>>
>> Signed-off-by: Tim Harvey <tharvey at gateworks.com>
>> ---
>> v2:
>> - split out mmdc and iomux structs into separate patch
>> ---
>>   arch/arm/cpu/armv7/mx6/Makefile |   1 +
>>   arch/arm/cpu/armv7/mx6/ddr.c    | 469
>> ++++++++++++++++++++++++++++++++++++++++
>>   2 files changed, 470 insertions(+)
>>   create mode 100644 arch/arm/cpu/armv7/mx6/ddr.c
>>
>> diff --git a/arch/arm/cpu/armv7/mx6/Makefile
>> b/arch/arm/cpu/armv7/mx6/Makefile
>> index d7285fc..6dc9f8e 100644
>> --- a/arch/arm/cpu/armv7/mx6/Makefile
>> +++ b/arch/arm/cpu/armv7/mx6/Makefile
>> @@ -8,4 +8,5 @@
>>   #
>>
>>   obj-y := soc.o clock.o
>> +obj-$(CONFIG_SPL_BUILD)             += ddr.o
>>   obj-$(CONFIG_SECURE_BOOT)    += hab.o
>> diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c
>> new file mode 100644
>> index 0000000..1536418
>> --- /dev/null
>> +++ b/arch/arm/cpu/armv7/mx6/ddr.c
>> @@ -0,0 +1,469 @@
>> +/*
>> + * Copyright (C) 2014 Gateworks Corporation
>> + * Author: Tim Harvey <tharvey at gateworks.com>
>> + *
>> + * SPDX-License-Identifier:     GPL-2.0+
>> + */
>> +
>> +#include <common.h>
>> +#include <linux/types.h>
>> +#include <asm/arch/mx6-ddr.h>
>> +#include <asm/arch/sys_proto.h>
>> +#include <asm/io.h>
>> +#include <asm/types.h>
>> +
>
>
> Do you think that someone will want to use SPL on i.MX6 with
> support for only one of the variants?

Sure, Falcon mode comes to my mind...

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the U-Boot mailing list