Skip to contentSkip to conversation

armv7: add support for S5PC210 SoC

PATCH Superseded Minkyu Kang 3 participants 9 messages Jan 10, 2011 – Jan 27, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 armv7: add support for S5PC210 SoC

S5PC210 is a 32-bit RSIC and Coretex-A9 Dual Core based micro-processor.

---
 arch/arm/cpu/armv7/s5pc2xx/Makefile           |   42 ++++
 arch/arm/cpu/armv7/s5pc2xx/clock.c            |  220 +++++++++++++++++++++
 arch/arm/cpu/armv7/s5pc2xx/soc.c              |   30 +++
 arch/arm/include/asm/arch-s5pc2xx/adc.h       |   42 ++++
 arch/arm/include/asm/arch-s5pc2xx/clk.h       |   36 ++++
 arch/arm/include/asm/arch-s5pc2xx/clock.h     |  255 +++++++++++++++++++++++++
 arch/arm/include/asm/arch-s5pc2xx/cpu.h       |   96 +++++++++
 arch/arm/include/asm/arch-s5pc2xx/gpio.h      |  112 +++++++++++
 arch/arm/include/asm/arch-s5pc2xx/mmc.h       |   71 +++++++
 arch/arm/include/asm/arch-s5pc2xx/pwm.h       |   55 ++++++
 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h |   32 +++
 arch/arm/include/asm/arch-s5pc2xx/uart.h      |   55 ++++++
 12 files changed, 1046 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h
