Skip to contentSkip to conversation

Add SMDK5250 board support

PATCH Superseded Chander Kashyap 6 participants 15 messages Jan 9, 2012 – Jan 11, 2012

Subsystems (3)

v2 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add SMDK5250 board support

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
ARM: EXYNOS: Add support for Exynos5 based SoCs
EXYNOS: Add SMDK5250 board support
EXYNOS: SMDK5250: Add MMC SPL support

 MAINTAINERS                                   |    1 +
 arch/arm/cpu/armv7/exynos/clock.c             |  215 +++++++++-
 arch/arm/include/asm/arch-exynos/clock.h      |  326 ++++++++++++++
 arch/arm/include/asm/arch-exynos/cpu.h        |   53 ++-
 arch/arm/include/asm/arch-exynos/gpio.h       |   32 ++
 board/samsung/smdk5250/Makefile               |   64 +++
 board/samsung/smdk5250/lowlevel_init.S        |  528 ++++++++++++++++++++++
 board/samsung/smdk5250/mem_setup.S            |  600 +++++++++++++++++++++++++
 board/samsung/smdk5250/mmc_boot.c             |   58 +++
 board/samsung/smdk5250/smdk5250.c             |  125 +++++
 board/samsung/smdk5250/smdk5250_setup.h       |  589 ++++++++++++++++++++++++
 board/samsung/smdk5250/tools/mkexynos_image.c |  117 +++++
 boards.cfg                                    |    1 +
 include/configs/s5pc210_universal.h           |    1 +
 include/configs/smdk5250.h                    |  188 ++++++++
 15 files changed, 2878 insertions(+), 20 deletions(-)
 create mode 100644 board/samsung/smdk5250/Makefile
 create mode 100644 board/samsung/smdk5250/lowlevel_init.S
 create mode 100644 board/samsung/smdk5250/mem_setup.S
 create mode 100644 board/samsung/smdk5250/mmc_boot.c
 create mode 100644 board/samsung/smdk5250/smdk5250.c
 create mode 100644 board/samsung/smdk5250/smdk5250_setup.h
 create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c
 create mode 100644 include/configs/smdk5250.h
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH v2 1/4 Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro

CONFIG_SYS_CLK_FREQ_C210 macro giving notion of S5PC2XX (Exynos4) architecture. Replace CONFIG_SYS_CLK_FREQ_C210 with CONFIG_SYS_CLK_FREQ to make it generic for exynos architecture.

---
Changes for v2:
- None

 arch/arm/cpu/armv7/exynos/clock.c   |    6 +-----
 include/configs/s5pc210_universal.h |    1 +
 2 files changed, 2 insertions(+), 5 deletions(-)
arch/arm/cpu/armv7/exynos/clock.c +1 -5
index 0c199cd..4d92c53 100644
@@ -26,10 +26,6 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/clk.h>
 
