Add SMDK5250 board support
Subsystems (3)
v3 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 | 35 ++- arch/arm/include/asm/arch-exynos/gpio.h | 101 ++++- 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, 2931 insertions(+), 18 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
PATCH v3 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
Changes for v3:
- 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
@@ -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
@@ -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
PATCH v3 2/4 ARM: EXYNOS: Add support for Exynos5 based SoCs
In reply to Chander KashyapSamsung'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.
Changes for v333:
- Populated complete exynos5 gpio structures
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 | 35 +++- arch/arm/include/asm/arch-exynos/gpio.h | 101 +++++++++- 4 files changed, 658 insertions(+), 13 deletions(-)
arch/arm/cpu/armv7/exynos/clock.c +204 -5
@@ -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 +34 -1
@@ -22,6 +22,8 @@#ifndef _EXYNOS4_CPU_H#define _EXYNOS4_CPU_H +#define DEVICE_NOT_AVAILABLE 0 +#define EXYNOS4_ADDR_BASE 0x10000000/* EXYNOS4 */
@@ -46,7 +48,34 @@#define EXYNOS4_ADC_BASE 0x13910000#define EXYNOS4_PWMTIMER_BASE 0x139D0000#define EXYNOS4_MODEM_BASE 0x13A00000 -#define EXYNOS4_USBPHY_CONTROL 0x10020704 +#define EXYNOS4_USBPHY_CONTROL 0x10020704 + +#define EXYNOS4_GPIO_PART4_BASE DEVICE_NOT_AVAILABLE + +/* EXYNOS5 */ +#define EXYNOS5_GPIO_PART4_BASE 0x03860000 +#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_PHY0_CTRL_BASE 0x10C00000 +#define EXYNOS5_PHY1_CTRL_BASE 0x10C10000 +#define EXYNOS5_GPIO_PART3_BASE 0x10D10000 +#define EXYNOS5_DMC_CTRL_BASE 0x10DD0000 +#define EXYNOS5_GPIO_PART1_BASE 0x11400000 +#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_GPIO_PART2_BASE 0x13400000 +#define EXYNOS5_FIMD_BASE 0x14400000 + +#define EXYNOS5_ADC_BASE DEVICE_NOT_AVAILABLE +#define EXYNOS5_MODEM_BASE DEVICE_NOT_AVAILABLE#ifndef __ASSEMBLY__#include <asm/io.h>
@@ -83,12 +112,15 @@ static inline int cpu_is_##type(void) \ } IS_SAMSUNG_TYPE(exynos4, 0xc210) +IS_SAMSUNG_TYPE(exynos5, 0xc520)#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; \ }
@@ -99,6 +131,7 @@ SAMSUNG_BASE(fimd, FIMD_BASE) SAMSUNG_BASE(gpio_part1, GPIO_PART1_BASE) SAMSUNG_BASE(gpio_part2, GPIO_PART2_BASE) SAMSUNG_BASE(gpio_part3, GPIO_PART3_BASE) +SAMSUNG_BASE(gpio_part4, GPIO_PART4_BASE) SAMSUNG_BASE(pro_id, PRO_ID) SAMSUNG_BASE(mmc, MMC_BASE)SAMSUNG_BASE (modem,MODEM_BASE )
arch/arm/include/asm/arch-exynos/gpio.h +94 -7
123 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH v3 2/4 ARM: EXYNOS: Add support for Exynos5 based SoCs
Dear Chander Kashyap,
Quoted 39 lines · Chander Kashyap
Samsung's ARM Cortex-A15 based SoCs are known as Exynos5 series of SoCs. This patch adds the support for Exynos5.
Signed-off-by Chander Kashyap <[email protected]>---
Changes for v2:
? ? ? ?- This patch was part of "EXYNOS: Add SMDK5250 board support" ? ? ? ?- Now it is seprated as SoC support.
Changes for v333:
? ? ? ?- Populated complete exynos5 gpio structures?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 ? | ? 35 +++- ?arch/arm/include/asm/arch-exynos/gpio.h ?| ?101 +++++++++-?4 files changed, 658 insertions(+), 13 deletions(-)
arch/arm/include/asm/arch-exynos/cpu.h +0
-0@@ -22,6 +22,8 @@?#ifndef
_EXYNOS4_CPU_H
?#define_EXYNOS4_CPU_Harch/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,34 @@?#define
EXYNOS4_ADC_BASE? ? ? ? ? ? ?0x13910000?#defineEXYNOS4_PWMTIMER_BASE? ? ? ? ?0x139D0000 ?#defineEXYNOS4_MODEM_BASE? ? ? ? ? ?0x13A00000arch/arm/include/asm/arch-exynos/cpu.h +4
-1-#define EXYNOS4_USBPHY_CONTROL ? ? ? ? ?0x10020704 +#define EXYNOS4_USBPHY_CONTROL ? ? ? ? 0x10020704 + +#define EXYNOS4_GPIO_PART4_BASE ? ? ? ? ? ? ? ?DEVICE_NOT_AVAILABLE +
arch/arm/include/asm/arch-exynos/cpu.h
Quoted 10 lines
arch/arm/include/asm/arch-exynos/cpu.h +10
-0+/* EXYNOS5 */ +#define EXYNOS5_GPIO_PART4_BASE ? ? ? ? ? ? ? ?0x03860000 +#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_PHY0_CTRL_BASE ? ? ? ? 0x10C00000 +#define EXYNOS5_PHY1_CTRL_BASE ? ? ? ? 0x10C10000
Please make the name clearly.EXYNOS5_DMC_PHY0_BASE is better.
Quoted 60 lines
arch/arm/include/asm/arch-exynos/cpu.h +14
-0+#define EXYNOS5_GPIO_PART3_BASE ? ? ? ? ? ? ? ?0x10D10000 +#define EXYNOS5_DMC_CTRL_BASE ? ? ? ? ?0x10DD0000 +#define EXYNOS5_GPIO_PART1_BASE ? ? ? ? ? ? ? ?0x11400000 +#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_GPIO_PART2_BASE ? ? ? ? ? ? ? ?0x13400000 +#define EXYNOS5_FIMD_BASE ? ? ? ? ? ? ?0x14400000 + +#define EXYNOS5_ADC_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 +4
-0@@ -83,12 +112,15 @@ static inline int cpu_is_##type(void) ? ? ? ? ? ? ? ? ? ? ?\ ?} ?IS_SAMSUNG_TYPE(exynos4, 0xc210) +IS_SAMSUNG_TYPE(exynos5, 0xc520) ?#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; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ ?}@@ -99,6 +131,7 @@ SAMSUNG_BASE(fimd, FIMD_BASE) ?SAMSUNG_BASE(gpio_part1, GPIO_PART1_BASE) ?SAMSUNG_BASE(gpio_part2, GPIO_PART2_BASE) ?SAMSUNG_BASE(gpio_part3, GPIO_PART3_BASE) +SAMSUNG_BASE(gpio_part4, GPIO_PART4_BASE) ?SAMSUNG_BASE(pro_id, PRO_ID) ?SAMSUNG_BASE(mmc, MMC_BASE) ?SAMSUNG_BASE(modem, MODEM_BASE)arch/arm/include/asm/arch-exynos/gpio.h +0
-0?static inline unsigned int
s5p_gpio_base(int nr)?{
- ? ? ? if (nr <GPIO_PART1_MAX)
- ? ? ? ? ? ? ? returnEXYNOS4_GPIO_PART1_BASE;
+ ? ? ? if (cpu_is_exynos5()) {
+ ? ? ? ? ? ? ? if (nr <EXYNOS5_GPIO_PART1_MAX)
+ ? ? ? ? ? ? ? ? ? ? ? returnEXYNOS5_GPIO_PART1_BASE;
+ ? ? ? ? ? ? ? else if (nr <EXYNOS5_GPIO_PART2_MAX)
+ ? ? ? ? ? ? ? ? ? ? ? returnEXYNOS5_GPIO_PART2_BASE;
+ ? ? ? ? ? ? ? else
+ ? ? ? ? ? ? ? ? ? ? ? returnEXYNOS5_GPIO_PART3_BASE; +
+ ? ? ? } else if (cpu_is_exynos4()) {
+ ? ? ? ? ? ? ? if (nr <EXYNOS4_GPIO_PART1_MAX)
+ ? ? ? ? ? ? ? ? ? ? ? returnEXYNOS4_GPIO_PART1_BASE;
Quoted 8 lines
+ ? ? ? ? ? ? ? else
+ ? ? ? ? ? ? ? ? ? ? ? returnEXYNOS4_GPIO_PART2_BASE;
+ ? ? ? }
? ? ? ?else
- ? ? ? ? ? ? ? returnEXYNOS4_GPIO_PART2_BASE; -
- ? ? ? return 0;
+ ? ? ? ? ? ? ? return 0;
Please remove "else", and do return.
Thanks,
Minkyu Kang.
Signature · 2 lines
from. prom. www.promsoft.net
PATCH v3 3/4 EXYNOS: Add SMDK5250 board support
In reply to Chander KashyapSMDK5250 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.
Changes for v3:
- None
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
@@ -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
@@ -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
PATCH v3 3/4 EXYNOS: Add SMDK5250 board support
Dear Chander Kashyap,
Quoted 11 lines · Chander Kashyap
SMDK5250 board is based on Samsungs EXYNOS5250 SoC.
Signed-off-by Chander Kashyap <[email protected]>---
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. Changes for v3:
? ? ? ?- None
Quoted 4 lines
?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 + ?board/samsung/smdk5250/Makefile ? ? ? ? | ? 48 +++ ?board/samsung/smdk5250/lowlevel_init.S ?| ?528 +++++++++++++++++++++++++++ ?board/samsung/smdk5250/mem_setup.S ? ? ?| ?600 +++++++++++++++++++++++++++++++
Simon and Wolfgang have been commented to make these files to C. So, What is your plan?
Quoted 11 lines
?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 100644board/samsung/smdk5250/mem_setup.S?create mode 100644board/samsung/smdk5250/smdk5250.c?create mode 100644board/samsung/smdk5250/smdk5250_setup.h?create mode 100644include/configs/smdk5250.h
Thanks,
Minkyu Kang.
Signature · 2 lines
from. prom. www.promsoft.net
PATCH v3 3/4 EXYNOS: Add SMDK5250 board support
Dear Minkyu kang,
Quoted 14 lines · Minkyu Kang
Dear Chander Kashyap,
Quoted 11 lines · Chander Kashyap
SMDK5250 board is based on Samsungs EXYNOS5250 SoC.
Signed-off-by Chander Kashyap <[email protected]>---
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. Changes for v3:
? ? ? ?- None
Quoted 7 lines
Quoted 4 lines
?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 + ?board/samsung/smdk5250/Makefile ? ? ? ? | ? 48 +++ ?board/samsung/smdk5250/lowlevel_init.S ?| ?528 +++++++++++++++++++++++++++ ?board/samsung/smdk5250/mem_setup.S ? ? ?| ?600 +++++++++++++++++++++++++++++++Simon and Wolfgang have been commented to make these files to C. So, What is your plan?
I am working on it. If possible please merge these patches. As soon as I am finished with converting in to c files I will submit the patches to replace assembly with c files.
Quoted 18 lines
Quoted 5 lines
?board/samsung/smdk5250/smdk5250.c ? ? ? | ?125 +++++++ ?board/samsung/smdk5250/smdk5250_setup.h | ?589 ++++++++++++++++++++++++++++++ ?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 + ?include/configs/smdk5250.h ? ? ? ? ? ? ?| ?185 ++++++++++Quoted 7 lines
?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 100644board/samsung/smdk5250/mem_setup.S?create mode 100644board/samsung/smdk5250/smdk5250.c?create mode 100644board/samsung/smdk5250/smdk5250_setup.h?create mode 100644include/configs/smdk5250.hThanks,
Minkyu Kang.
--
from. prom.
www.promsoft.net
Signature · 2 lines
with warm regards, Chander Kashyap
PATCH v3 3/4 EXYNOS: Add SMDK5250 board support
Dear Chander Kashyap,
Quoted 6 lines · In message <CANuQgHF96iPBA=RjL0CNDR5PYkjzz6DE6mk4A6CHySNJf7NSRg@mail.gmail.com>…
Quoted 3 lines
Simon and Wolfgang have been commented to make these files to C. So, What is your plan?
I am working on it. If possible please merge these patches. As soon as I am finished with converting in to c files I will submit the patches to replace assembly with c files.
No, this is not how it works.
We will wait for your submission with C files.
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 An Ada exception is when a routine gets in trouble and says 'Beam me up, Scotty'.
PATCH v3 4/4 EXYNOS: SMDK5250: Add MMC SPL support
In reply to Chander KashyapThis patch adds support for mmc spl booting.
---
Changes for v2:
- None
Changes for v3:
- 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
@@ -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
@@ -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