arm: rmobile: Add basic support for Renesas R-Mobile
Subsystems (3)
PATCH v2 1/5 arm: rmobile: Add basic support for Renesas R-Mobile
This patch adds minimum support for R-Mobile. Only minimal support with timer. This CPU can uses the peripheral of Renesas SuperH.
--- arch/arm/cpu/armv7/rmobile/Makefile | 48 +++++++++++++ arch/arm/cpu/armv7/rmobile/cpu_info.c | 74 ++++++++++++++++++++ arch/arm/cpu/armv7/rmobile/timer.c | 97 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-rmobile/rmobile.h | 8 +++ 4 files changed, 227 insertions(+) create mode 100644 arch/arm/cpu/armv7/rmobile/Makefile create mode 100644 arch/arm/cpu/armv7/rmobile/cpu_info.c create mode 100644 arch/arm/cpu/armv7/rmobile/timer.c create mode 100644 arch/arm/include/asm/arch-rmobile/rmobile.h
arch/arm/cpu/armv7/rmobile/Makefile new file +48 -0
@@ -0,0 +1,48 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# 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 $(TOPDIR)/config.mk + +LIB = $(obj)lib$(SOC).o + +COBJS += cpu_info.o +COBJS += timer.o + +SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y)) +START := $(addprefix $(obj),$(START)) + +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/rmobile/cpu_info.c new file +74 -0
74 lines not on this page · raw message
arch/arm/cpu/armv7/rmobile/timer.c new file +97 -0
97 lines not on this page · raw message
arch/arm/include/asm/arch-rmobile/rmobile.h new file +8 -0
@@ -0,0 +1,8 @@ +#ifndef __ASM_ARCH_RMOBILE_H +#define __ASM_ARCH_RMOBILE_H + +#if defined(CONFIG_RMOBILE ) +#error "SOC Name not defined" +#endif /* CONFIG_RMOBILE */ + +#endif /* __ASM_ARCH_RMOBILE_H */
Signature · 1 line
1.7.10
PATCH 2/5 arm: rmobile: Add support Renesas SH73A0
Renesas SH73A0 is CPU with Cortex-A9.
This supports the basic register definition and GPIO.
---
v2: Remove white space.
Code which can be communalized was moved to lowlevel_init.
arch/arm/cpu/armv7/rmobile/Makefile | 13 +- arch/arm/cpu/armv7/rmobile/board.c | 33 + arch/arm/cpu/armv7/rmobile/cpu_info-sh73a0.c | 50 + arch/arm/cpu/armv7/rmobile/cpu_info.c | 36 +- arch/arm/cpu/armv7/rmobile/lowlevel_init.S | 95 + arch/arm/cpu/armv7/rmobile/pfc-sh73a0.c | 2807 +++++++++++++++++++++++ arch/arm/include/asm/arch-rmobile/gpio.h | 9 + arch/arm/include/asm/arch-rmobile/rmobile.h | 4 + arch/arm/include/asm/arch-rmobile/sh73a0-gpio.h | 553 +++++ arch/arm/include/asm/arch-rmobile/sh73a0.h | 282 +++ arch/arm/include/asm/arch-rmobile/sys_proto.h | 29 + 11 files changed, 3887 insertions(+), 24 deletions(-) create mode 100644 arch/arm/cpu/armv7/rmobile/board.c create mode 100644 arch/arm/cpu/armv7/rmobile/cpu_info-sh73a0.c create mode 100644 arch/arm/cpu/armv7/rmobile/lowlevel_init.S create mode 100644 arch/arm/cpu/armv7/rmobile/pfc-sh73a0.c create mode 100644 arch/arm/include/asm/arch-rmobile/gpio.h create mode 100644 arch/arm/include/asm/arch-rmobile/sh73a0-gpio.h create mode 100644 arch/arm/include/asm/arch-rmobile/sh73a0.h create mode 100644 arch/arm/include/asm/arch-rmobile/sys_proto.h
arch/arm/cpu/armv7/rmobile/Makefile +9 -4
@@ -25,11 +25,13 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o -COBJS += cpu_info.o -COBJS += timer.o +SOBJS = lowlevel_init.o +COBJS += cpu_info.o board.o timer.o +COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o cpu_info-sh73a0.o -SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y)) +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS-y)) +SOBJS := $(addprefix $(obj),$(SOBJS)) START := $(addprefix $(obj),$(START)) all: $(obj).depend $(LIB)
@@ -37,6 +39,9 @@ all: $(obj).depend $(LIB) $(LIB): $(OBJS) $(call cmd_link_o_target, $(OBJS)) +clean: + rm -f $(SOBJS) $(OBJS) + ######################################################################### # defines $(obj).depend target
arch/arm/cpu/armv7/rmobile/board.c new file +33 -0
@@ -0,0 +1,33 @@ +/* +* (C) Copyright 2012 Nobuhiro Iwamatsu <[email protected]> +* (C) Copyright 2012 Renesas Solutions Corp. +* +* 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> +#include <asm/arch/sys_proto.h> + +#ifdef CONFIG_DISPLAY_BOARDINFO +int checkboard (void ) +{ +printf ("Board: %s\n" , sysinfo.board_string); +return 0 ; +} +#endif /* CONFIG_DISPLAY_BOARDINFO */
arch/arm/cpu/armv7/rmobile/cpu_info-sh73a0.c new file +50 -0
50 lines not on this page · raw message
arch/arm/cpu/armv7/rmobile/cpu_info.c +16 -20
@@ -22,7 +22,6 @@*/ #include <common.h> #include <asm/io.h> -#include <asm/arch/rmobile.h> #ifdef CONFIG_ARCH_CPU_INIT int arch_cpu_init (void )
@@ -40,35 +39,32 @@ void enable_caches(void)#endif #ifdef CONFIG_DISPLAY_CPUINFO -static u32 get_cpu_type (void ) +static u32 __rmobile_get_cpu_type (void ) { -u32 id; -u32 type; - - id =readl (CCCR ); - type = (id >>8 ) &0xFF ; - -return type; +return 0x0 ; } +u32 rmobile_get_cpu_type (void ) + __attribute__((weak,alias ("__rmobile_get_cpu_type" ))); -static u32 get_cpu_rev (void ) +static u32 __rmobile_get_cpu_rev (void ) { -u32 id; -u32 rev; - - id =readl (CCCR ); - rev = (id >>4 ) &0xF ; - -return rev; +return 0 ; } +u32 rmobile_get_cpu_rev (void ) + __attribute__((weak,alias ("__rmobile_get_cpu_rev" )));int print_cpuinfo (void ) { -switch (get_cpu_type ()) { +switch (rmobile_get_cpu_type ()) { +case 0x37 : +printf ("CPU: Renesas Electronics SH73A0 rev %d\n" , +rmobile_get_cpu_rev ()); +break ;default : -printf ("CPU: Renesas Electronics CPU rev %d\n" ,get_cpu_rev ()); +printf ("CPU: Renesas Electronics CPU rev %d\n" , +get_cpu_rev ());break ; }return 0 ; } -#endif +#endif /* CONFIG_DISPLAY_CPUINFO */
arch/arm/cpu/armv7/rmobile/lowlevel_init.S new file +95 -0
95 lines not on this page · raw message
arch/arm/cpu/armv7/rmobile/pfc-sh73a0.c new file +2807 -0
2,738 lines not on this page · raw message
arch/arm/include/asm/arch-rmobile/gpio.h new file +9 -0
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-rmobile/rmobile.h +4 -0
Lines of this file are not shown. View the raw message.
arch/arm/include/asm/arch-rmobile/sh73a0-gpio.h new file +553 -0
553 lines not on this page · raw message
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +282 -0
282 lines not on this page · raw message
arch/arm/include/asm/arch-rmobile/sys_proto.h new file +29 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.10
Part of the diff is not shown here. View the raw message.
PATCH 2/5 arm: rmobile: Add support Renesas SH73A0
Dear Nobuhiro Iwamatsu,
Quoted 6 lines · In message <1341471662-1157-2-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…
Renesas SH73A0 is CPU with Cortex-A9.
This supports the basic register definition and GPIO.
arch/arm/cpu/armv7/rmobile/Makefile include $(TOPDIR)/config.mk · line 30
Quoted 8 lines
arch/arm/cpu/armv7/rmobile/Makefile +3
-2@@ -25,11 +25,13 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o -COBJS += cpu_info.o -COBJS += timer.o +SOBJS = lowlevel_init.o +COBJS += cpu_info.o board.o timer.o +COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o cpu_info-sh73a0.o
Please make this one object per line, and sort the list.
Quoted 6 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +0
-0@@ -0,0 +1,282 @@
...
arch/arm/include/asm/arch-rmobile/sh73a0.h line 11
Quoted 10 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +10
-0+#define __ASM_ARCH_RMOBILE_SH73A0_H + +/* Global Timer */ +#define GLOBAL_TIMER_BASE_ADDR (0xF0000200) +#define MERAM_BASE (0xE5580000) + +/* GIC */ +#define GIC_BASE (0xF0000100) +#define ICCICR (GIC_BASE + 0x000) +#define ICCPMR (GIC_BASE + 0x004)
NAK. Please use C structs to describe the peripoherals, here and everywhere else.
arch/arm/include/asm/arch-rmobile/sh73a0.h line 65
Quoted 6 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +6
-0+/* RWDT */ +struct sh73a0_rwdt { +volatile u16 rwtcnt0;/* 0x00 */ +volatile u16 rwtcsra0;/* 0x04 */ +volatile u16 rwtcsrb0;/* 0x08 */ +};
All these volatiles here are wrong; please remove. Checkpatch says:
WARNING: Use of volatile is usually wrong: seeDocumentation/volatile-considered-harmful.txt
Best regards,
Wolfgang Denk
Signature · 6 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
Eeeek!
'eval' on strings should have been named 'evil'. -- Tom Phoenix in
<[email protected]>PATCH 2/5 arm: rmobile: Add support Renesas SH73A0
Hi,
Thanks for your review.
Quoted 12 lines · Wolfgang Denk
Dear Nobuhiro Iwamatsu,
Quoted 9 lines · In message <1341471662-1157-2-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…
Renesas SH73A0 is CPU with Cortex-A9.
This supports the basic register definition and GPIO.arch/arm/cpu/armv7/rmobile/Makefile +0
-0@@ -25,11 +25,13 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o
Quoted 8 lines
arch/arm/cpu/armv7/rmobile/Makefile include $(TOPDIR)/config.mk · line 30
Quoted 5 lines
arch/arm/cpu/armv7/rmobile/Makefile +3
-2-COBJS += cpu_info.o -COBJS += timer.o +SOBJS = lowlevel_init.o +COBJS += cpu_info.o board.o timer.o +COBJS-$(CONFIG_SH73A0) += pfc-sh73a0.o cpu_info-sh73a0.oPlease make this one object per line, and sort the list.
OK, I'll fix.
Quoted 8 lines
Quoted 7 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +0
-0@@ -0,0 +1,282 @@...
Quoted 13 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h line 11
Quoted 10 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +10
-0+#define __ASM_ARCH_RMOBILE_SH73A0_H + +/* Global Timer */ +#define GLOBAL_TIMER_BASE_ADDR (0xF0000200) +#define MERAM_BASE (0xE5580000) + +/* GIC */ +#define GIC_BASE (0xF0000100) +#define ICCICR (GIC_BASE + 0x000) +#define ICCPMR (GIC_BASE + 0x004)NAK. Please use C structs to describe the peripoherals, here and everywhere else.
oh, sorry, I'll fix.
Quoted 10 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h line 65
Quoted 7 lines
arch/arm/include/asm/arch-rmobile/sh73a0.h new file +6
-0+/* RWDT */ +struct sh73a0_rwdt { +volatile u16 rwtcnt0;/* 0x00 */ +volatile u16 rwtcsra0;/* 0x04 */ +volatile u16 rwtcsrb0;/* 0x08 */ +};All these volatiles here are wrong; please remove. Checkpatch says:
Quoted 3 lines
WARNING: Use of volatile is usually wrong: see
Documentation/volatile-considered-harmful.txt
This already fix in http://patchwork.ozlabs.org/patch/172103/.
Best regards,
Nobuhiro
Signature · 1 line
Nobuhiro Iwamatsu
PATCH v2 3/5 sh: Add support pin function control using GPIO
In reply to Nobuhiro IwamatsuRenesas SH and R-Mobile set up device using PFC.
This provide the framework. Most codes were brought from linux kernel.
--- drivers/gpio/Makefile | 1 + drivers/gpio/sh_pfc.c | 629 +++++++++++++++++++++++++++++++++++++++++++++++++ include/sh_pfc.h | 192 +++++++++++++++ 3 files changed, 822 insertions(+) create mode 100644 drivers/gpio/sh_pfc.c create mode 100644 include/sh_pfc.h
drivers/gpio/Makefile +1 -0
@@ -39,6 +39,7 @@ COBJS-$(CONFIG_TEGRA2_GPIO) += tegra2_gpio.o COBJS-$(CONFIG_DA8XX_GPIO) += da8xx_gpio.o COBJS-$(CONFIG_ALTERA_PIO) += altera_pio.o COBJS-$(CONFIG_MPC83XX_GPIO) += mpc83xx_gpio.o +COBJS-$(CONFIG_SH_GPIO_PFC) += sh_pfc.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c)
drivers/gpio/sh_pfc.c new file +629 -0
629 lines not on this page · raw message
include/sh_pfc.h new file +192 -0
192 lines not on this page · raw message
Signature · 1 line
1.7.10
PATCH v2 3/5 sh: Add support pin function control using GPIO
Dear Nobuhiro Iwamatsu,
Quoted 2 lines · In message <1341471662-1157-3-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…
Renesas SH and R-Mobile set up device using PFC.
This provide the framework. Most codes were brought from linux kernel.
...
drivers/gpio/sh_pfc.c line 107
Quoted 8 lines
drivers/gpio/sh_pfc.c new file +8
-0+static void config_reg_helper(struct pinmux_info *gpioc, + struct pinmux_cfg_reg *crp, + unsigned long in_pos, +#if 0 + void __iomem **mapped_regp, +#else + void **mapped_regp, +#endif
Please clean up and remove the dead code here. Thanks.
drivers/gpio/sh_pfc.c line 438
Quoted 7 lines
drivers/gpio/sh_pfc.c new file +7
-0+#if 0 +static DEFINE_SPINLOCK (gpio_lock); +static struct pinmux_info *chip_to_pinmux (struct gpio_chip *chip) +{ + return container_of(chip, struct pinmux_info, chip); +} +#endif
Ditto here.
Also, checkpatch complains - WARNING: do not add new typedefs
Please check this, too.
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
When it is incorrect, it is, at least *authoritatively* incorrect.
- Hitchiker's Guide To The GalaxyPATCH v2 3/5 sh: Add support pin function control using GPIO
Hi,
Thnaks for your review.
I will check and fix these.
Best regards,
Nobuhiro
Quoted 47 lines · Wolfgang Denk
Dear Nobuhiro Iwamatsu,
Quoted 2 lines · In message <1341471662-1157-3-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…
Renesas SH and R-Mobile set up device using PFC.
This provide the framework. Most codes were brought from linux kernel....
drivers/gpio/sh_pfc.c line 107
Quoted 8 lines
drivers/gpio/sh_pfc.c new file +8
-0+static void config_reg_helper(struct pinmux_info *gpioc, + struct pinmux_cfg_reg *crp, + unsigned long in_pos, +#if 0 + void __iomem **mapped_regp, +#else + void **mapped_regp, +#endifPlease clean up and remove the dead code here. Thanks.
drivers/gpio/sh_pfc.c line 438
Quoted 7 lines
drivers/gpio/sh_pfc.c new file +7
-0+#if 0 +static DEFINE_SPINLOCK (gpio_lock); +static struct pinmux_info *chip_to_pinmux (struct gpio_chip *chip) +{ + return container_of(chip, struct pinmux_info, chip); +} +#endif Ditto here.
Also, checkpatch complains - WARNING: do not add new typedefs
Please check this, too.
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 When it is incorrect, it is, at least *authoritatively* incorrect.
- Hitchiker's Guide To The Galaxy
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 1 line
Nobuhiro Iwamatsu
PATCH v2 4/5 serial: sh: Add support Renesas SH73A0
In reply to Nobuhiro IwamatsuThe serial device of SH73A0 has the same structure as SH7372 of SH, etc.
--- drivers/serial/serial_sh.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)
drivers/serial/serial_sh.h +14 -7
@@ -45,7 +45,8 @@ struct uart_port {defined (CONFIG_CPU_SH7721 ) || \defined (CONFIG_ARCH_SH7367 ) || \defined (CONFIG_ARCH_SH7377 ) || \ - defined(CONFIG_ARCH_SH7372) +defined (CONFIG_ARCH_SH7372 ) || \ + defined(CONFIG_SH73A0)# define SCSCR_INIT (port) 0x0030/* TIE=0,RIE=0,TE=1,RE=1 */ # define PORT_PTCR 0xA405011EUL# define PORT_PVCR 0xA4050122UL
@@ -282,7 +283,8 @@ struct uart_port {defined (CONFIG_CPU_SH7721 ) || \defined (CONFIG_ARCH_SH7367 ) || \defined (CONFIG_ARCH_SH7377 ) || \ - defined(CONFIG_ARCH_SH7372) +defined (CONFIG_ARCH_SH7372 ) || \ + defined(CONFIG_SH73A0)# define SCIF_ORER 0x0200# define SCIF_ERRORS (SCIF_PER | SCIF_FER | SCIF_ER | SCIF_BRK | SCIF_ORER)# define SCIF_RFDC_MASK 0x007f
@@ -326,7 +328,8 @@ struct uart_port {defined (CONFIG_CPU_SH7721 ) || \defined (CONFIG_ARCH_SH7367 ) || \defined (CONFIG_ARCH_SH7377 ) || \ - defined(CONFIG_ARCH_SH7372) +defined (CONFIG_ARCH_SH7372 ) || \ + defined(CONFIG_SH73A0)# define SCxSR_RDxF_CLEAR (port) (sci_in(port, SCxSR) & 0xfffc)# define SCxSR_ERROR_CLEAR (port) (sci_in(port, SCxSR) & 0xfd73)# define SCxSR_TDxE_CLEAR (port) (sci_in(port, SCxSR) & 0xffdf)
@@ -420,7 +423,8 @@ static inline void sci_##name##_out(struct uart_port *port,\#if defined(CONFIG_SH3 ) || \ defined(CONFIG_ARCH_SH7367 ) || \ defined(CONFIG_ARCH_SH7377 ) || \ - defined(CONFIG_ARCH_SH7372 ) + defined(CONFIG_ARCH_SH7372 ) || \ + defined(CONFIG_SH73A0 )#if defined(CONFIG_CPU_SH7710 ) || defined(CONFIG_CPU_SH7712 ) #define SCIx_FNS(name, sh3_sci_offset, sh3_sci_size,\ sh4_sci_offset, sh4_sci_size, \
@@ -436,7 +440,8 @@ static inline void sci_##name##_out(struct uart_port *port,\defined (CONFIG_CPU_SH7720 ) || \defined (CONFIG_CPU_SH7721 ) || \defined (CONFIG_ARCH_SH7367 ) || \ - defined(CONFIG_ARCH_SH7377) +defined (CONFIG_ARCH_SH7377 ) || \ + defined(CONFIG_SH73A0)#define SCIF_FNS (name, scif_offset, scif_size) \ CPU_SCIF_FNS(name, scif_offset, scif_size)#elif defined(CONFIG_ARCH_SH7372 )
@@ -492,7 +497,8 @@ static inline void sci_##name##_out(struct uart_port *port,\defined (CONFIG_CPU_SH7720 ) || \defined (CONFIG_CPU_SH7721 ) || \defined (CONFIG_ARCH_SH7367 ) || \ - defined(CONFIG_ARCH_SH7377) +defined (CONFIG_ARCH_SH7377 ) || \ + defined(CONFIG_SH73A0) SCIF_FNS(SCSMR, 0x00, 16)SCIF_FNS (SCBRR ,0x04 ,8 )
@@ -692,7 +698,8 @@ static inline int sci_rxd_in(struct uart_port *port)defined (CONFIG_CPU_SH7721 ) || \defined (CONFIG_ARCH_SH7367 ) || \defined (CONFIG_ARCH_SH7377 ) || \ - defined(CONFIG_ARCH_SH7372) +defined (CONFIG_ARCH_SH7372 ) || \ + defined(CONFIG_SH73A0)#define SCBRR_VALUE (bps, clk) (((clk*2)+16*bps)/(32*bps)-1)#elif defined(CONFIG_CPU_SH7723 ) ||\ defined(CONFIG_CPU_SH7724 )
Signature · 1 line
1.7.10
PATCH v2 5/5 arm: rmobile: Add supoprt for KMC KZM-A9-GT board
In reply to Nobuhiro IwamatsuThe KZM-A9-GT board has Renesas R-Mobile SH73A0, 512MB DDR2-SDRAM, USB, Ethernet, and more.
This patch supports the following functions:
- 512MB DDR2-SDRAM
- 16MB NOR Flash memory
- Serial console (SCIF)
- Ethernet (SCIM)
- I2C
--
V2: Add maintainer infomation to MAINTAINERS.
Change coding style from asm to using table.
Change board name from kzm_a9_gt to kzm9g. Request from board vendor. Remove "1" from board config file.
MAINTAINERS | 4 + arch/arm/include/asm/mach-types.h | 2 + board/kmc/kzm9g/Makefile | 50 +++++ board/kmc/kzm9g/kzm9g.c | 372 +++++++++++++++++++++++++++++++++++++ boards.cfg | 1 + include/configs/kzm9g.h | 168 +++++++++++++++++ 7 files changed, 693 insertions(+) create mode 100644 board/kmc/kzm9g/Makefile create mode 100644 board/kmc/kzm9g/kzm9g.c create mode 100644 board/kmc/kzm9g/lowlevel_init.S create mode 100644 include/configs/kzm9g.h
MAINTAINERS +4 -0
@@ -944,6 +944,10 @@ Vladimir Zapolskiy <[email protected]> devkit3250 lpc32xx +Nobuhiro Iwamatsu <[email protected]> + + kzm9g SH73A0 (RMOBILE SoC) + ------------------------------------------------------------------------- Unknown / orphaned boards:
arch/arm/include/asm/mach-types.h +2 -0
@@ -1106,6 +1106,8 @@ extern unsigned int __machine_arch_type;#define MACH_TYPE_ATDGP318 3494#define MACH_TYPE_OMAP5_SEVM 3777 +#define MACH_TYPE_KZM9G 4140 +#ifdef CONFIG_ARCH_EBSA110 # ifdef machine_arch_type# undef machine_arch_type
board/kmc/kzm9g/Makefile new file +50 -0
50 lines not on this page · raw message
board/kmc/kzm9g/kzm9g.c new file +372 -0
372 lines not on this page · raw message
boards.cfg +1 -0
@@ -232,6 +232,7 @@ harmony arm armv7 harmony nvidia seaboard arm armv7 seaboard nvidia tegra2 ventana arm armv7 ventana nvidia tegra2 u8500_href arm armv7 u8500 st-ericsson u8500 +kzm9g arm armv7 kzm9g kmc rmobile actux1_4_16 arm ixp actux1 - - actux1:FLASH2X2 actux1_4_32 arm ixp actux1 - - actux1:FLASH2X2,RAM_32MB actux1_8_16 arm ixp actux1 - - actux1:FLASH1X8
include/configs/kzm9g.h new file +168 -0
168 lines not on this page · raw message
Signature · 1 line
1.7.10
PATCH v2 5/5 arm: rmobile: Add supoprt for KMC KZM-A9-GT board
Hello, Iwamatsu-san
Quoted 5 lines · Nobuhiro Iwamatsu
board/kmc/kzm9g/kzm9g.c new file +0
-0
[...]
Quoted 2 lines
board/kmc/kzm9g/kzm9g.c new file +2
-0+void s_init (void ) +{
[...]
board/kmc/kzm9g/kzm9g.c line 164
Quoted 3 lines
board/kmc/kzm9g/kzm9g.c new file +3
-0+/* Secure control register Init */ +#define LIFEC_SEC_SRC_BIT (1 < 15) +writel (readl (LIFEC_SEC_SRC ) & ~LIFEC_SEC_SRC_BIT ,LIFEC_SEC_SRC );
(1 < 15) ?
It seems strange. typo of (1 << 15) ?
- actux1:FLASH1X8
Quoted 5 lines
include/configs/kzm9g.h new file +0
-0
[...]
include/configs/kzm9g.h line 22
Quoted 3 lines
include/configs/kzm9g.h new file +3
-0+ +#ifndef __KZM_A9_GT_H +#define __KZM_A9_GT_H
Trivial.__KZM9G_H
Quoted 2 lines
+#endif /*
__KZM_A9_GT_H*/
__KZM9G_H
PATCH v2 5/5 arm: rmobile: Add supoprt for KMC KZM-A9-GT board
Hi,
Thank you for your review.
2012/7/5 Tetsuyuki Kobayashi <[email protected]>:
Quoted 45 lines
Hello, Iwamatsu-san
Quoted 5 lines · Nobuhiro Iwamatsu
board/kmc/kzm9g/kzm9g.c new file +0
-0[...]
Quoted 3 lines
board/kmc/kzm9g/kzm9g.c new file +2
-0+void s_init (void ) +{[...]
board/kmc/kzm9g/kzm9g.c line 164
Quoted 3 lines
board/kmc/kzm9g/kzm9g.c new file +3
-0+/* Secure control register Init */ +#define LIFEC_SEC_SRC_BIT (1 < 15) +writel (readl (LIFEC_SEC_SRC ) & ~LIFEC_SEC_SRC_BIT ,LIFEC_SEC_SRC );(1 < 15) ?
It seems strange. typo of (1 << 15) ?- actux1:FLASH1X8
Quoted 6 lines
include/configs/kzm9g.h new file +0
-0[...]
include/configs/kzm9g.h line 22
Quoted 3 lines
include/configs/kzm9g.h new file +3
-0+ +#ifndef __KZM_A9_GT_H +#define __KZM_A9_GT_HTrivial.
__KZM9G_H
Quoted 5 lines
Quoted 2 lines
+#endif /*
__KZM_A9_GT_H*/
__KZM9G_H
Thanks, I will fix these.
Best regards,
Nobuhiro
Signature · 1 line
Nobuhiro Iwamatsu
PATCH v2 1/5 arm: rmobile: Add basic support for Renesas R-Mobile
In reply to Nobuhiro IwamatsuThank you, Iwamatu-san.
But I am afraid that [PATCH v2 2/5] is missing. I didn't recieve it.
PATCH v2 1/5 arm: rmobile: Add basic support for Renesas R-Mobile
Hi,
Tetsuyuki Kobayashi ????????:
Quoted 5 lines
Thank you, Iwamatu-san.
But I am afraid that [PATCH v2 2/5] is missing. I didn't recieve it.
This mail was blocked by Mailing List system. Size of Mail is too big. If you can show patchwork, you can get from that.
http://patchwork.ozlabs.org/patch/169095/
Best regards,
Nobuhiro
PATCH v2 1/5 arm: rmobile: Add basic support for Renesas R-Mobile
In reply to Nobuhiro IwamatsuDear Nobuhiro Iwamatsu,
Quoted 4 lines · In message <1341471662-1157-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…
This patch adds minimum support for R-Mobile. Only minimal support with timer. This CPU can uses the peripheral of Renesas SuperH.
Signed-off-by Nobuhiro Iwamatsu <[email protected]>
Checkpatch says (2x):
WARNING: Whitespace before semicolon
Please fix!
Best regards,
Wolfgang Denk
Signature · 6 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 FORTRAN? The syntactically incorrect statement "DO 10 I = 1.10" will parse and generate code creating a variable, DO10I, as follows: "DO10I = 1.10" If that doesn't terrify you, it should.
PATCH v2 1/5 arm: rmobile: Add basic support for Renesas R-Mobile
Hi,
Thanks for your review.
Quoted 6 lines · Wolfgang Denk
Dear Nobuhiro Iwamatsu,
Quoted 3 lines · In message <1341471662-1157-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…
This patch adds minimum support for R-Mobile. Only minimal support with timer. This CPU can uses the peripheral of Renesas SuperH.
Quoted 8 lines
Quoted 1 line
Signed-off-by Nobuhiro Iwamatsu <[email protected]>Checkpatch says (2x):
WARNING: Whitespace before semicolon
Please fix!
OK, I will fix and resend
Best regards,
Nobuhiro
Signature · 1 line
Nobuhiro Iwamatsu