-#ifndef CONFIG_SYS_CLK_FREQ_C210
-#define CONFIG_SYS_CLK_FREQ_C210	24000000
-#endif
-
 /* exynos4: return pll clock frequency */
 static unsigned long exynos4_get_pll_clk(int pllreg)
 {
@@ -76,7 +72,7 @@ static unsigned long exynos4_get_pll_clk(int pllreg)
 	/* SDIV [2:0] */
 	s = r & 0x7;
 
-	freq = CONFIG_SYS_CLK_FREQ_C210;
+	freq = CONFIG_SYS_CLK_FREQ;
 
 	if (pllreg == EPLL) {
 		k = k & 0xffff;
include/configs/s5pc210_universal.h +1 -0
index be000cb..8286680 100644
@@ -49,6 +49,7 @@
 
 /* input clock of PLL: Universal has 24MHz input clock at EXYNOS4210 */
 #define CONFIG_SYS_CLK_FREQ_C210	24000000
+#define CONFIG_SYS_CLK_FREQ		CONFIG_SYS_CLK_FREQ_C210
 
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_CMDLINE_TAG
Signature · 1 line
1.7.5.4
#2 lore raw

PATCH v2 2/4 ARM: EXYNOS: Add support for Exynos5 based SoCs

In reply to Chander Kashyap

Samsung's ARM Cortex-A15 based SoCs are known as Exynos5 series of SoCs. This patch adds the support for Exynos5.

---
Changes for v2:
- This patch was part of "EXYNOS: Add SMDK5250 board support"
- Now it is seprated as SoC support.

 arch/arm/cpu/armv7/exynos/clock.c        |  209 +++++++++++++++++++-
 arch/arm/include/asm/arch-exynos/clock.h |  326 ++++++++++++++++++++++++++++++
 arch/arm/include/asm/arch-exynos/cpu.h   |   53 ++++-
 arch/arm/include/asm/arch-exynos/gpio.h  |   32 +++
 4 files changed, 605 insertions(+), 15 deletions(-)
arch/arm/cpu/armv7/exynos/clock.c +204 -5
index 4d92c53..02f64bb 100644
@@ -92,6 +92,72 @@ static unsigned long exynos4_get_pll_clk(int pllreg)
 	return fout;
 }
 
+/* exynos5: return pll clock frequency */
+static unsigned long exynos5_get_pll_clk(int pllreg)
+{
+	struct exynos5_clock *clk =
+		(struct exynos5_clock *)samsung_get_base_clock();
+	unsigned long r, m, p, s, k = 0, mask, fout;
+	unsigned int freq;
+
+	switch (pllreg) {
+	case APLL:
+		r = readl(&clk->apll_con0);
+		break;
+	case MPLL:
+		r = readl(&clk->mpll_con0);
+		break;
+	case EPLL:
+		r = readl(&clk->epll_con0);
+		k = readl(&clk->epll_con1);
+		break;
+	case VPLL:
+		r = readl(&clk->vpll_con0);
+		k = readl(&clk->vpll_con1);
+		break;
+	default:
+		printf("Unsupported PLL (%d)\n", pllreg);
+		return 0;
+	}
+
+	/*
+	 * APLL_CON: MIDV [25:16]
+	 * MPLL_CON: MIDV [25:16]
+	 * EPLL_CON: MIDV [24:16]
+	 * VPLL_CON: MIDV [24:16]
+	 */
+	if (pllreg == APLL || pllreg == MPLL)
+		mask = 0x3ff;
+	else
+		mask = 0x1ff;
+
+	m = (r >> 16) & mask;
+
+	/* PDIV [13:8] */
+	p = (r >> 8) & 0x3f;
+	/* SDIV [2:0] */
+	s = r & 0x7;
+
+	freq = CONFIG_SYS_CLK_FREQ;
+
+	if (pllreg == EPLL) {
+		k = k & 0xffff;
+		/* FOUT = (MDIV + K / 65536) * FIN / (PDIV * 2^SDIV) */
+		fout = (m + k / 65536) * (freq / (p * (1 << s)));
+	} else if (pllreg == VPLL) {
+		k = k & 0xfff;
+		/* FOUT = (MDIV + K / 1024) * FIN / (PDIV * 2^SDIV) */
+		fout = (m + k / 1024) * (freq / (p * (1 << s)));
+	} else {
+		if (s < 1)
+			s = 1;
+		/* FOUT = MDIV * FIN / (PDIV * 2^(SDIV - 1)) */
+		fout = m * (freq / (p * (1 << (s - 1))));
+	}
+
+	return fout;
+}
+
 /* exynos4: return ARM clock frequency */
 static unsigned long exynos4_get_arm_clk(void)
 {
@@ -114,6 +180,28 @@ static unsigned long exynos4_get_arm_clk(void)
 	return armclk;
 }
 
+/* exynos5: return ARM clock frequency */
+static unsigned long exynos5_get_arm_clk(void)
+{
+	struct exynos5_clock *clk =
+		(struct exynos5_clock *)samsung_get_base_clock();
+	unsigned long div;
+	unsigned long armclk;
+	unsigned int arm_ratio;
+	unsigned int arm2_ratio;
+
+	div = readl(&clk->div_cpu0);
+
+	/* ARM_RATIO: [2:0], ARM2_RATIO: [30:28] */
+	arm_ratio = (div >> 0) & 0x7;
+	arm2_ratio = (div >> 28) & 0x7;
+
+	armclk = get_pll_clk(APLL) / (arm_ratio + 1);
+	armclk /= (arm2_ratio + 1);
+
+	return armclk;
+}
+
 /* exynos4: return pwm clock frequency */
 static unsigned long exynos4_get_pwm_clk(void)
 {
@@ -157,6 +245,28 @@ static unsigned long exynos4_get_pwm_clk(void)
 	return pclk;
 }
 
+/* exynos5: return pwm clock frequency */
+static unsigned long exynos5_get_pwm_clk(void)
+{
+	struct exynos5_clock *clk =
+		(struct exynos5_clock *)samsung_get_base_clock();
+	unsigned long pclk, sclk;
+	unsigned int sel;
+	unsigned int ratio;
+
+	/*
+	 * CLK_DIV_PERIC3
+	 * PWM_RATIO [3:0]
+	 */
+	ratio = readl(&clk->div_peric3);
+	ratio = ratio & 0xf;
+	sclk = get_pll_clk(MPLL);
+
+	pclk = sclk / (ratio + 1);
+
+	return pclk;
+}
+
 /* exynos4: return uart clock frequency */
 static unsigned long exynos4_get_uart_clk(int dev_index)
 {
@@ -204,6 +314,53 @@ static unsigned long exynos4_get_uart_clk(int dev_index)
 	return uclk;
 }
 
+/* exynos5: return uart clock frequency */
+static unsigned long exynos5_get_uart_clk(int dev_index)
+{
+	struct exynos5_clock *clk =
+		(struct exynos5_clock *)samsung_get_base_clock();
+	unsigned long uclk, sclk;
+	unsigned int sel;
+	unsigned int ratio;
+
+	/*
+	 * CLK_SRC_PERIC0
+	 * UART0_SEL [3:0]
+	 * UART1_SEL [7:4]
+	 * UART2_SEL [8:11]
+	 * UART3_SEL [12:15]
+	 * UART4_SEL [16:19]
+	 * UART5_SEL [23:20]
+	 */
+	sel = readl(&clk->src_peric0);
+	sel = (sel >> (dev_index << 2)) & 0xf;
+
+	if (sel == 0x6)
+		sclk = get_pll_clk(MPLL);
+	else if (sel == 0x7)
+		sclk = get_pll_clk(EPLL);
+	else if (sel == 0x8)
+		sclk = get_pll_clk(VPLL);
+	else
+		return 0;
+
+	/*
+	 * CLK_DIV_PERIC0
+	 * UART0_RATIO [3:0]
+	 * UART1_RATIO [7:4]
+	 * UART2_RATIO [8:11]
+	 * UART3_RATIO [12:15]
+	 * UART4_RATIO [16:19]
+	 * UART5_RATIO [23:20]
+	 */
+	ratio = readl(&clk->div_peric0);
+	ratio = (ratio >> (dev_index << 2)) & 0xf;
+
+	uclk = sclk / (ratio + 1);
+
+	return uclk;
+}
+
 /* exynos4: set the mmc clock */
 static void exynos4_set_mmc_clk(int dev_index, unsigned int div)
 {
@@ -231,27 +388,69 @@ static void exynos4_set_mmc_clk(int dev_index, unsigned int div)
 	writel(val, addr);
 }
 
+/* exynos5: set the mmc clock */
+static void exynos5_set_mmc_clk(int dev_index, unsigned int div)
+{
+	struct exynos5_clock *clk =
+		(struct exynos5_clock *)samsung_get_base_clock();
+	unsigned int addr;
+	unsigned int val;
+
+	/*
+	 * CLK_DIV_FSYS1
+	 * MMC0_PRE_RATIO [15:8], MMC1_PRE_RATIO [31:24]
+	 * CLK_DIV_FSYS2
+	 * MMC2_PRE_RATIO [15:8], MMC3_PRE_RATIO [31:24]
+	 */
+	if (dev_index < 2) {
+		addr = (unsigned int)&clk->div_fsys1;
+	} else {
+		addr = (unsigned int)&clk->div_fsys2;
+		dev_index -= 2;
+	}
+
+	val = readl(addr);
+	val &= ~(0xff << ((dev_index << 4) + 8));
+	val |= (div & 0xff) << ((dev_index << 4) + 8);
+	writel(val, addr);
+}
+
 unsigned long get_pll_clk(int pllreg)
 {
-	return exynos4_get_pll_clk(pllreg);
+	if (cpu_is_exynos5())
+		return exynos5_get_pll_clk(pllreg);
+	else
+		return exynos4_get_pll_clk(pllreg);
 }
 
 unsigned long get_arm_clk(void)
 {
-	return exynos4_get_arm_clk();
+	if (cpu_is_exynos5())
+		return exynos5_get_arm_clk();
+	else
+		return exynos4_get_arm_clk();
 }
 
 unsigned long get_pwm_clk(void)
 {
-	return exynos4_get_pwm_clk();
+	if (cpu_is_exynos5())
+		return exynos5_get_pwm_clk();
+	else
+		return exynos4_get_pwm_clk();
 }
 
 unsigned long get_uart_clk(int dev_index)
 {
-	return exynos4_get_uart_clk(dev_index);
+	if (cpu_is_exynos5())
+		return exynos5_get_uart_clk(dev_index);
+	else
+		return exynos4_get_uart_clk(dev_index);
 }
 
 void set_mmc_clk(int dev_index, unsigned int div)
 {
-	exynos4_set_mmc_clk(dev_index, div);
+	if (cpu_is_exynos5())
+		exynos5_set_mmc_clk(dev_index, div);
+	else
+		exynos4_set_mmc_clk(dev_index, div);
 }
arch/arm/include/asm/arch-exynos/clock.h +326 -0

332 lines not on this page · raw message

arch/arm/include/asm/arch-exynos/cpu.h +43 -10

84 lines not on this page · raw message

arch/arm/include/asm/arch-exynos/gpio.h +32 -0
index 9863a12..a5a09ec 100644
@@ -75,6 +75,29 @@ struct exynos4_gpio_part2 {
 	struct s5p_gpio_bank x3;
 };
 
+struct exynos5_gpio_part1 {
+	struct s5p_gpio_bank a0;
+	struct s5p_gpio_bank a1;
+	struct s5p_gpio_bank a2;
+	struct s5p_gpio_bank b0;
+	struct s5p_gpio_bank b1;
+	struct s5p_gpio_bank b2;
+	struct s5p_gpio_bank b3;
+	struct s5p_gpio_bank c0;
+	struct s5p_gpio_bank c1;
+	struct s5p_gpio_bank c2;
+	struct s5p_gpio_bank c3;
+	struct s5p_gpio_bank d0;
+	struct s5p_gpio_bank d1;
+	struct s5p_gpio_bank y0;
+	struct s5p_gpio_bank y1;
+	struct s5p_gpio_bank y2;
+	struct s5p_gpio_bank y3;
+	struct s5p_gpio_bank y4;
+	struct s5p_gpio_bank y5;
+	struct s5p_gpio_bank y6;
+};
+
 struct exynos4_gpio_part3 {
 	struct s5p_gpio_bank z;
 };
@@ -107,8 +130,17 @@ void s5p_gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode);
 	    - EXYNOS4_GPIO_PART2_BASE) / sizeof(struct s5p_gpio_bank)) \
 	  * GPIO_PER_BANK) + pin) + GPIO_PART1_MAX)
 