arch/arm/cpu/armv7/s5pc2xx/Makefile new file +42 -0
new file mode 100644
index 0000000..124c380
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2009 Samsung Electronics
+# Minkyu Kang <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(SOC).o
+
+COBJS	+= clock.o soc.o
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
+
+all:	 $(obj).depend $(LIB)
+
+$(LIB):	$(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
arch/arm/cpu/armv7/s5pc2xx/clock.c new file +220 -0

220 lines not on this page · raw message

arch/arm/cpu/armv7/s5pc2xx/soc.c new file +30 -0
new file mode 100644
index 0000000..dcfcec2
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics.
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/io.h>
+
+void reset_cpu(ulong addr)
+{
+	writel(0x1, samsung_get_base_swreset());
+}
arch/arm/include/asm/arch-s5pc2xx/adc.h new file +42 -0

42 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/clk.h new file +36 -0
new file mode 100644
index 0000000..5a1cdf1
@@ -0,0 +1,36 @@
+/*
+ * (C) Copyright 2010 Samsung Electronics
+ * Minkyu Kang <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef __ASM_ARM_ARCH_CLK_H_
+#define __ASM_ARM_ARCH_CLK_H_
+
+#define APLL	0
+#define MPLL	1
+#define EPLL	2
+#define HPLL	3
+#define VPLL	4
+
+unsigned long get_pll_clk(int pllreg);
+unsigned long get_arm_clk(void);
+unsigned long get_pwm_clk(void);
+unsigned long get_uart_clk(int dev_index);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/clock.h new file +255 -0

255 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +96 -0

96 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/gpio.h new file +112 -0

112 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/mmc.h new file +71 -0

71 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/pwm.h new file +55 -0

55 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/sys_proto.h new file +32 -0
new file mode 100644
index 0000000..11f1636
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2010 Samsung Electrnoics
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _SYS_PROTO_H_
+#define _SYS_PROTO_H_
+
+u32 get_device_type(void);
+void invalidate_dcache(u32);
+void l2_cache_disable(void);
+void l2_cache_enable(void);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/uart.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/2 armv7: add support for S5PC210 SoC

Quoted 2 lines · Minkyu Kang

S5PC210 is a 32-bit RSIC and Coretex-A9 Dual Core based micro-processor.

RSIC and Coretex are typo.
I'm going to fix it.

Quoted 29 lines

---

?arch/arm/cpu/armv7/s5pc2xx/Makefile ? ? ? ? ? | ? 42 ++++
?arch/arm/cpu/armv7/s5pc2xx/clock.c ? ? ? ? ? ?| ?220 +++++++++++++++++++++
?arch/arm/cpu/armv7/s5pc2xx/soc.c ? ? ? ? ? ? ?| ? 30 +++
?arch/arm/include/asm/arch-s5pc2xx/adc.h ? ? ? | ? 42 ++++
?arch/arm/include/asm/arch-s5pc2xx/clk.h ? ? ? | ? 36 ++++
?arch/arm/include/asm/arch-s5pc2xx/clock.h ? ? | ?255 +++++++++++++++++++++++++
?arch/arm/include/asm/arch-s5pc2xx/cpu.h ? ? ? | ? 96 +++++++++
?arch/arm/include/asm/arch-s5pc2xx/gpio.h ? ? ?| ?112 +++++++++++
?arch/arm/include/asm/arch-s5pc2xx/mmc.h ? ? ? | ? 71 +++++++
?arch/arm/include/asm/arch-s5pc2xx/pwm.h ? ? ? | ? 55 ++++++
?arch/arm/include/asm/arch-s5pc2xx/sys_proto.h | ? 32 +++
?arch/arm/include/asm/arch-s5pc2xx/uart.h ? ? ?| ? 55 ++++++

?12 files changed, 1046 insertions(+), 0 deletions(-) ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h

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

PATCH v2 1/2 armv7: add support for S5PC210 SoC

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

---
v2
fixtypo: RSIC -> RISC, Coretex -> Cortex

 arch/arm/cpu/armv7/s5pc2xx/Makefile           |   42 ++++
 arch/arm/cpu/armv7/s5pc2xx/clock.c            |  220 +++++++++++++++++++++
 arch/arm/cpu/armv7/s5pc2xx/soc.c              |   30 +++
 arch/arm/include/asm/arch-s5pc2xx/adc.h       |   42 ++++
 arch/arm/include/asm/arch-s5pc2xx/clk.h       |   36 ++++
 arch/arm/include/asm/arch-s5pc2xx/clock.h     |  255 +++++++++++++++++++++++++
 arch/arm/include/asm/arch-s5pc2xx/cpu.h       |   96 +++++++++
 arch/arm/include/asm/arch-s5pc2xx/gpio.h      |  112 +++++++++++
 arch/arm/include/asm/arch-s5pc2xx/mmc.h       |   71 +++++++
 arch/arm/include/asm/arch-s5pc2xx/pwm.h       |   55 ++++++
 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h |   32 +++
 arch/arm/include/asm/arch-s5pc2xx/uart.h      |   55 ++++++
 12 files changed, 1046 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h
arch/arm/cpu/armv7/s5pc2xx/Makefile new file +42 -0
new file mode 100644
index 0000000..124c380
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2009 Samsung Electronics
+# Minkyu Kang <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(SOC).o
+
+COBJS	+= clock.o soc.o
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
+
+all:	 $(obj).depend $(LIB)
+
+$(LIB):	$(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
arch/arm/cpu/armv7/s5pc2xx/clock.c new file +220 -0

220 lines not on this page · raw message

arch/arm/cpu/armv7/s5pc2xx/soc.c new file +30 -0
new file mode 100644
index 0000000..dcfcec2
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics.
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/io.h>
+
+void reset_cpu(ulong addr)
+{
+	writel(0x1, samsung_get_base_swreset());
+}
arch/arm/include/asm/arch-s5pc2xx/adc.h new file +42 -0

42 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/clk.h new file +36 -0
new file mode 100644
index 0000000..5a1cdf1
@@ -0,0 +1,36 @@
+/*
+ * (C) Copyright 2010 Samsung Electronics
+ * Minkyu Kang <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef __ASM_ARM_ARCH_CLK_H_
+#define __ASM_ARM_ARCH_CLK_H_
+
+#define APLL	0
+#define MPLL	1
+#define EPLL	2
+#define HPLL	3
+#define VPLL	4
+
+unsigned long get_pll_clk(int pllreg);
+unsigned long get_arm_clk(void);
+unsigned long get_pwm_clk(void);
+unsigned long get_uart_clk(int dev_index);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/clock.h new file +255 -0

255 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +96 -0

96 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/gpio.h new file +112 -0

112 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/mmc.h new file +71 -0

71 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/pwm.h new file +55 -0

55 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/sys_proto.h new file +32 -0
new file mode 100644
index 0000000..11f1636
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2010 Samsung Electrnoics
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _SYS_PROTO_H_
+#define _SYS_PROTO_H_
+
+u32 get_device_type(void);
+void invalidate_dcache(u32);
+void l2_cache_disable(void);
+void l2_cache_enable(void);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/uart.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.7.1
#3 lore raw

PATCH v2 1/2 armv7: add support for S5PC210 SoC

Quoted 89 lines · Minkyu Kang

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

---
v2
?fixtypo: RSIC -> RISC, Coretex -> Cortex

?arch/arm/cpu/armv7/s5pc2xx/Makefile ? ? ? ? ? | ? 42 ++++
?arch/arm/cpu/armv7/s5pc2xx/clock.c ? ? ? ? ? ?| ?220 +++++++++++++++++++++
?arch/arm/cpu/armv7/s5pc2xx/soc.c ? ? ? ? ? ? ?| ? 30 +++
?arch/arm/include/asm/arch-s5pc2xx/adc.h ? ? ? | ? 42 ++++
?arch/arm/include/asm/arch-s5pc2xx/clk.h ? ? ? | ? 36 ++++
?arch/arm/include/asm/arch-s5pc2xx/clock.h ? ? | ?255 +++++++++++++++++++++++++
?arch/arm/include/asm/arch-s5pc2xx/cpu.h ? ? ? | ? 96 +++++++++
?arch/arm/include/asm/arch-s5pc2xx/gpio.h ? ? ?| ?112 +++++++++++
?arch/arm/include/asm/arch-s5pc2xx/mmc.h ? ? ? | ? 71 +++++++
?arch/arm/include/asm/arch-s5pc2xx/pwm.h ? ? ? | ? 55 ++++++
?arch/arm/include/asm/arch-s5pc2xx/sys_proto.h | ? 32 +++
?arch/arm/include/asm/arch-s5pc2xx/uart.h ? ? ?| ? 55 ++++++

?12 files changed, 1046 insertions(+), 0 deletions(-) ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h

arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +48 -0
new file mode 100644
index 0000000..a5db68c
@@ -0,0 +1,96 @@
+/*
+ * (C) Copyright 2010 Samsung Electronics
+ * Minkyu Kang <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef _S5PC2XX_CPU_H
+#define _S5PC2XX_CPU_H
+
+#define S5PC2XX_ADDR_BASE ? ? ?0x10000000
+
+/* S5PC210 */
+#define S5PC210_GPIO_PART3_BASE ? ? ? ?0x03860000
+#define S5PC210_PRO_ID ? ? ? ? 0x10000000
+#define S5PC210_POWER_BASE ? ? 0x10020000
+#define S5PC210_SWRESET ? ? ? ? ? ? ? ?0x10020400
+#define S5PC210_CLOCK_BASE ? ? 0x10030000
+#define S5PC210_SYSTIMER_BASE ?0x10050000
+#define S5PC210_WATCHDOG_BASE ?0x10060000
+#define S5PC210_MIU_BASE ? ? ? 0x10600000
+#define S5PC210_DMC0_BASE ? ? ?0x10400000
+#define S5PC210_DMC1_BASE ? ? ?0x10410000
+#define S5PC210_GPIO_PART2_BASE ? ? ? ?0x11000000
+#define S5PC210_GPIO_PART1_BASE ? ? ? ?0x11400000
+#define S5PC210_FIMD_BASE ? ? ?0x11C00000
+#define S5PC210_USBOTG_BASE ? ?0x12480000
+#define S5PC210_MMC_BASE ? ? ? 0x12510000
+#define S5PC210_SROMC_BASE ? ? 0x12570000
+#define S5PC210_USBPHY_BASE ? ?0x125B0000
+#define S5PC210_UART_BASE ? ? ?0x13800000
+#define S5PC210_ADC_BASE ? ? ? 0x13910000
+#define S5PC210_PWMTIMER_BASE ?0x139D0000
+#define S5PC210_MODEM_BASE ? ? 0x13A00000

arch/arm/include/asm/arch-s5pc2xx/cpu.h line 58

Quoted 10 lines
arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +10 -0
+
+#ifndef __ASSEMBLY__
+#include <asm/io.h>
+/* CPU detection macros */
+extern unsigned int s5p_cpu_id;
+
+static inline void s5p_set_cpu_id(void)
+{
+ ? ? ? s5p_cpu_id = readl(S5PC210_PRO_ID);
+ ? ? ? s5p_cpu_id = (0xC000 | ((s5p_cpu_id & 0x00FFF000) >> 12)) + 0x10;

Need to update for s5pc210 EVT1.
I will update it at next patch.

Quoted 28 lines
arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +28 -0
+}
+
+#define IS_SAMSUNG_TYPE(type, id) ? ? ? ? ? ? ? ? ? ? ?\
+static inline int cpu_is_##type(void) ? ? ? ? ? ? ? ? ?\
+{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? return s5p_cpu_id == id ? 1 : 0; ? ? ? ? ? ? ? ?\
+}
+
+IS_SAMSUNG_TYPE(s5pc210, 0xc210)
+
+#define SAMSUNG_BASE(device, base) ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+static inline unsigned int samsung_get_base_##device(void) ? ? \
+{ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? if (cpu_is_s5pc210()) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+ ? ? ? ? ? ? ? return S5PC210_##base; ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? else ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\
+ ? ? ? ? ? ? ? return 0; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
+}
+
+SAMSUNG_BASE(adc, ADC_BASE)
+SAMSUNG_BASE(clock, CLOCK_BASE)
+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(pro_id, PRO_ID)
+SAMSUNG_BASE(mmc, MMC_BASE)
+SAMSUNG_BASE(modem, MODEM_BASE)

arch/arm/include/asm/arch-s5pc2xx/cpu.h line 96

Quoted 10 lines
arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +10 -0
+SAMSUNG_BASE(sromc, SROMC_BASE)
+SAMSUNG_BASE(swreset, SWRESET)
+SAMSUNG_BASE(timer, PWMTIMER_BASE)
+SAMSUNG_BASE(uart, UART_BASE)
+SAMSUNG_BASE(usb_phy, USBPHY_BASE)
+SAMSUNG_BASE(usb_otg, USBOTG_BASE)
+SAMSUNG_BASE(watchdog, WATCHDOG_BASE)
+#endif
+
+#endif /* _S5PC2XX_CPU_H */

Minkyu Kang

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

PATCH v3 1/2 armv7: add support for S5PC210 SoC

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

---
v3
support s5pc210 EVT1 cpu_id
v2
fix typo: RSIC -> RISC, Coretex -> Cortex

 arch/arm/cpu/armv7/s5pc2xx/Makefile           |   42 ++++
 arch/arm/cpu/armv7/s5pc2xx/clock.c            |  220 +++++++++++++++++++++
 arch/arm/cpu/armv7/s5pc2xx/soc.c              |   30 +++
 arch/arm/include/asm/arch-s5pc2xx/adc.h       |   42 ++++
 arch/arm/include/asm/arch-s5pc2xx/clk.h       |   36 ++++
 arch/arm/include/asm/arch-s5pc2xx/clock.h     |  255 +++++++++++++++++++++++++
 arch/arm/include/asm/arch-s5pc2xx/cpu.h       |  103 ++++++++++
 arch/arm/include/asm/arch-s5pc2xx/gpio.h      |  112 +++++++++++
 arch/arm/include/asm/arch-s5pc2xx/mmc.h       |   71 +++++++
 arch/arm/include/asm/arch-s5pc2xx/pwm.h       |   55 ++++++
 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h |   32 +++
 arch/arm/include/asm/arch-s5pc2xx/uart.h      |   55 ++++++
 12 files changed, 1053 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h
arch/arm/cpu/armv7/s5pc2xx/Makefile new file +42 -0
new file mode 100644
index 0000000..124c380
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2009 Samsung Electronics
+# Minkyu Kang <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(SOC).o
+
+COBJS	+= clock.o soc.o
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
+
+all:	 $(obj).depend $(LIB)
+
+$(LIB):	$(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
arch/arm/cpu/armv7/s5pc2xx/clock.c new file +220 -0

220 lines not on this page · raw message

arch/arm/cpu/armv7/s5pc2xx/soc.c new file +30 -0
new file mode 100644
index 0000000..dcfcec2
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics.
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/io.h>
+
+void reset_cpu(ulong addr)
+{
+	writel(0x1, samsung_get_base_swreset());
+}
arch/arm/include/asm/arch-s5pc2xx/adc.h new file +42 -0

42 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/clk.h new file +36 -0
new file mode 100644
index 0000000..5a1cdf1
@@ -0,0 +1,36 @@
+/*
+ * (C) Copyright 2010 Samsung Electronics
+ * Minkyu Kang <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef __ASM_ARM_ARCH_CLK_H_
+#define __ASM_ARM_ARCH_CLK_H_
+
+#define APLL	0
+#define MPLL	1
+#define EPLL	2
+#define HPLL	3
+#define VPLL	4
+
+unsigned long get_pll_clk(int pllreg);
+unsigned long get_arm_clk(void);
+unsigned long get_pwm_clk(void);
+unsigned long get_uart_clk(int dev_index);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/clock.h new file +255 -0

255 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +103 -0

103 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/gpio.h new file +112 -0

112 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/mmc.h new file +71 -0

71 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/pwm.h new file +55 -0

55 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/sys_proto.h new file +32 -0
new file mode 100644
index 0000000..11f1636
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2010 Samsung Electrnoics
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _SYS_PROTO_H_
+#define _SYS_PROTO_H_
+
+u32 get_device_type(void);
+void invalidate_dcache(u32);
+void l2_cache_disable(void);
+void l2_cache_enable(void);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/uart.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.7.1
#5 lore raw

PATCH v3 1/2 armv7: add support for S5PC210 SoC

Dear Minkyu Kang,

Quoted 1 line · In message <[email protected]> you wrote:

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

...

Quoted 4 lines

new file mode 100644
index 0000000..69011fc

arch/arm/include/asm/arch-s5pc2xx/uart.h new file +0 -0

...

Quoted 1 line

+static int use_divslot = 0;

This is certainly wrong in a header file.

Also, please do not initialise statics to 0 or NULL.

Best regards,

Wolfgang Denk

Signature · 7 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 evolution of the human race will not be accomplished in  the  ten
thousand  years  of  tame  animals,  but in the million years of wild
animals, because man is and will always be a wild animal.
                                              - Charles Galton Darwin
#6 lore raw

PATCH v3 1/2 armv7: add support for S5PC210 SoC

Dear Wolfgang Denk,

Quoted 10 lines · Wolfgang Denk

Dear Minkyu Kang,

Quoted 1 line · In message <[email protected]> you wrote:

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

...

Quoted 4 lines

new file mode 100644
index 0000000..69011fc

arch/arm/include/asm/arch-s5pc2xx/uart.h new file +0 -0

...

Quoted 6 lines
Quoted 1 line

+static int use_divslot = 0;

This is certainly wrong in a header file.

Also, please do not initialise statics to 0 or NULL.

Hm, how about inline function or macro?

Thanks
Minkyu Kang

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

PATCH v4 2/3 armv7: add support for S5PC210 SoC

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

---
v4
use inline function instead of static value
v3
support EVT1 cpu_id
v2
fix typo: RSIC -> RISC, Coretex -> Cortex

 arch/arm/cpu/armv7/s5pc2xx/Makefile           |   42 ++++
 arch/arm/cpu/armv7/s5pc2xx/clock.c            |  220 +++++++++++++++++++++
 arch/arm/cpu/armv7/s5pc2xx/soc.c              |   30 +++
 arch/arm/include/asm/arch-s5pc2xx/adc.h       |   42 ++++
 arch/arm/include/asm/arch-s5pc2xx/clk.h       |   36 ++++
 arch/arm/include/asm/arch-s5pc2xx/clock.h     |  255 +++++++++++++++++++++++++
 arch/arm/include/asm/arch-s5pc2xx/cpu.h       |  103 ++++++++++
 arch/arm/include/asm/arch-s5pc2xx/gpio.h      |  112 +++++++++++
 arch/arm/include/asm/arch-s5pc2xx/mmc.h       |   71 +++++++
 arch/arm/include/asm/arch-s5pc2xx/pwm.h       |   55 ++++++
 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h |   32 +++
 arch/arm/include/asm/arch-s5pc2xx/uart.h      |   58 ++++++
 12 files changed, 1056 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c
 create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h
 create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h
arch/arm/cpu/armv7/s5pc2xx/Makefile new file +42 -0
new file mode 100644
index 0000000..124c380
@@ -0,0 +1,42 @@
+#
+# Copyright (C) 2009 Samsung Electronics
+# Minkyu Kang <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(SOC).o
+
+COBJS	+= clock.o soc.o
+
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
+
+all:	 $(obj).depend $(LIB)
+
+$(LIB):	$(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
arch/arm/cpu/armv7/s5pc2xx/clock.c new file +220 -0

220 lines not on this page · raw message

arch/arm/cpu/armv7/s5pc2xx/soc.c new file +30 -0
new file mode 100644
index 0000000..dcfcec2
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics.
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/io.h>
+
+void reset_cpu(ulong addr)
+{
+	writel(0x1, samsung_get_base_swreset());
+}
arch/arm/include/asm/arch-s5pc2xx/adc.h new file +42 -0

42 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/clk.h new file +36 -0
new file mode 100644
index 0000000..5a1cdf1
@@ -0,0 +1,36 @@
+/*
+ * (C) Copyright 2010 Samsung Electronics
+ * Minkyu Kang <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef __ASM_ARM_ARCH_CLK_H_
+#define __ASM_ARM_ARCH_CLK_H_
+
+#define APLL	0
+#define MPLL	1
+#define EPLL	2
+#define HPLL	3
+#define VPLL	4
+
+unsigned long get_pll_clk(int pllreg);
+unsigned long get_arm_clk(void);
+unsigned long get_pwm_clk(void);
+unsigned long get_uart_clk(int dev_index);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/clock.h new file +255 -0

255 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/cpu.h new file +103 -0

103 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/gpio.h new file +112 -0

112 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/mmc.h new file +71 -0

71 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/pwm.h new file +55 -0

55 lines not on this page · raw message

arch/arm/include/asm/arch-s5pc2xx/sys_proto.h new file +32 -0
new file mode 100644
index 0000000..11f1636
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2010 Samsung Electrnoics
+ * Minkyu Kang <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _SYS_PROTO_H_
+#define _SYS_PROTO_H_
+
+u32 get_device_type(void);
+void invalidate_dcache(u32);
+void l2_cache_disable(void);
+void l2_cache_enable(void);
+
+#endif
arch/arm/include/asm/arch-s5pc2xx/uart.h new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
1.7.1
#8 lore raw

PATCH v4 2/3 armv7: add support for S5PC210 SoC

Quoted 24 lines · Minkyu Kang

S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor.

---
v4
?use inline function instead of static value
v3
?support EVT1 cpu_id
v2
?fix typo: RSIC -> RISC, Coretex -> Cortex

?arch/arm/cpu/armv7/s5pc2xx/Makefile ? ? ? ? ? | ? 42 ++++
?arch/arm/cpu/armv7/s5pc2xx/clock.c ? ? ? ? ? ?| ?220 +++++++++++++++++++++
?arch/arm/cpu/armv7/s5pc2xx/soc.c ? ? ? ? ? ? ?| ? 30 +++
?arch/arm/include/asm/arch-s5pc2xx/adc.h ? ? ? | ? 42 ++++
?arch/arm/include/asm/arch-s5pc2xx/clk.h ? ? ? | ? 36 ++++
?arch/arm/include/asm/arch-s5pc2xx/clock.h ? ? | ?255 +++++++++++++++++++++++++
?arch/arm/include/asm/arch-s5pc2xx/cpu.h ? ? ? | ?103 ++++++++++
?arch/arm/include/asm/arch-s5pc2xx/gpio.h ? ? ?| ?112 +++++++++++
?arch/arm/include/asm/arch-s5pc2xx/mmc.h ? ? ? | ? 71 +++++++
?arch/arm/include/asm/arch-s5pc2xx/pwm.h ? ? ? | ? 55 ++++++
?arch/arm/include/asm/arch-s5pc2xx/sys_proto.h | ? 32 +++
?arch/arm/include/asm/arch-s5pc2xx/uart.h ? ? ?| ? 58 ++++++
Quoted 14 lines

?12 files changed, 1056 insertions(+), 0 deletions(-) ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/Makefile ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/clock.c ?create mode 100644 arch/arm/cpu/armv7/s5pc2xx/soc.c ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/adc.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clk.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/clock.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/cpu.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/gpio.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/mmc.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/pwm.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/sys_proto.h ?create mode 100644 arch/arm/include/asm/arch-s5pc2xx/uart.h

applied to u-boot-samsung

Minkyu Kang

Signature · 2 lines
from. prom.
www.promsoft.net