+#define exynos5_gpio_part1_get_nr(bank, pin) \
+	((((((unsigned int) &(((struct exynos5_gpio_part1 *) \
+			       EXYNOS5_GPIO_PART1_BASE)->bank)) \
+	    - EXYNOS5_GPIO_PART1_BASE) / sizeof(struct s5p_gpio_bank)) \
+	  * GPIO_PER_BANK) + pin)
+
 static inline unsigned int s5p_gpio_base(int nr)
 {
+	if (cpu_is_exynos5())
+		return EXYNOS5_GPIO_PART1_BASE;
+
 	if (nr < GPIO_PART1_MAX)
 		return EXYNOS4_GPIO_PART1_BASE;
 	else
Signature · 1 line
1.7.5.4
#3 lore raw

PATCH v2 2/4 ARM: EXYNOS: Add support for Exynos5 based SoCs

Dear Chander Kashyap,

Quoted 33 lines · Chander Kashyap

Samsung's ARM Cortex-A15 based SoCs are known as Exynos5 series of SoCs. This patch adds the support for Exynos5.

---
Changes for v2:
? ? ? ?- This patch was part of "EXYNOS: Add SMDK5250 board support" ? ? ? ?- Now it is seprated as SoC support.

?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ?| ?209 +++++++++++++++++++-
?arch/arm/include/asm/arch-exynos/clock.h | ?326 ++++++++++++++++++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? | ? 53 ++++-
?arch/arm/include/asm/arch-exynos/gpio.h ?| ? 32 +++

?4 files changed, 605 insertions(+), 15 deletions(-)

arch/arm/include/asm/arch-exynos/cpu.h +0 -0
index 6d97b99..fd050b1 100644
@@ -22,6 +22,8 @@

?#ifndef _EXYNOS4_CPU_H
?#define _EXYNOS4_CPU_H

arch/arm/include/asm/arch-exynos/cpu.h +2 -0
+#define DEVICE_NOT_AVAILABLE ? ? ? ? ? 0
+

?#define EXYNOS4_ADDR_BASE ? ? ? ? ? ? ?0x10000000

?/* EXYNOS4 */

arch/arm/include/asm/arch-exynos/cpu.h +0 -0
@@ -46,7 +48,31 @@

?#define EXYNOS4_ADC_BASE ? ? ? ? ? ? ? 0x13910000 ?#define EXYNOS4_PWMTIMER_BASE ? ? ? ? ?0x139D0000 ?#define EXYNOS4_MODEM_BASE ? ? ? ? ? ? 0x13A00000

arch/arm/include/asm/arch-exynos/cpu.h +0 -1
-#define EXYNOS4_USBPHY_CONTROL ? ? ? ? ?0x10020704

arch/arm/include/asm/arch-exynos/cpu.h

Quoted 10 lines
arch/arm/include/asm/arch-exynos/cpu.h +10 -0
+#define EXYNOS4_USBPHY_CONTROL ? ? ? ? 0x10020704
+
+/* EXYNOS5 */
+#define EXYNOS5_PRO_ID ? ? ? ? ? ? ? ? 0x10000000
+#define EXYNOS5_CLOCK_BASE ? ? ? ? ? ? 0x10010000
+#define EXYNOS5_POWER_BASE ? ? ? ? ? ? 0x10040000
+#define EXYNOS5_SWRESET ? ? ? ? ? ? ? ? ? ? ? ?0x10040400
+#define EXYNOS5_SYSREG_BASE ? ? ? ? ? ?0x10050000
+#define EXYNOS5_WATCHDOG_BASE ? ? ? ? ?0x101D0000
+#define EXYNOS5_GPIO_PART1_BASE ? ? ? ? ? ? ? ?0x11400000

just one part?
According to your patch, exynos5 support 20 banks of gpio right? I think it's too small.
Please check.

arch/arm/include/asm/arch-exynos/cpu.h

Quoted 9 lines
arch/arm/include/asm/arch-exynos/cpu.h +9 -0
+#define EXYNOS5_MMC_BASE ? ? ? ? ? ? ? 0x12200000
+#define EXYNOS5_SROMC_BASE ? ? ? ? ? ? 0x12250000
+#define EXYNOS5_USBOTG_BASE ? ? ? ? ? ?0x12480000
+#define EXYNOS5_USBPHY_BASE ? ? ? ? ? ?0x12480000
+#define EXYNOS5_UART_BASE ? ? ? ? ? ? ?0x12C00000
+#define EXYNOS5_PWMTIMER_BASE ? ? ? ? ?0x12DD0000
+#define EXYNOS5_DMC_CTRL_BASE ? ? ? ? ?0x10DD0000
+#define EXYNOS5_PHY0_CTRL_BASE ? ? ? ? 0x10C00000
+#define EXYNOS5_PHY1_CTRL_BASE ? ? ? ? 0x10C10000

What are PHY0 and PHY1?

Quoted 1 line

+#define EXYNOS5_FIMD_BASE ? ? ? ? ? ? ?0x14400000

And please sort this list.

Quoted 18 lines
arch/arm/include/asm/arch-exynos/cpu.h +5 -0
+
+#define EXYNOS5_ADC_BASE ? ? ? ? ? ? ? DEVICE_NOT_AVAILABLE
+#define EXYNOS5_GPIO_PART2_BASE ? ? ? ? ? ? ? ?DEVICE_NOT_AVAILABLE
+#define EXYNOS5_GPIO_PART3_BASE ? ? ? ? ? ? ? ?DEVICE_NOT_AVAILABLE
+#define EXYNOS5_MODEM_BASE ? ? ? ? ? ? DEVICE_NOT_AVAILABLE

?#ifndef __ASSEMBLY__
?#include <asm/io.h>

arch/arm/include/asm/arch-exynos/cpu.h +6 -0
@@ -59,9 +85,22 @@ static inline int s5p_get_cpu_rev(void)
 ? ? ? ?return s5p_cpu_rev;
 ?}
 
+#define IS_SAMSUNG_TYPE(type, id) ? ? ? ? ? ? ? ? ? ? ?\
+static inline int cpu_is_##type(void) ? ? ? ? ? ? ? ? ?\
+{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? return s5p_cpu_id == id ? 1 : 0; ? ? ? ? ? ? ? ?\
+}
+

arch/arm/include/asm/arch-exynos/cpu.h static inline int s5p_get_cpu_rev(void) · line 102

Quoted 10 lines
arch/arm/include/asm/arch-exynos/cpu.h +7 -1
+IS_SAMSUNG_TYPE(exynos4, 0xc210)
+IS_SAMSUNG_TYPE(exynos5, 0xc520)
+
 ?static inline void s5p_set_cpu_id(void)
 ?{
- ? ? ? s5p_cpu_id = readl(EXYNOS4_PRO_ID);
+ ? ? ? if (cpu_is_exynos5())
+ ? ? ? ? ? ? ? s5p_cpu_id = readl(EXYNOS5_PRO_ID);
+ ? ? ? else
+ ? ? ? ? ? ? ? s5p_cpu_id = readl(EXYNOS4_PRO_ID);

Hm.. this is right but,
Since base addresses are same, just do "s5p_cpu_id = readl(EXYNOS4_PRO_ID);"

Quoted 5 lines
arch/arm/include/asm/arch-exynos/cpu.h +1 -0
+
 ? ? ? ?s5p_cpu_id = (0xC000 | ((s5p_cpu_id & 0x00FFF000) >> 12));
 

? ? ? ?/*

arch/arm/include/asm/arch-exynos/cpu.h static inline void s5p_set_cpu_id(void) · line 85

Quoted 10 lines
arch/arm/include/asm/arch-exynos/cpu.h +0 -7
@@ -76,19 +115,13 @@ static inline void s5p_set_cpu_id(void)
 ? ? ? ?}
 ?}
 
-#define IS_SAMSUNG_TYPE(type, id) ? ? ? ? ? ? ? ? ? ? ?\
-static inline int cpu_is_##type(void) ? ? ? ? ? ? ? ? ?\
-{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
- ? ? ? return s5p_cpu_id == id ? 1 : 0; ? ? ? ? ? ? ? ?\
-}
-
-IS_SAMSUNG_TYPE(exynos4, 0xc210)

So.. no need to move.

Quoted 31 lines
arch/arm/include/asm/arch-exynos/cpu.h +2 -1
-
 ?#define SAMSUNG_BASE(device, base) ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
 ?static inline unsigned int samsung_get_base_##device(void) ? ? \
 ?{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
 ? ? ? ?if (cpu_is_exynos4()) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
 ? ? ? ? ? ? ? ?return EXYNOS4_##base; ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? else if (cpu_is_exynos5()) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? return EXYNOS5_##base; ? ? ? ? ? ? ? ? ? ? ? ? ?\
 ? ? ? ?else ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
 ? ? ? ? ? ? ? ?return 0; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
 ?}
arch/arm/include/asm/arch-exynos/gpio.h +12 -0
index 9863a12..a5a09ec 100644
@@ -75,6 +75,29 @@ struct exynos4_gpio_part2 {
 ? ? ? ?struct s5p_gpio_bank x3;
 ?};
 
+struct exynos5_gpio_part1 {
+ ? ? ? struct s5p_gpio_bank a0;
+ ? ? ? struct s5p_gpio_bank a1;
+ ? ? ? struct s5p_gpio_bank a2;
+ ? ? ? struct s5p_gpio_bank b0;
+ ? ? ? struct s5p_gpio_bank b1;
+ ? ? ? struct s5p_gpio_bank b2;
+ ? ? ? struct s5p_gpio_bank b3;
+ ? ? ? struct s5p_gpio_bank c0;
+ ? ? ? struct s5p_gpio_bank c1;
+ ? ? ? struct s5p_gpio_bank c2;
+ ? ? ? struct s5p_gpio_bank c3;

arch/arm/include/asm/arch-exynos/gpio.h struct exynos4_gpio_part2 { · line 99

Quoted 10 lines
arch/arm/include/asm/arch-exynos/gpio.h +10 -0
+ ? ? ? struct s5p_gpio_bank d0;
+ ? ? ? struct s5p_gpio_bank d1;
+ ? ? ? struct s5p_gpio_bank y0;
+ ? ? ? struct s5p_gpio_bank y1;
+ ? ? ? struct s5p_gpio_bank y2;
+ ? ? ? struct s5p_gpio_bank y3;
+ ? ? ? struct s5p_gpio_bank y4;
+ ? ? ? struct s5p_gpio_bank y5;
+ ? ? ? struct s5p_gpio_bank y6;
+};

Please move it to under the exynos4_gpio_part3.

arch/arm/include/asm/arch-exynos/gpio.h void s5p_gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode); · line 133

Quoted 9 lines
arch/arm/include/asm/arch-exynos/gpio.h +2 -0
+
 ?struct exynos4_gpio_part3 {
 ? ? ? ?struct s5p_gpio_bank z;
 ?};
@@ -107,8 +130,17 @@ void s5p_gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode);
 ? ? ? ? ? ?- EXYNOS4_GPIO_PART2_BASE) / sizeof(struct s5p_gpio_bank)) \
 ? ? ? ? ?* GPIO_PER_BANK) + pin) + GPIO_PART1_MAX)
 
+#define exynos5_gpio_part1_get_nr(bank, pin) \

If it support just one part then remove part1. (exynos5_gpio_get_nr)

Quoted 12 lines
arch/arm/include/asm/arch-exynos/gpio.h +8 -0
+ ? ? ? ((((((unsigned int) &(((struct exynos5_gpio_part1 *) \
+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?EXYNOS5_GPIO_PART1_BASE)->bank)) \
+ ? ? ? ? ? - EXYNOS5_GPIO_PART1_BASE) / sizeof(struct s5p_gpio_bank)) \
+ ? ? ? ? * GPIO_PER_BANK) + pin)
+
 ?static inline unsigned int s5p_gpio_base(int nr)
 ?{
+ ? ? ? if (cpu_is_exynos5())
+ ? ? ? ? ? ? ? return EXYNOS5_GPIO_PART1_BASE;
+
 ? ? ? ?if (nr < GPIO_PART1_MAX)
 ? ? ? ? ? ? ? ?return EXYNOS4_GPIO_PART1_BASE;
Quoted 4 lines

? ? ? ?else
--
1.7.5.4

Thanks.
Minkyu Kang.

Signature · 2 lines
from. prom.
www.promsoft.net
#4 lore raw

PATCH v2 2/4 ARM: EXYNOS: Add support for Exynos5 based SoCs

Dear Minkyu Kang,

Quoted 43 lines · Minkyu Kang

Dear Chander Kashyap,

Quoted 40 lines · Chander Kashyap

Samsung's ARM Cortex-A15 based SoCs are known as Exynos5 series of SoCs. This patch adds the support for Exynos5.

---
Changes for v2:
? ? ? ?- This patch was part of "EXYNOS: Add SMDK5250 board support" ? ? ? ?- Now it is seprated as SoC support.

?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ?| ?209 +++++++++++++++++++-
?arch/arm/include/asm/arch-exynos/clock.h | ?326 ++++++++++++++++++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? | ? 53 ++++-
?arch/arm/include/asm/arch-exynos/gpio.h ?| ? 32 +++

?4 files changed, 605 insertions(+), 15 deletions(-)

arch/arm/include/asm/arch-exynos/cpu.h +0 -0
index 6d97b99..fd050b1 100644
@@ -22,6 +22,8 @@

?#ifndef _EXYNOS4_CPU_H
?#define _EXYNOS4_CPU_H

arch/arm/include/asm/arch-exynos/cpu.h +2 -0
+#define DEVICE_NOT_AVAILABLE ? ? ? ? ? 0
+

?#define EXYNOS4_ADDR_BASE ? ? ? ? ? ? ?0x10000000

?/* EXYNOS4 */

arch/arm/include/asm/arch-exynos/cpu.h +0 -0
@@ -46,7 +48,31 @@

?#define EXYNOS4_ADC_BASE ? ? ? ? ? ? ? 0x13910000 ?#define EXYNOS4_PWMTIMER_BASE ? ? ? ? ?0x139D0000 ?#define EXYNOS4_MODEM_BASE ? ? ? ? ? ? 0x13A00000

arch/arm/include/asm/arch-exynos/cpu.h +7 -1
-#define EXYNOS4_USBPHY_CONTROL ? ? ? ? ?0x10020704
+#define EXYNOS4_USBPHY_CONTROL ? ? ? ? 0x10020704
+
+/* EXYNOS5 */
+#define EXYNOS5_PRO_ID ? ? ? ? ? ? ? ? 0x10000000
+#define EXYNOS5_CLOCK_BASE ? ? ? ? ? ? 0x10010000
+#define EXYNOS5_POWER_BASE ? ? ? ? ? ? 0x10040000
+#define EXYNOS5_SWRESET ? ? ? ? ? ? ? ? ? ? ? ?0x10040400
Quoted 8 lines

arch/arm/include/asm/arch-exynos/cpu.h

Quoted 3 lines
arch/arm/include/asm/arch-exynos/cpu.h +3 -0
+#define EXYNOS5_SYSREG_BASE ? ? ? ? ? ?0x10050000
+#define EXYNOS5_WATCHDOG_BASE ? ? ? ? ?0x101D0000
+#define EXYNOS5_GPIO_PART1_BASE ? ? ? ? ? ? ? ?0x11400000

just one part?
According to your patch, exynos5 support 20 banks of gpio right? I think it's too small.
Please check.

Yes this list is not complete. Only uart, srom and mmc gpio are listed. I will Populate the list.

Quoted 12 lines

arch/arm/include/asm/arch-exynos/cpu.h

Quoted 10 lines
arch/arm/include/asm/arch-exynos/cpu.h +9 -0
+#define EXYNOS5_MMC_BASE ? ? ? ? ? ? ? 0x12200000
+#define EXYNOS5_SROMC_BASE ? ? ? ? ? ? 0x12250000
+#define EXYNOS5_USBOTG_BASE ? ? ? ? ? ?0x12480000
+#define EXYNOS5_USBPHY_BASE ? ? ? ? ? ?0x12480000
+#define EXYNOS5_UART_BASE ? ? ? ? ? ? ?0x12C00000
+#define EXYNOS5_PWMTIMER_BASE ? ? ? ? ?0x12DD0000
+#define EXYNOS5_DMC_CTRL_BASE ? ? ? ? ?0x10DD0000
+#define EXYNOS5_PHY0_CTRL_BASE ? ? ? ? 0x10C00000
+#define EXYNOS5_PHY1_CTRL_BASE ? ? ? ? 0x10C10000

What are PHY0 and PHY1?

there are two DMC PHY control registers

Quoted 4 lines
Quoted 2 lines

+#define EXYNOS5_FIMD_BASE ? ? ? ? ? ? ?0x14400000

And please sort this list.

Ok

Quoted 24 lines
Quoted 24 lines
arch/arm/include/asm/arch-exynos/cpu.h +5 -0
+
+#define EXYNOS5_ADC_BASE ? ? ? ? ? ? ? DEVICE_NOT_AVAILABLE
+#define EXYNOS5_GPIO_PART2_BASE ? ? ? ? ? ? ? ?DEVICE_NOT_AVAILABLE
+#define EXYNOS5_GPIO_PART3_BASE ? ? ? ? ? ? ? ?DEVICE_NOT_AVAILABLE
+#define EXYNOS5_MODEM_BASE ? ? ? ? ? ? DEVICE_NOT_AVAILABLE

?#ifndef __ASSEMBLY__
?#include <asm/io.h>

arch/arm/include/asm/arch-exynos/cpu.h +9 -0
@@ -59,9 +85,22 @@ static inline int s5p_get_cpu_rev(void)
 ? ? ? ?return s5p_cpu_rev;
 ?}
 
+#define IS_SAMSUNG_TYPE(type, id) ? ? ? ? ? ? ? ? ? ? ?\
+static inline int cpu_is_##type(void) ? ? ? ? ? ? ? ? ?\
+{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? return s5p_cpu_id == id ? 1 : 0; ? ? ? ? ? ? ? ?\
+}
+
+IS_SAMSUNG_TYPE(exynos4, 0xc210)
+IS_SAMSUNG_TYPE(exynos5, 0xc520)
+
 ?static inline void s5p_set_cpu_id(void)
 ?{
Quoted 8 lines

arch/arm/include/asm/arch-exynos/cpu.h static inline int s5p_get_cpu_rev(void) · line 102

Quoted 5 lines
arch/arm/include/asm/arch-exynos/cpu.h +4 -1
- ? ? ? s5p_cpu_id = readl(EXYNOS4_PRO_ID);
+ ? ? ? if (cpu_is_exynos5())
+ ? ? ? ? ? ? ? s5p_cpu_id = readl(EXYNOS5_PRO_ID);
+ ? ? ? else
+ ? ? ? ? ? ? ? s5p_cpu_id = readl(EXYNOS4_PRO_ID);

Hm.. this is right but,
Since base addresses are same, just do "s5p_cpu_id = readl(EXYNOS4_PRO_ID);"

ok

Quoted 9 lines
Quoted 9 lines
arch/arm/include/asm/arch-exynos/cpu.h +1 -0
+
 ? ? ? ?s5p_cpu_id = (0xC000 | ((s5p_cpu_id & 0x00FFF000) >> 12));
 

? ? ? ?/*

arch/arm/include/asm/arch-exynos/cpu.h +0 -0
@@ -76,19 +115,13 @@ static inline void s5p_set_cpu_id(void)
 ? ? ? ?}
 ?}
 
Quoted 9 lines

arch/arm/include/asm/arch-exynos/cpu.h static inline void s5p_set_cpu_id(void) · line 85

Quoted 7 lines
arch/arm/include/asm/arch-exynos/cpu.h +0 -7
-#define IS_SAMSUNG_TYPE(type, id) ? ? ? ? ? ? ? ? ? ? ?\
-static inline int cpu_is_##type(void) ? ? ? ? ? ? ? ? ?\
-{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
- ? ? ? return s5p_cpu_id == id ? 1 : 0; ? ? ? ? ? ? ? ?\
-}
-
-IS_SAMSUNG_TYPE(exynos4, 0xc210)

So.. no need to move.

I got it

Quoted 36 lines
Quoted 36 lines
arch/arm/include/asm/arch-exynos/cpu.h +2 -1
-
 ?#define SAMSUNG_BASE(device, base) ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
 ?static inline unsigned int samsung_get_base_##device(void) ? ? \
 ?{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
 ? ? ? ?if (cpu_is_exynos4()) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
 ? ? ? ? ? ? ? ?return EXYNOS4_##base; ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? else if (cpu_is_exynos5()) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? return EXYNOS5_##base; ? ? ? ? ? ? ? ? ? ? ? ? ?\
 ? ? ? ?else ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
 ? ? ? ? ? ? ? ?return 0; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
 ?}
arch/arm/include/asm/arch-exynos/gpio.h +16 -0
index 9863a12..a5a09ec 100644
@@ -75,6 +75,29 @@ struct exynos4_gpio_part2 {
 ? ? ? ?struct s5p_gpio_bank x3;
 ?};
 
+struct exynos5_gpio_part1 {
+ ? ? ? struct s5p_gpio_bank a0;
+ ? ? ? struct s5p_gpio_bank a1;
+ ? ? ? struct s5p_gpio_bank a2;
+ ? ? ? struct s5p_gpio_bank b0;
+ ? ? ? struct s5p_gpio_bank b1;
+ ? ? ? struct s5p_gpio_bank b2;
+ ? ? ? struct s5p_gpio_bank b3;
+ ? ? ? struct s5p_gpio_bank c0;
+ ? ? ? struct s5p_gpio_bank c1;
+ ? ? ? struct s5p_gpio_bank c2;
+ ? ? ? struct s5p_gpio_bank c3;
+ ? ? ? struct s5p_gpio_bank d0;
+ ? ? ? struct s5p_gpio_bank d1;
+ ? ? ? struct s5p_gpio_bank y0;
+ ? ? ? struct s5p_gpio_bank y1;
Quoted 8 lines

arch/arm/include/asm/arch-exynos/gpio.h struct exynos4_gpio_part2 { · line 99

Quoted 6 lines
arch/arm/include/asm/arch-exynos/gpio.h +6 -0
+ ? ? ? struct s5p_gpio_bank y2;
+ ? ? ? struct s5p_gpio_bank y3;
+ ? ? ? struct s5p_gpio_bank y4;
+ ? ? ? struct s5p_gpio_bank y5;
+ ? ? ? struct s5p_gpio_bank y6;
+};

Please move it to under the exynos4_gpio_part3.

ok

Quoted 9 lines
Quoted 9 lines
arch/arm/include/asm/arch-exynos/gpio.h +1 -0
+
 ?struct exynos4_gpio_part3 {
 ? ? ? ?struct s5p_gpio_bank z;
 ?};
@@ -107,8 +130,17 @@ void s5p_gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode);
 ? ? ? ? ? ?- EXYNOS4_GPIO_PART2_BASE) / sizeof(struct s5p_gpio_bank)) \
 ? ? ? ? ?* GPIO_PER_BANK) + pin) + GPIO_PART1_MAX)
 
Quoted 4 lines

arch/arm/include/asm/arch-exynos/gpio.h void s5p_gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode); · line 133

Quoted 1 line
arch/arm/include/asm/arch-exynos/gpio.h +1 -0
+#define exynos5_gpio_part1_get_nr(bank, pin) \

If it support just one part then remove part1. (exynos5_gpio_get_nr)

ok

Quoted 22 lines
Quoted 12 lines
arch/arm/include/asm/arch-exynos/gpio.h +8 -0
+ ? ? ? ((((((unsigned int) &(((struct exynos5_gpio_part1 *) \
+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?EXYNOS5_GPIO_PART1_BASE)->bank)) \
+ ? ? ? ? ? - EXYNOS5_GPIO_PART1_BASE) / sizeof(struct s5p_gpio_bank)) \
+ ? ? ? ? * GPIO_PER_BANK) + pin)
+
 ?static inline unsigned int s5p_gpio_base(int nr)
 ?{
+ ? ? ? if (cpu_is_exynos5())
+ ? ? ? ? ? ? ? return EXYNOS5_GPIO_PART1_BASE;
+
 ? ? ? ?if (nr < GPIO_PART1_MAX)
 ? ? ? ? ? ? ? ?return EXYNOS4_GPIO_PART1_BASE;
Quoted 4 lines

? ? ? ?else
--
1.7.5.4

Thanks.
Minkyu Kang.
--
from. prom.
www.promsoft.net

Signature · 2 lines
with warm regards,
Chander Kashyap
#5 lore raw

PATCH v2 3/4 EXYNOS: Add SMDK5250 board support

In reply to Chander Kashyap

SMDK5250 board is based on Samsungs EXYNOS5250 SoC.

---
Changes for v2:
- This patch is bifurcated into borad support and SoC support
- Fixed typo: s/EEYNOS/EXYNOS
- Squashed patch "SMDK5250: enable device tree support" in this.

 MAINTAINERS                             |    1 +
 board/samsung/smdk5250/Makefile         |   48 +++
 board/samsung/smdk5250/lowlevel_init.S  |  528 +++++++++++++++++++++++++++
 board/samsung/smdk5250/mem_setup.S      |  600 +++++++++++++++++++++++++++++++
 board/samsung/smdk5250/smdk5250.c       |  125 +++++++
 board/samsung/smdk5250/smdk5250_setup.h |  589 ++++++++++++++++++++++++++++++
 boards.cfg                              |    1 +
 include/configs/smdk5250.h              |  185 ++++++++++
 8 files changed, 2077 insertions(+), 0 deletions(-)
 create mode 100644 board/samsung/smdk5250/Makefile
 create mode 100644 board/samsung/smdk5250/lowlevel_init.S
 create mode 100644 board/samsung/smdk5250/mem_setup.S
 create mode 100644 board/samsung/smdk5250/smdk5250.c
 create mode 100644 board/samsung/smdk5250/smdk5250_setup.h
 create mode 100644 include/configs/smdk5250.h
MAINTAINERS +1 -0
index 4bf12b5..f62b03e 100644
@@ -705,6 +705,7 @@ Chander Kashyap <[email protected]>
 
 	origen			ARM ARMV7 (EXYNOS4210 SoC)
 	SMDKV310		ARM ARMV7 (EXYNOS4210 SoC)
+	SMDK5250		ARM ARMV7 (EXYNOS5250 SoC)
 
 Torsten Koschorrek <[email protected]>
 	scb9328		ARM920T (i.MXL)
board/samsung/smdk5250/Makefile new file +48 -0

48 lines not on this page · raw message

board/samsung/smdk5250/lowlevel_init.S new file +528 -0

528 lines not on this page · raw message

board/samsung/smdk5250/mem_setup.S new file +600 -0

600 lines not on this page · raw message

board/samsung/smdk5250/smdk5250.c new file +125 -0

125 lines not on this page · raw message

board/samsung/smdk5250/smdk5250_setup.h new file +589 -0

589 lines not on this page · raw message

boards.cfg +1 -0
index 0b32532..3676e9d 100644
@@ -218,6 +218,7 @@ s5p_goni                     arm         armv7       goni                samsung
 smdkc100                     arm         armv7       smdkc100            samsung        s5pc1xx
 origen			     arm	 armv7	     origen		 samsung	exynos
 s5pc210_universal            arm         armv7       universal_c210      samsung        exynos
+smdk5250		     arm	 armv7	     smdk5250		 samsung	exynos
 smdkv310		     arm	 armv7	     smdkv310		 samsung	exynos
 harmony                      arm         armv7       harmony             nvidia         tegra2
 seaboard                     arm         armv7       seaboard            nvidia         tegra2
include/configs/smdk5250.h new file +185 -0

185 lines not on this page · raw message

Signature · 1 line
1.7.5.4
#6 lore raw

PATCH v2 4/4 EXYNOS: SMDK5250: Add MMC SPL support

In reply to Chander Kashyap

This patch adds support for mmc spl booting.

---
Changes for v2:
- None

 board/samsung/smdk5250/Makefile               |   16 ++++
 board/samsung/smdk5250/mmc_boot.c             |   58 ++++++++++++
 board/samsung/smdk5250/tools/mkexynos_image.c |  117 +++++++++++++++++++++++++
 include/configs/smdk5250.h                    |    3 +
 4 files changed, 194 insertions(+), 0 deletions(-)
 create mode 100644 board/samsung/smdk5250/mmc_boot.c
 create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c
board/samsung/smdk5250/Makefile +16 -0
index a26f896..0e8c05a 100644
@@ -26,18 +26,34 @@ LIB	= $(obj)lib$(BOARD).o
 
 SOBJS	:= lowlevel_init.o
 SOBJS	+= mem_setup.o
+
+ifndef CONFIG_SPL_BUILD
 COBJS	+= smdk5250.o
+endif
+
+ifdef CONFIG_SPL_BUILD
+COBJS	+= mmc_boot.o
+endif
 
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
 
 ALL	:=	 $(obj).depend $(LIB)
 
+ifdef CONFIG_SPL_BUILD
+ALL	+= $(OBJTREE)/tools/mk$(BOARD)spl
+endif
+
 all:	$(ALL)
 
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
+ifdef CONFIG_SPL_BUILD
+$(OBJTREE)/tools/mk$(BOARD)spl:	tools/mkexynos_image.c
+	$(HOSTCC) tools/mkexynos_image.c -o $(OBJTREE)/tools/mk$(BOARD)spl
+endif
+
 #########################################################################
 
 # defines $(obj).depend target
board/samsung/smdk5250/mmc_boot.c new file +58 -0

58 lines not on this page · raw message

board/samsung/smdk5250/tools/mkexynos_image.c new file +117 -0

117 lines not on this page · raw message

include/configs/smdk5250.h +3 -0
index 9962c14..31f56fd 100644
@@ -95,6 +95,9 @@
 
 #define CONFIG_BOOTDELAY		3
 #define CONFIG_ZERO_BOOTDELAY_CHECK
+/* MMC SPL */
+#define CONFIG_SPL
+#define COPY_BL2_FNPTR_ADDR	0x02020030
 
 #define CONFIG_BOOTCOMMAND	"fatload mmc 0 40007000 uImage; bootm 40007000"
 
Signature · 1 line
1.7.5.4
#7 lore raw

v2 cover Add SMDK5250 board support

In reply to Chander Kashyap

Hi Chander,

Quoted 19 lines · Chander Kashyap

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
?Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
?ARM: EXYNOS: Add support for Exynos5 based SoCs
?EXYNOS: Add SMDK5250 board support
?EXYNOS: SMDK5250: Add MMC SPL support

Quoted 8 lines
?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 +
?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ? ? ? | ?215 +++++++++-
?arch/arm/include/asm/arch-exynos/clock.h ? ? ?| ?326 ++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? ? ? ?| ? 53 ++-
?arch/arm/include/asm/arch-exynos/gpio.h ? ? ? | ? 32 ++
?board/samsung/smdk5250/Makefile ? ? ? ? ? ? ? | ? 64 +++
?board/samsung/smdk5250/lowlevel_init.S ? ? ? ?| ?528 ++++++++++++++++++++++
?board/samsung/smdk5250/mem_setup.S ? ? ? ? ? ?| ?600 +++++++++++++++++++++++++

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Regards,
Simon

Quoted 24 lines
?board/samsung/smdk5250/mmc_boot.c ? ? ? ? ? ? | ? 58 +++
?board/samsung/smdk5250/smdk5250.c ? ? ? ? ? ? | ?125 +++++
?board/samsung/smdk5250/smdk5250_setup.h ? ? ? | ?589 ++++++++++++++++++++++++
?board/samsung/smdk5250/tools/mkexynos_image.c | ?117 +++++
?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 +
?include/configs/s5pc210_universal.h ? ? ? ? ? | ? ?1 +
?include/configs/smdk5250.h ? ? ? ? ? ? ? ? ? ?| ?188 ++++++++

?15 files changed, 2878 insertions(+), 20 deletions(-) ?create mode 100644 board/samsung/smdk5250/Makefile ?create mode 100644 board/samsung/smdk5250/lowlevel_init.S ?create mode 100644 board/samsung/smdk5250/mem_setup.S ?create mode 100644 board/samsung/smdk5250/mmc_boot.c ?create mode 100644 board/samsung/smdk5250/smdk5250.c ?create mode 100644 board/samsung/smdk5250/smdk5250_setup.h ?create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c ?create mode 100644 include/configs/smdk5250.h

--
1.7.5.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#8 lore raw

v2 cover Add SMDK5250 board support

Dear Simon,

Quoted 32 lines · Simon Glass

Hi Chander,

Quoted 19 lines · Chander Kashyap

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
?Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
?ARM: EXYNOS: Add support for Exynos5 based SoCs
?EXYNOS: Add SMDK5250 board support
?EXYNOS: SMDK5250: Add MMC SPL support

Quoted 8 lines
?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 +
?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ? ? ? | ?215 +++++++++-
?arch/arm/include/asm/arch-exynos/clock.h ? ? ?| ?326 ++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? ? ? ?| ? 53 ++-
?arch/arm/include/asm/arch-exynos/gpio.h ? ? ? | ? 32 ++
?board/samsung/smdk5250/Makefile ? ? ? ? ? ? ? | ? 64 +++
?board/samsung/smdk5250/lowlevel_init.S ? ? ? ?| ?528 ++++++++++++++++++++++
?board/samsung/smdk5250/mem_setup.S ? ? ? ? ? ?| ?600 +++++++++++++++++++++++++
Quoted 2 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. Using C style it might not fit into that.

Quoted 28 lines

Regards,
Simon

Quoted 24 lines
?board/samsung/smdk5250/mmc_boot.c ? ? ? ? ? ? | ? 58 +++
?board/samsung/smdk5250/smdk5250.c ? ? ? ? ? ? | ?125 +++++
?board/samsung/smdk5250/smdk5250_setup.h ? ? ? | ?589 ++++++++++++++++++++++++
?board/samsung/smdk5250/tools/mkexynos_image.c | ?117 +++++
?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 +
?include/configs/s5pc210_universal.h ? ? ? ? ? | ? ?1 +
?include/configs/smdk5250.h ? ? ? ? ? ? ? ? ? ?| ?188 ++++++++

?15 files changed, 2878 insertions(+), 20 deletions(-) ?create mode 100644 board/samsung/smdk5250/Makefile ?create mode 100644 board/samsung/smdk5250/lowlevel_init.S ?create mode 100644 board/samsung/smdk5250/mem_setup.S ?create mode 100644 board/samsung/smdk5250/mmc_boot.c ?create mode 100644 board/samsung/smdk5250/smdk5250.c ?create mode 100644 board/samsung/smdk5250/smdk5250_setup.h ?create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c ?create mode 100644 include/configs/smdk5250.h

--
1.7.5.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Signature · 2 lines
with warm regards,
Chander Kashyap
#9 lore raw

v2 cover Add SMDK5250 board support

Quoted 37 lines · Chander Kashyap

Dear Simon,

Quoted 34 lines · Simon Glass

Hi Chander,

Quoted 29 lines · Chander Kashyap

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
ARM: EXYNOS: Add support for Exynos5 based SoCs
EXYNOS: Add SMDK5250 board support
EXYNOS: SMDK5250: Add MMC SPL support

 MAINTAINERS                                   |    1 +
 arch/arm/cpu/armv7/exynos/clock.c             |  215 +++++++++-
 arch/arm/include/asm/arch-exynos/clock.h      |  326 ++++++++++++++
 arch/arm/include/asm/arch-exynos/cpu.h        |   53 ++-
 arch/arm/include/asm/arch-exynos/gpio.h       |   32 ++
 board/samsung/smdk5250/Makefile               |   64 +++
 board/samsung/smdk5250/lowlevel_init.S        |  528
++++++++++++++++++++++
 board/samsung/smdk5250/mem_setup.S            |  600

+++++++++++++++++++++++++

Quoted 4 lines
Quoted 2 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. Using C style it might not fit into that.

In case of trats implemented by C. it's not big. and I think it can fit SPL size limitation.

Thank you,
Kyungmin Park

Quoted 41 lines
Quoted 29 lines

Regards,
Simon

Quoted 25 lines
 board/samsung/smdk5250/mmc_boot.c             |   58 +++
 board/samsung/smdk5250/smdk5250.c             |  125 +++++
 board/samsung/smdk5250/smdk5250_setup.h       |  589
++++++++++++++++++++++++
 board/samsung/smdk5250/tools/mkexynos_image.c |  117 +++++
 boards.cfg                                    |    1 +
 include/configs/s5pc210_universal.h           |    1 +
 include/configs/smdk5250.h                    |  188 ++++++++
 15 files changed, 2878 insertions(+), 20 deletions(-)
 create mode 100644 board/samsung/smdk5250/Makefile
 create mode 100644 board/samsung/smdk5250/lowlevel_init.S
 create mode 100644 board/samsung/smdk5250/mem_setup.S
 create mode 100644 board/samsung/smdk5250/mmc_boot.c
 create mode 100644 board/samsung/smdk5250/smdk5250.c
 create mode 100644 board/samsung/smdk5250/smdk5250_setup.h
 create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c
 create mode 100644 include/configs/smdk5250.h

--
1.7.5.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

--
with warm regards,
Chander Kashyap

_______________________________________________
linaro-dev mailing list
linaro-dev at lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

#10 lore raw

v2 cover Add SMDK5250 board support

Hi Kyungmin Park,

Quoted 38 lines · Kyungmin Park
Quoted 37 lines · Chander Kashyap

Dear Simon,

Quoted 34 lines · Simon Glass

Hi Chander,

Quoted 29 lines · Chander Kashyap

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
?Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
?ARM: EXYNOS: Add support for Exynos5 based SoCs
?EXYNOS: Add SMDK5250 board support
?EXYNOS: SMDK5250: Add MMC SPL support

?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 +
?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ? ? ? | ?215 +++++++++-
?arch/arm/include/asm/arch-exynos/clock.h ? ? ?| ?326 ++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? ? ? ?| ? 53 ++-
?arch/arm/include/asm/arch-exynos/gpio.h ? ? ? | ? 32 ++
?board/samsung/smdk5250/Makefile ? ? ? ? ? ? ? | ? 64 +++
?board/samsung/smdk5250/lowlevel_init.S ? ? ? ?| ?528

++++++++++++++++++++++
?board/samsung/smdk5250/mem_setup.S ? ? ? ? ? ?| ?600
+++++++++++++++++++++++++

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. ?Using C style it might not fit into that.

In case of trats implemented by C. it's not big. and I think it can fit SPL size limitation.

Yes true. I assumed wrongly.

Quoted 44 lines

Thank you,
Kyungmin Park

Quoted 41 lines
Quoted 29 lines

Regards,
Simon

Quoted 25 lines
?board/samsung/smdk5250/mmc_boot.c ? ? ? ? ? ? | ? 58 +++
?board/samsung/smdk5250/smdk5250.c ? ? ? ? ? ? | ?125 +++++
?board/samsung/smdk5250/smdk5250_setup.h ? ? ? | ?589
++++++++++++++++++++++++
?board/samsung/smdk5250/tools/mkexynos_image.c | ?117 +++++
?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 +
?include/configs/s5pc210_universal.h ? ? ? ? ? | ? ?1 +
?include/configs/smdk5250.h ? ? ? ? ? ? ? ? ? ?| ?188 ++++++++

?15 files changed, 2878 insertions(+), 20 deletions(-) ?create mode 100644 board/samsung/smdk5250/Makefile ?create mode 100644 board/samsung/smdk5250/lowlevel_init.S ?create mode 100644 board/samsung/smdk5250/mem_setup.S ?create mode 100644 board/samsung/smdk5250/mmc_boot.c ?create mode 100644 board/samsung/smdk5250/smdk5250.c ?create mode 100644 board/samsung/smdk5250/smdk5250_setup.h ?create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c ?create mode 100644 include/configs/smdk5250.h

--
1.7.5.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

--
with warm regards,
Chander Kashyap

_______________________________________________
linaro-dev mailing list
linaro-dev at lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Signature · 2 lines
with warm regards,
Chander Kashyap
#11 lore raw

v2 cover Add SMDK5250 board support

In reply to Chander Kashyap

Dear Chander Kashyap,

Quoted 4 lines · In message <CANuQgHEWBf3ssfoLN6AqAU=KgSTvEGTTAKUntvnimu0jnuaAEg@mail.gmail.com>…
Quoted 3 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. Using C style it might not fit into that.

What makes you think that C coude would be that much larger?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The human race is a race of cowards; and I am not  only  marching  in
that procession but carrying a banner.                   - Mark Twain
#12 lore raw

v2 cover Add SMDK5250 board support

Dear Wolfgang Denk,

Quoted 9 lines · Wolfgang Denk

Dear Chander Kashyap,

Quoted 4 lines · In message <CANuQgHEWBf3ssfoLN6AqAU=KgSTvEGTTAKUntvnimu0jnuaAEg@mail.gmail.com>…
Quoted 3 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. ?Using C style it might not fit into that.

What makes you think that C coude would be that much larger?

Made wrong assumption. It will fit into spl size restrictions.

Quoted 11 lines

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, ? ? MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The human race is a race of cowards; and I am not ?only ?marching ?in that procession but carrying a banner. ? ? ? ? ? ? ? ? ? - Mark Twain

Signature · 2 lines
with warm regards,
Chander Kashyap
#13 lore raw

v2 cover Add SMDK5250 board support

In reply to Chander Kashyap

Hi Chander Kashyap,

I'm going to share the status of size.

The case of assemble code:
text data bss dec hex filename

   1929      20      12    1961     7a9 board/samsung/trats/libtrats.o
    912       0       0     912     390 board/samsung/trats/lowlevel_init.o
   1017      20      12    1049     419 board/samsung/trats/trats.o

The case of C code:
text data bss dec hex filename

   1845      20       4    1869     74d board/samsung/trats/libtrats.o
   1845      20       4    1869     74d board/samsung/trats/trats.o

Although the pre-version patch has been optimized to current version, and so it might be the factor, but the size is decreased.

Thank you.

Regards,
Heungjun Kim

Quoted 9 lines

-----Original Message-----
From: linaro-dev-bounces at lists.linaro.org [mailto:linaro-dev- bounces at lists.linaro.org] On Behalf Of Chander Kashyap
Sent: Tuesday, January 10, 2012 12:58 PM
To: Simon Glass
Cc: linaro-dev at lists.linaro.org; bjlee at samsung.com; patches at linaro.org; mk7.kang at samsung.com; u-boot at lists.denx.de; samsung at lists.linaro.org
Subject: Re: [U-Boot] [PATCH v2 0/4] Add SMDK5250 board support

Quoted 33 lines

Dear Simon,

Quoted 30 lines · Simon Glass

Hi Chander,

Quoted 26 lines · Chander Kashyap

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
?Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
?ARM: EXYNOS: Add support for Exynos5 based SoCs
?EXYNOS: Add SMDK5250 board support
?EXYNOS: SMDK5250: Add MMC SPL support

?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 +
?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ? ? ? | ?215 +++++++++-
?arch/arm/include/asm/arch-exynos/clock.h ? ? ?| ?326 ++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? ? ? ?| ? 53 ++-
?arch/arm/include/asm/arch-exynos/gpio.h ? ? ? | ? 32 ++
?board/samsung/smdk5250/Makefile ? ? ? ? ? ? ? | ? 64 +++
?board/samsung/smdk5250/lowlevel_init.S ? ? ? ?| ?528

++++++++++++++++++++++

Quoted 46 lines
Quoted 1 line
Quoted 1 line

?board/samsung/smdk5250/mem_setup.S ? ? ? ? ? ?| ?600

+++++++++++++++++++++++++

Quoted 3 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. Using C style it might not fit into that.

Quoted 7 lines

Regards,
Simon

Quoted 3 lines
?board/samsung/smdk5250/mmc_boot.c ? ? ? ? ? ? | ? 58 +++
?board/samsung/smdk5250/smdk5250.c ? ? ? ? ? ? | ?125 +++++
?board/samsung/smdk5250/smdk5250_setup.h ? ? ? | ?589

++++++++++++++++++++++++

Quoted 14 lines
Quoted 14 lines
?board/samsung/smdk5250/tools/mkexynos_image.c | ?117 +++++
?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 +
?include/configs/s5pc210_universal.h ? ? ? ? ? | ? ?1 +
?include/configs/smdk5250.h ? ? ? ? ? ? ? ? ? ?| ?188 ++++++++

?15 files changed, 2878 insertions(+), 20 deletions(-) ?create mode 100644 board/samsung/smdk5250/Makefile ?create mode 100644 board/samsung/smdk5250/lowlevel_init.S ?create mode 100644 board/samsung/smdk5250/mem_setup.S ?create mode 100644 board/samsung/smdk5250/mmc_boot.c ?create mode 100644 board/samsung/smdk5250/smdk5250.c ?create mode 100644 board/samsung/smdk5250/smdk5250_setup.h ?create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c ?create mode 100644 include/configs/smdk5250.h

Quoted 7 lines
Quoted 7 lines

--
1.7.5.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

--
with warm regards,
Chander Kashyap

_______________________________________________
linaro-dev mailing list
linaro-dev at lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

#14 lore raw

v2 cover Add SMDK5250 board support

Hi HeungJun,

Quoted 10 lines · Kim

Hi Chander Kashyap,

I'm going to share the status of size.

The case of assemble code:
text ? ?data ? ? bss ? ? dec ? ? hex filename
? 1929 ? ? ?20 ? ? ?12 ? ?1961 ? ? 7a9 board/samsung/trats/libtrats.o ? ?912 ? ? ? 0 ? ? ? 0 ? ? 912 ? ? 390 board/samsung/trats/lowlevel_init.o ? 1017 ? ? ?20 ? ? ?12 ? ?1049 ? ? 419 board/samsung/trats/trats.o

Quoted 8 lines

The case of C code:
text ? ?data ? ? bss ? ? dec ? ? hex filename
? 1845 ? ? ?20 ? ? ? 4 ? ?1869 ? ? 74d board/samsung/trats/libtrats.o ? 1845 ? ? ?20 ? ? ? 4 ? ?1869 ? ? 74d board/samsung/trats/trats.o

Although the pre-version patch has been optimized to current version, and so it might be the factor, but the size is decreased.

Thanks for sharing the statistics.

Quoted 97 lines

Thank you.

Regards,
Heungjun Kim

Quoted 9 lines

-----Original Message-----
From: linaro-dev-bounces at lists.linaro.org [mailto:linaro-dev- bounces at lists.linaro.org] On Behalf Of Chander Kashyap
Sent: Tuesday, January 10, 2012 12:58 PM
To: Simon Glass
Cc: linaro-dev at lists.linaro.org; bjlee at samsung.com; patches at linaro.org; mk7.kang at samsung.com; u-boot at lists.denx.de; samsung at lists.linaro.org
Subject: Re: [U-Boot] [PATCH v2 0/4] Add SMDK5250 board support

Quoted 33 lines

Dear Simon,

Quoted 30 lines · Simon Glass

Hi Chander,

Quoted 26 lines · Chander Kashyap

This patchset add support for Samsung's SMDK5250 board based on EXYNOS5250 based SoC. It also adds support for MMC SPL booting.

The porting is done by Samsung engineers at HQ in System LSI Team. I am contributing in upstreaming the code for the board.

Based upon discussions following patches are dropped in this version:
Exynos: Add CONFIG_EXYNOS4 Macro to EXYNOS4 based boards
Exynos: Clock.c: Replace exynos4 prefix with exynos

SMDK5250: enable device tree support is squashed with
EXYNOS: Add SMDK5250 board support

Chander Kashyap (4):
?Exynos: Clock.c: Use CONFIG_SYS_CLK_FREQ macro
?ARM: EXYNOS: Add support for Exynos5 based SoCs
?EXYNOS: Add SMDK5250 board support
?EXYNOS: SMDK5250: Add MMC SPL support

?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 +
?arch/arm/cpu/armv7/exynos/clock.c ? ? ? ? ? ? | ?215 +++++++++-
?arch/arm/include/asm/arch-exynos/clock.h ? ? ?| ?326 ++++++++++++++
?arch/arm/include/asm/arch-exynos/cpu.h ? ? ? ?| ? 53 ++-
?arch/arm/include/asm/arch-exynos/gpio.h ? ? ? | ? 32 ++
?board/samsung/smdk5250/Makefile ? ? ? ? ? ? ? | ? 64 +++
?board/samsung/smdk5250/lowlevel_init.S ? ? ? ?| ?528

++++++++++++++++++++++

Quoted 46 lines
Quoted 1 line
Quoted 1 line

?board/samsung/smdk5250/mem_setup.S ? ? ? ? ? ?| ?600

+++++++++++++++++++++++++

Quoted 3 lines

Are you planning to reimplement most of these two files in C as per Wolfgang's comments on the TRATS board, or is that a separate issue?

Not as of now. We have 14K for spl. ?Using C style it might not fit into that.

Quoted 7 lines

Regards,
Simon

Quoted 3 lines
?board/samsung/smdk5250/mmc_boot.c ? ? ? ? ? ? | ? 58 +++
?board/samsung/smdk5250/smdk5250.c ? ? ? ? ? ? | ?125 +++++
?board/samsung/smdk5250/smdk5250_setup.h ? ? ? | ?589

++++++++++++++++++++++++

Quoted 14 lines
Quoted 14 lines
?board/samsung/smdk5250/tools/mkexynos_image.c | ?117 +++++
?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 +
?include/configs/s5pc210_universal.h ? ? ? ? ? | ? ?1 +
?include/configs/smdk5250.h ? ? ? ? ? ? ? ? ? ?| ?188 ++++++++

?15 files changed, 2878 insertions(+), 20 deletions(-) ?create mode 100644 board/samsung/smdk5250/Makefile ?create mode 100644 board/samsung/smdk5250/lowlevel_init.S ?create mode 100644 board/samsung/smdk5250/mem_setup.S ?create mode 100644 board/samsung/smdk5250/mmc_boot.c ?create mode 100644 board/samsung/smdk5250/smdk5250.c ?create mode 100644 board/samsung/smdk5250/smdk5250_setup.h ?create mode 100644 board/samsung/smdk5250/tools/mkexynos_image.c ?create mode 100644 include/configs/smdk5250.h

Quoted 7 lines
Quoted 7 lines

--
1.7.5.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

--
with warm regards,
Chander Kashyap

_______________________________________________
linaro-dev mailing list
linaro-dev at lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Signature · 2 lines
with warm regards,
Chander Kashyap