GitHub/moto-9609/android_kernel_motorola_exynos9610.git
12 years agoMerge branch 'renesas-kota2' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:07:29 +0000 (23:07 +0200)]
Merge branch 'renesas-kota2' into renesas-board

* renesas-kota2:
  ARM: mach-shmobile: add fixed voltage regulators to kota2

12 years agoMerge branch 'renesas-g4evm' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:07:22 +0000 (23:07 +0200)]
Merge branch 'renesas-g4evm' into renesas-board

* renesas-g4evm:
  ARM: mach-shmobile: add fixed voltage regulators to g4evm
  ARM: shmobile: use common extra gpio functions on g4evm

12 years agoMerge branch 'renesas-bonito' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:07:13 +0000 (23:07 +0200)]
Merge branch 'renesas-bonito' into renesas-board

* renesas-bonito:
  ARM: mach-shmobile: add fixed voltage regulators to bonito

12 years agoMerge branch 'renesas-ap4evb' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:07:05 +0000 (23:07 +0200)]
Merge branch 'renesas-ap4evb' into renesas-board

* renesas-ap4evb:
  ARM: mach-shmobile: add fixed voltage regulators to ap4evb
  ARM: shmobile: use common extra gpio functions on ap4evb

12 years agoMerge branch 'renesas-ag5evm' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:06:57 +0000 (23:06 +0200)]
Merge branch 'renesas-ag5evm' into renesas-board

* renesas-ag5evm:
  ARM: mach-shmobile: add fixed voltage regulators to ag5evm

12 years agoMerge branch 'renesas-armadillo' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:06:35 +0000 (23:06 +0200)]
Merge branch 'renesas-armadillo' into renesas-board

* renesas-armadillo:
  ARM: mach-shmobile: armadillo800eva: defconfig Allow use of armhf userspace
  ARM: shmobile: armadillo800eva: A3SP domain includes USB
  ARM: shmobile: armadillo800eva: A4LC domain includes LCDC
  ARM: shmobile: armadillo800eva: USB Func enables external IRQ mode
  ARM: mach-shmobile: add fixed voltage regulators to armadillo800eva
  ARM: shmobile: use common extra gpio functions on armadillo800eva
  ARM: shmobile: armadillo800eva: enable DMAEngine on USB
  ARM: shmobile: armadillo800eva: enable DMAEngine on SDHI
  ARM: shmobile: armadillo800eva: enable DMAEngine on FSI
  ARM: shmobile: armadillo800eva: enable FSI-HDMI sound
  ARM: shmobile: armadillo800eva: enable FSI-WM8978 sound

Conflicts:
arch/arm/mach-shmobile/Kconfig

12 years agoMerge branch 'renesas-board-common' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:05:06 +0000 (23:05 +0200)]
Merge branch 'renesas-board-common' into renesas-board

* renesas-board-common:
  ARM: mach-shmobile: select the fixed regulator driver on several boards
  regulator: extend the fixed dummy voltage regulator to accept voltage
  regulator: support multiple dummy fixed regulators

Conflicts:
arch/arm/mach-shmobile/Kconfig

12 years agoMerge branch 'renesas-soc' into renesas-board
Rafael J. Wysocki [Wed, 11 Jul 2012 21:03:54 +0000 (23:03 +0200)]
Merge branch 'renesas-soc' into renesas-board

* renesas-soc: (31 commits)
  ARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config
  ARM: shmobile: Take cpuidle dependencies into account correctly
  ARM: mach-shmobile: sh7377 generic board support via DT
  ARM: mach-shmobile: r8a7740 generic board support via DT
  ARM: shmobile: sh7372: completely switch over to using pm-rmobile API
  ARM: shmobile: ap4evb: switch to using pm-rmobile API
  ARM: shmobile: mackerel: switch to using pm-rmobile API
  ARM: shmobile: sh7372: add pm-rmobile domain support
  ARM: shmobile: r8a7740: add A4LC pm domain support
  ARM: shmobile: r8a7740: add A3SP pm domain support
  ARM: shmobile: r8a7740: add A4S pm domain support
  ARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control
  ARM: shmobile: soc-core: add R-mobile PM domain common APIs
  ARM: shmobile: sh7372 A3SM CPUIdle support
  ARM: shmobile: Use INTCA with sh7372 A3SM power domain
  ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register
  ARM: shmobile: use common DMAEngine definitions on sh7372
  ARM: shmobile: use common DMAEngine definitions on sh73a0
  ARM: shmobile: sh73a0: add DMAEngine support for MPDMAC
  ARM: shmobile: sh73a0: add USB clock support
  ...

12 years agoMerge branch 'renesas-sh7377' into renesas-soc
Rafael J. Wysocki [Wed, 11 Jul 2012 21:02:37 +0000 (23:02 +0200)]
Merge branch 'renesas-sh7377' into renesas-soc

* renesas-sh7377:
  ARM: mach-shmobile: sh7377 generic board support via DT

12 years agoMerge branch 'renesas-sh7372' into renesas-soc
Rafael J. Wysocki [Wed, 11 Jul 2012 21:02:31 +0000 (23:02 +0200)]
Merge branch 'renesas-sh7372' into renesas-soc

* renesas-sh7372:
  ARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config
  ARM: shmobile: Take cpuidle dependencies into account correctly
  ARM: shmobile: sh7372: completely switch over to using pm-rmobile API
  ARM: shmobile: ap4evb: switch to using pm-rmobile API
  ARM: shmobile: mackerel: switch to using pm-rmobile API
  ARM: shmobile: sh7372: add pm-rmobile domain support
  ARM: shmobile: sh7372 A3SM CPUIdle support
  ARM: shmobile: Use INTCA with sh7372 A3SM power domain
  ARM: shmobile: use common DMAEngine definitions on sh7372
  ARM: shmobile: sh7372: remove unused sh7372_a3sp_init() on !CONFIG_PM

12 years agoMerge branch 'renesas-sh73a0' into renesas-soc
Rafael J. Wysocki [Wed, 11 Jul 2012 21:02:18 +0000 (23:02 +0200)]
Merge branch 'renesas-sh73a0' into renesas-soc

* renesas-sh73a0:
  ARM: shmobile: use common DMAEngine definitions on sh73a0
  ARM: shmobile: sh73a0: add DMAEngine support for MPDMAC
  ARM: shmobile: sh73a0: add USB clock support

12 years agoMerge branch 'renesas-r8a7740' into renesas-soc
Rafael J. Wysocki [Wed, 11 Jul 2012 21:02:05 +0000 (23:02 +0200)]
Merge branch 'renesas-r8a7740' into renesas-soc

* renesas-r8a7740:
  ARM: mach-shmobile: r8a7740 generic board support via DT
  ARM: shmobile: r8a7740: add A4LC pm domain support
  ARM: shmobile: r8a7740: add A3SP pm domain support
  ARM: shmobile: r8a7740: add A4S pm domain support
  ARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control
  ARM: shmobile: use common DMAEngine definitions on r8a7740
  ARM: shmobile: r8a7740: add DMAEngine support for USB
  ARM: shmobile: r8a7740: add DMAEngine support for SDHI
  ARM: shmobile: r8a7740: add DMAEngine support for FSI

12 years agoMerge branch 'renesas-soc-core' into renesas-soc
Rafael J. Wysocki [Wed, 11 Jul 2012 21:01:33 +0000 (23:01 +0200)]
Merge branch 'renesas-soc-core' into renesas-soc

* renesas-soc-core:
  ARM: shmobile: soc-core: add R-mobile PM domain common APIs
  ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register
  ARM: shmobile: add common DMAEngine definitions
  ARM: shmobile: add common extra gpio functions

Conflicts:
arch/arm/mach-shmobile/clock-r8a7740.c

12 years agoMerge branch 'renesas-fixes' into renesas-soc
Rafael J. Wysocki [Wed, 11 Jul 2012 21:00:18 +0000 (23:00 +0200)]
Merge branch 'renesas-fixes' into renesas-soc

* renesas-fixes:
  ARM: shmobile: r8a7779: Route all interrupts to ARM
  ARM: shmobile: kzm9d: use late init machine hook
  ARM: shmobile: kzm9g: use late init machine hook
  ARM: mach-shmobile: armadillo800eva: Use late init machine hook

12 years agoARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config
Rafael J. Wysocki [Wed, 11 Jul 2012 20:55:12 +0000 (22:55 +0200)]
ARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config

If neither CONFIG_SUSPEND nor CONFIG_CPU_IDLE is set in the kernel
configuration file, build error occurs in
arch/arm/mach-shmobile/pm-sh7372.c.

Fix it by rearranging #ifdefs in that file to make the
definition of sh7372_suspend_init() depend only on
CONFIG_SUSPEND and the definition of sh7372_cpuidle_init()
depend only on CONFIG_CPU_IDLE.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
12 years agoARM: shmobile: Take cpuidle dependencies into account correctly
Magnus Damm [Wed, 11 Jul 2012 20:54:05 +0000 (22:54 +0200)]
ARM: shmobile: Take cpuidle dependencies into account correctly

The sh7372's cpuidle code uses cpu_suspend() and cpu_resume() in
its implementation of the .enter() callback for deeper C-states, so
make ARCH_SH7372 select ARM_CPU_SUSPEND if CPU_IDLE is set to satisfy
all of the build dependencies (it has to be selected for CONFIG_PM
as well for the system suspend handling).

[rjw: Added the subject and changelog.]

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: armadillo800eva: defconfig Allow use of armhf userspace
Simon Horman [Fri, 6 Jul 2012 11:08:15 +0000 (20:08 +0900)]
ARM: mach-shmobile: armadillo800eva: defconfig Allow use of armhf userspace

This allows use a Debian armhf usespace
as well as the existing ability to use a Debian armel userspace.

Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: sh7377 generic board support via DT
Magnus Damm [Fri, 6 Jul 2012 08:10:02 +0000 (17:10 +0900)]
ARM: mach-shmobile: sh7377 generic board support via DT

Add generic DT board support for the sh7377 SoC.

SCIF serial ports and timers are kept as regular
platform devices. Other on-chip and on-board devices
should be configured via the device tree.

At this point there is no interrupt controller support
in place but such code will be added over time when
proper IRQ domain support has been added to INTC.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: r8a7740 generic board support via DT
Magnus Damm [Fri, 6 Jul 2012 08:08:07 +0000 (17:08 +0900)]
ARM: mach-shmobile: r8a7740 generic board support via DT

Add generic DT board support for the r8a7740 SoC.

SCIF serial ports and timers are kept as regular
platform devices. Other on-chip and on-board devices
should be configured via the device tree.

At this point there is no interrupt controller support
in place but such code will be added over time when
proper IRQ domain support has been added to INTC.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh7372: completely switch over to using pm-rmobile API
Kuninori Morimoto [Thu, 5 Jul 2012 08:29:37 +0000 (01:29 -0700)]
ARM: shmobile: sh7372: completely switch over to using pm-rmobile API

Now, all sh7372 platforms are switched over to use pm-rmobile base PM domain,
and no one is using original sh7372_pm_domain APIs.
We can remove these, switching has been fully completed.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: ap4evb: switch to using pm-rmobile API
Kuninori Morimoto [Thu, 5 Jul 2012 08:29:17 +0000 (01:29 -0700)]
ARM: shmobile: ap4evb: switch to using pm-rmobile API

This patch switches ap4evb platform to use pm-rmobile base common API.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: mackerel: switch to using pm-rmobile API
Kuninori Morimoto [Thu, 5 Jul 2012 08:28:54 +0000 (01:28 -0700)]
ARM: shmobile: mackerel: switch to using pm-rmobile API

This patch switches mackerel platform to use pm-rmobile base common API.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh7372: add pm-rmobile domain support
Kuninori Morimoto [Thu, 5 Jul 2012 08:28:32 +0000 (01:28 -0700)]
ARM: shmobile: sh7372: add pm-rmobile domain support

This patch adds pm-rmobile common API base PM domain.
sh7372 CPU/platform will switch to using it from
original implementation

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-soc-core' into renesas-sh7372
Rafael J. Wysocki [Fri, 6 Jul 2012 18:43:44 +0000 (20:43 +0200)]
Merge branch 'renesas-soc-core' into renesas-sh7372

* renesas-soc-core:
  ARM: shmobile: soc-core: add R-mobile PM domain common APIs
  ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register

12 years agoARM: shmobile: armadillo800eva: A3SP domain includes USB
Kuninori Morimoto [Thu, 5 Jul 2012 08:28:00 +0000 (01:28 -0700)]
ARM: shmobile: armadillo800eva: A3SP domain includes USB

Because USB Func is controlled by external IRQ mode,
it is possible to control USB under A3SP domain to reduce power.
This patch enables it.

Armadillo800eva board switchs USB Host/Func by SW1.6,
So, the device to adds into domain is selected on this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: A4LC domain includes LCDC
Kuninori Morimoto [Thu, 5 Jul 2012 08:27:37 +0000 (01:27 -0700)]
ARM: shmobile: armadillo800eva: A4LC domain includes LCDC

It is possible to control LCDC under A4LC domain to reduce power.
This patch enable it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: USB Func enables external IRQ mode
Kuninori Morimoto [Thu, 5 Jul 2012 08:27:14 +0000 (01:27 -0700)]
ARM: shmobile: armadillo800eva: USB Func enables external IRQ mode

We can control renesas_usbhs driver as 2 way which are
autonomy mode and external IRQ trigger mode.

Autonomy mode is very easy settings for platform,
but it required USB power domain always ON,
since its connection/disconnection IRQ come from it.

If platform uses external IRQ trigger mode,
USB power domain can be OFF, since its
connection/disconnection IRQ come from external IRQ.

This patch enable external IRQ mode.
Now it is possible to add USB support on A4SP domain.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-r8a7740' into renesas-armadillo
Rafael J. Wysocki [Fri, 6 Jul 2012 18:42:44 +0000 (20:42 +0200)]
Merge branch 'renesas-r8a7740' into renesas-armadillo

* renesas-r8a7740:
  ARM: shmobile: r8a7740: add A4LC pm domain support
  ARM: shmobile: r8a7740: add A3SP pm domain support
  ARM: shmobile: r8a7740: add A4S pm domain support
  ARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control
  ARM: shmobile: soc-core: add R-mobile PM domain common APIs
  ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register

12 years agoARM: shmobile: r8a7740: add A4LC pm domain support
Kuninori Morimoto [Thu, 5 Jul 2012 08:26:53 +0000 (01:26 -0700)]
ARM: shmobile: r8a7740: add A4LC pm domain support

This patch adds basic A4LC pm domain support.
Now, below devices can be controled by PM

MERAM, LCDC, VOU, ICBS, SDENC-Link

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add A3SP pm domain support
Kuninori Morimoto [Thu, 5 Jul 2012 08:26:31 +0000 (01:26 -0700)]
ARM: shmobile: r8a7740: add A3SP pm domain support

This patch adds basic A3SP pm domain support.
Now, below devices can be controled by PM

DMAC1/2/3, IPMMU, DDM, FLCTL, SYS-HPB, BBIF1, MSIOF1/2,
SCIFA,SCIFB, IIC1, IrDA, USBH, USBDMAC, SDHI0/1/2, TPU,
DREQPAK (Sys),  MMCIF, RSPI, SIM, USBF

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add A4S pm domain support
Kuninori Morimoto [Thu, 5 Jul 2012 08:25:58 +0000 (01:25 -0700)]
ARM: shmobile: r8a7740: add A4S pm domain support

This patch adds basic A4S pm domain support.
Now, below devices can be controled by PM

Common-SHwy, Common-HPB, BSC, MFI, MMFROM, HS-SHwy,
SYS-HPB, INTCA, DBSC, DDRPHY (Logic),
ATAPI, GbEther, AXI-bus

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control
Kuninori Morimoto [Thu, 5 Jul 2012 08:25:24 +0000 (01:25 -0700)]
ARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control

MSEL1CR 7bit selects IRQ7 source pin which was
VBUS pin or A21/MSIOF0_RSYNC/MSIOF1_TSYNC pin.
But current pfc-r8a7740 MSEL1CR 7bit setting was wrong.
This patch fix it up

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-soc-core' into renesas-r8a7740
Rafael J. Wysocki [Fri, 6 Jul 2012 18:39:54 +0000 (20:39 +0200)]
Merge branch 'renesas-soc-core' into renesas-r8a7740

* renesas-soc-core:
  ARM: shmobile: soc-core: add R-mobile PM domain common APIs
  ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register

Conflicts:
arch/arm/mach-shmobile/clock-r8a7740.c

12 years agoARM: shmobile: soc-core: add R-mobile PM domain common APIs
Kuninori Morimoto [Thu, 5 Jul 2012 08:24:46 +0000 (01:24 -0700)]
ARM: shmobile: soc-core: add R-mobile PM domain common APIs

This patch adds Renesas R-mobile series common PM domain APIs.
R-mobile CPU can use/switch this API

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: select the fixed regulator driver on several boards
Guennadi Liakhovetski [Thu, 5 Jul 2012 13:17:42 +0000 (15:17 +0200)]
ARM: mach-shmobile: select the fixed regulator driver on several boards

On systems, using regulators to supply power to devices, if the REGULATOR
Kconfig option is disabled, regulator API stubs will be used, which often
suffices to bring a default configuration up. If REGULATOR is enabled but
respective regulator drivers are inactive, the real regulator API calls
will be used, which in the absence of drivers will fail to provide
services. This patch prevents such a problem on sh-mobile boards by
forcing REGULATOR_FIXED_VOLTAGE on if REGULATOR is selected.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh7372 A3SM CPUIdle support
Magnus Damm [Thu, 5 Jul 2012 05:46:47 +0000 (14:46 +0900)]
ARM: shmobile: sh7372 A3SM CPUIdle support

Add CPUIdle support for the A3SM power domain on sh7372.

With this in place we can turn off more of the SoC during
run time and save power. Makes use of the recently introduced
sh7372 INTCA A3SM power domain wakeup support.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: Use INTCA with sh7372 A3SM power domain
Magnus Damm [Thu, 5 Jul 2012 05:46:07 +0000 (14:46 +0900)]
ARM: shmobile: Use INTCA with sh7372 A3SM power domain

Convert the sh7372 A3SM power domain code to allow
waking up through INTCA and SYSC instead of only
relying on SYSC for wakeups. This allows us to
enter A3SM more or less regardless of the state
of the rest of the system.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register
Nobuhiro Iwamatsu [Wed, 27 Jun 2012 00:59:00 +0000 (09:59 +0900)]
ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register

sh_clk_mstp32_register is deprecated. This convert to sh_clk_mstp_register.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: add fixed voltage regulators to kota2
Guennadi Liakhovetski [Tue, 26 Jun 2012 22:32:29 +0000 (00:32 +0200)]
ARM: mach-shmobile: add fixed voltage regulators to kota2

On kota2 provide 1.8V and 3.3V supplies for its SD/MMC-card interfaces
and a dummy regulator for the smsc911x driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: add fixed voltage regulators to g4evm
Guennadi Liakhovetski [Tue, 26 Jun 2012 22:32:28 +0000 (00:32 +0200)]
ARM: mach-shmobile: add fixed voltage regulators to g4evm

On g4evm provide a 3.3V supply for its SD/MMC-card interfaces.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-board-common' into renesas-g4evm
Rafael J. Wysocki [Sat, 30 Jun 2012 20:48:37 +0000 (22:48 +0200)]
Merge branch 'renesas-board-common' into renesas-g4evm

* renesas-board-common:
  regulator: extend the fixed dummy voltage regulator to accept voltage
  regulator: support multiple dummy fixed regulators

12 years agoARM: mach-shmobile: add fixed voltage regulators to bonito
Guennadi Liakhovetski [Tue, 26 Jun 2012 22:32:27 +0000 (00:32 +0200)]
ARM: mach-shmobile: add fixed voltage regulators to bonito

On bonito provide a dummy regulator for the smsc911x driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: add fixed voltage regulators to armadillo800eva
Guennadi Liakhovetski [Fri, 29 Jun 2012 06:33:11 +0000 (08:33 +0200)]
ARM: mach-shmobile: add fixed voltage regulators to armadillo800eva

On armadillo800eva provide a 3.3V supply for its SD/MMC-card interfaces.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-board-common' into renesas-armadillo
Rafael J. Wysocki [Sat, 30 Jun 2012 20:42:11 +0000 (22:42 +0200)]
Merge branch 'renesas-board-common' into renesas-armadillo

* renesas-board-common:
  regulator: extend the fixed dummy voltage regulator to accept voltage
  regulator: support multiple dummy fixed regulators

12 years agoARM: mach-shmobile: add fixed voltage regulators to ap4evb
Guennadi Liakhovetski [Tue, 26 Jun 2012 22:32:25 +0000 (00:32 +0200)]
ARM: mach-shmobile: add fixed voltage regulators to ap4evb

On ap4evb provide 1.8V and 3.3V supplies for its SD/MMC-card interfaces
and a dummy regulator for the smsc911x driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-board-common' into renesas-ap4evb
Rafael J. Wysocki [Sat, 30 Jun 2012 20:40:25 +0000 (22:40 +0200)]
Merge branch 'renesas-board-common' into renesas-ap4evb

* renesas-board-common:
  regulator: extend the fixed dummy voltage regulator to accept voltage
  regulator: support multiple dummy fixed regulators

12 years agoARM: mach-shmobile: add fixed voltage regulators to ag5evm
Guennadi Liakhovetski [Fri, 29 Jun 2012 07:32:29 +0000 (09:32 +0200)]
ARM: mach-shmobile: add fixed voltage regulators to ag5evm

On ag5evm provide 1.8V, 2.8V, and 3.3V supplies for its SD/MMC-card
interfaces and a dummy regulator for the smsc911x driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge tag 'topic/fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
Rafael J. Wysocki [Sat, 30 Jun 2012 20:23:24 +0000 (22:23 +0200)]
Merge tag 'topic/fixed' of git://git./linux/kernel/git/broonie/regulator into renesas-board-common

Several following board changes depend on this branch.

12 years agoARM: shmobile: use common extra gpio functions on g4evm
Kuninori Morimoto [Mon, 25 Jun 2012 10:41:27 +0000 (03:41 -0700)]
ARM: shmobile: use common extra gpio functions on g4evm

This patch switch over to use common extra gpio method,
and reduced a waste of code on SH-ARM.

But these functions should be replaced by correct
gpio function in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: use common extra gpio functions on ap4evb
Kuninori Morimoto [Mon, 25 Jun 2012 10:41:19 +0000 (03:41 -0700)]
ARM: shmobile: use common extra gpio functions on ap4evb

This patch switch over to use common extra gpio method,
and reduced a waste of code on SH-ARM.

But these functions should be replaced by correct
gpio function in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: use common extra gpio functions on armadillo800eva
Kuninori Morimoto [Mon, 25 Jun 2012 10:41:45 +0000 (03:41 -0700)]
ARM: shmobile: use common extra gpio functions on armadillo800eva

This patch switch over to use common extra gpio method,
and reduced a waste of code on SH-ARM.

But these functions should be replaced by correct
gpio function in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable DMAEngine on USB
Kuninori Morimoto [Mon, 25 Jun 2012 10:37:47 +0000 (03:37 -0700)]
ARM: shmobile: armadillo800eva: enable DMAEngine on USB

It is possible to reduce CPU load if USB used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable DMAEngine on SDHI
Kuninori Morimoto [Mon, 25 Jun 2012 10:37:38 +0000 (03:37 -0700)]
ARM: shmobile: armadillo800eva: enable DMAEngine on SDHI

It is possible to reduce CPU load if SDHI used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable DMAEngine on FSI
Kuninori Morimoto [Mon, 25 Jun 2012 10:37:20 +0000 (03:37 -0700)]
ARM: shmobile: armadillo800eva: enable DMAEngine on FSI

It is possible to reduce CPU load if FSI playback used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable FSI-HDMI sound
Kuninori Morimoto [Mon, 25 Jun 2012 10:33:04 +0000 (03:33 -0700)]
ARM: shmobile: armadillo800eva: enable FSI-HDMI sound

This patch enable HDMI sound support on CON3

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable FSI-WM8978 sound
Kuninori Morimoto [Mon, 25 Jun 2012 10:32:50 +0000 (03:32 -0700)]
ARM: shmobile: armadillo800eva: enable FSI-WM8978 sound

This patch enable sound support on CON11

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-r8a7740' into renesas-armadillo
Rafael J. Wysocki [Sat, 30 Jun 2012 13:24:35 +0000 (15:24 +0200)]
Merge branch 'renesas-r8a7740' into renesas-armadillo

* renesas-r8a7740:
  ARM: shmobile: use common DMAEngine definitions on r8a7740
  ARM: shmobile: r8a7740: add DMAEngine support for USB
  ARM: shmobile: r8a7740: add DMAEngine support for SDHI
  ARM: shmobile: r8a7740: add DMAEngine support for FSI
  ARM: shmobile: add common DMAEngine definitions
  ARM: shmobile: add common extra gpio functions

12 years agoARM: shmobile: use common DMAEngine definitions on sh7372
Kuninori Morimoto [Mon, 25 Jun 2012 10:43:19 +0000 (03:43 -0700)]
ARM: shmobile: use common DMAEngine definitions on sh7372

This patch switch over to use common DMAEngine definitions,
and reduced a waste of code.

It is easy to understand if sh_dmae_pdata / sh_dmae_slave_config
settings are used defined value instead of direct value.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-soc-core' into renesas-sh7372
Rafael J. Wysocki [Sat, 30 Jun 2012 13:16:35 +0000 (15:16 +0200)]
Merge branch 'renesas-soc-core' into renesas-sh7372

* renesas-soc-core:
  ARM: shmobile: add common DMAEngine definitions
  ARM: shmobile: add common extra gpio functions

12 years agoARM: shmobile: use common DMAEngine definitions on sh73a0
Kuninori Morimoto [Mon, 25 Jun 2012 10:43:28 +0000 (03:43 -0700)]
ARM: shmobile: use common DMAEngine definitions on sh73a0

This patch switch over to use common DMAEngine definitions,
and reduced a waste of code.

It is easy to understand if sh_dmae_pdata / sh_dmae_slave_config
settings are used defined value instead of direct value.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh73a0: add DMAEngine support for MPDMAC
Kuninori Morimoto [Mon, 25 Jun 2012 10:39:20 +0000 (03:39 -0700)]
ARM: shmobile: sh73a0: add DMAEngine support for MPDMAC

Current shdmac can support MPDMAC (= sound DMA) on sh73a0.
This support reduce CPU load when sound was playback.

On v2.0 manual, MPDMAC MID/RID number were wrong.
This patch is using the number which seems correct.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh73a0: add USB clock support
Kuninori Morimoto [Mon, 25 Jun 2012 10:34:49 +0000 (03:34 -0700)]
ARM: shmobile: sh73a0: add USB clock support

It is required from renesas_usbhs driver.
This patch is based on v2.0 manual.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-soc-core' into renesas-sh73a0
Rafael J. Wysocki [Sat, 30 Jun 2012 13:13:34 +0000 (15:13 +0200)]
Merge branch 'renesas-soc-core' into renesas-sh73a0

* renesas-soc-core:
  ARM: shmobile: add common DMAEngine definitions
  ARM: shmobile: add common extra gpio functions

12 years agoARM: shmobile: use common DMAEngine definitions on r8a7740
Kuninori Morimoto [Mon, 25 Jun 2012 10:43:10 +0000 (03:43 -0700)]
ARM: shmobile: use common DMAEngine definitions on r8a7740

This patch switch over to use common DMAEngine definitions,
and reduced a waste of code.

It is easy to understand if sh_dmae_pdata / sh_dmae_slave_config
settings are used defined value instead of direct value.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add DMAEngine support for USB
Kuninori Morimoto [Mon, 25 Jun 2012 10:37:10 +0000 (03:37 -0700)]
ARM: shmobile: r8a7740: add DMAEngine support for USB

Current shdmac can support USB DMAC on r8a7740.
This support reduce CPU duty when USB access.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add DMAEngine support for SDHI
Kuninori Morimoto [Mon, 25 Jun 2012 10:37:00 +0000 (03:37 -0700)]
ARM: shmobile: r8a7740: add DMAEngine support for SDHI

Current shdmac can support SDHI DMAC on r8a7740.
This support reduce CPU duty when SDHI access.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add DMAEngine support for FSI
Kuninori Morimoto [Mon, 25 Jun 2012 10:36:49 +0000 (03:36 -0700)]
ARM: shmobile: r8a7740: add DMAEngine support for FSI

Current shdmac can support FSI DMAC on r8a7740.
This support reduce CPU duty when sound was playback.

This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-soc-core' into renesas-r8a7740
Rafael J. Wysocki [Sat, 30 Jun 2012 13:04:01 +0000 (15:04 +0200)]
Merge branch 'renesas-soc-core' into renesas-r8a7740

* renesas-soc-core:
  ARM: shmobile: add common DMAEngine definitions
  ARM: shmobile: add common extra gpio functions

12 years agoARM: shmobile: add common DMAEngine definitions
Kuninori Morimoto [Mon, 25 Jun 2012 10:43:00 +0000 (03:43 -0700)]
ARM: shmobile: add common DMAEngine definitions

Current shmobile have DMAEngine specific settings on each CPU code,
but SH-ARM DMAC use same value.

This patch adds new dma-register.h header to share definitions
and reduce a waste of code on SH-ARM architecture.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: add common extra gpio functions
Kuninori Morimoto [Mon, 25 Jun 2012 10:41:09 +0000 (03:41 -0700)]
ARM: shmobile: add common extra gpio functions

Current gpio frame work doesn't have the method to control
just pull up/down/free, but some SH-ARM boards need such kind of operation.
This patch adds common extra gpio functions for SH-ARM.

But these functions should be replaced by correct
gpio function in the future.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh7372: remove unused sh7372_a3sp_init() on !CONFIG_PM
Kuninori Morimoto [Sun, 24 Jun 2012 20:00:13 +0000 (22:00 +0200)]
ARM: shmobile: sh7372: remove unused sh7372_a3sp_init() on !CONFIG_PM

767c0f3aed74be56f268709f5347e6c86d52b408
(PM / shmobile: Remove the stay_on flag from SH7372's PM domains)
commit removed sh7372_a3sp_init().
Now, there is no user for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7779: Route all interrupts to ARM
Phil Edworthy [Fri, 22 Jun 2012 23:12:09 +0000 (01:12 +0200)]
ARM: shmobile: r8a7779: Route all interrupts to ARM

Without this, the interrupts for I2C, VIN, GPIO, SDHC, HSCIF and
HPB-DMAC are sent to the SH processor.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-kzm9g' into renesas-board
Rafael J. Wysocki [Thu, 21 Jun 2012 10:05:52 +0000 (12:05 +0200)]
Merge branch 'renesas-kzm9g' into renesas-board

* renesas-kzm9g:
  ARM: shmobile: kzm9g: Support Real Time Clock
  ARM: shmobile: kzm9g: enable FSI-AK4648
  ARM: shmobile: sh73a0: add FSI clock

12 years agoARM: shmobile: kzm9g: Support Real Time Clock
Tetsuyuki Kobayashi [Wed, 20 Jun 2012 10:57:51 +0000 (12:57 +0200)]
ARM: shmobile: kzm9g: Support Real Time Clock

KZM-A9-GT board has RTC device r2025d at I2C channel 0
with slave address 0x64.

This patch enables reading and writing hardware real time clock on
KZM-A9-GT board. Interrupt is not yet supported.

How to test this patch using user space command.

Read RTC
 # hwclock -r

Copy system clock to RTC
 # hwclock -w

Shutdown and power off the board, and wait a while, then power on again.
Check RTC still keeps correct date.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable camera
Kuninori Morimoto [Tue, 12 Jun 2012 09:40:07 +0000 (02:40 -0700)]
ARM: shmobile: armadillo800eva: enable camera

This patch enable camera support on CON1

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: kzm9d: use late init machine hook
Kuninori Morimoto [Thu, 21 Jun 2012 05:41:34 +0000 (22:41 -0700)]
ARM: shmobile: kzm9d: use late init machine hook

Since commit 21cc1b7ede3cf456cf1d51f8a906093261f7c111 ("ARM: shmobile:
use machine specific hook for late init") suspend and CPU idle are not
initialized automatically anymore. Set shmobile_init_late() as the
machine late init hook to initialize them.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: kzm9g: use late init machine hook
Kuninori Morimoto [Thu, 21 Jun 2012 05:40:08 +0000 (22:40 -0700)]
ARM: shmobile: kzm9g: use late init machine hook

Since commit 21cc1b7ede3cf456cf1d51f8a906093261f7c111 ("ARM: shmobile:
use machine specific hook for late init") suspend and CPU idle are not
initialized automatically anymore. Set shmobile_init_late() as the
machine late init hook to initialize them.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: armadillo800eva: Use late init machine hook
Laurent Pinchart [Wed, 20 Jun 2012 10:53:25 +0000 (12:53 +0200)]
ARM: mach-shmobile: armadillo800eva: Use late init machine hook

Since commit 21cc1b7ede3cf456cf1d51f8a906093261f7c111 ("ARM: shmobile:
use machine specific hook for late init") suspend and CPU idle are not
initialized automatically anymore. Set shmobile_init_late() as the
machine late init hook to initialize them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoMerge branch 'renesas-sh73a0' into renesas-soc
Rafael J. Wysocki [Wed, 20 Jun 2012 10:48:31 +0000 (12:48 +0200)]
Merge branch 'renesas-sh73a0' into renesas-soc

* renesas-sh73a0:
  ARM: shmobile: sh73a0: add FSI clock

12 years agoARM: shmobile: kzm9g: enable FSI-AK4648
Kuninori Morimoto [Tue, 12 Jun 2012 09:44:03 +0000 (02:44 -0700)]
ARM: shmobile: kzm9g: enable FSI-AK4648

This patch enable sound playback/capture on CN9/CN10.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh73a0: add FSI clock
Kuninori Morimoto [Tue, 12 Jun 2012 09:43:40 +0000 (02:43 -0700)]
ARM: shmobile: sh73a0: add FSI clock

This patch is required from FSI sound driver

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: armadillo800eva: enable HDMI
Kuninori Morimoto [Tue, 12 Jun 2012 09:39:11 +0000 (02:39 -0700)]
ARM: shmobile: armadillo800eva: enable HDMI

This patch enable HDMI support on CON3.
And removed unnecessary CONFIG_SYSFS_DEPRECATED_xxx config.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add FSI-B (for HDMI) GPIO support
Kuninori Morimoto [Tue, 12 Jun 2012 09:37:16 +0000 (02:37 -0700)]
ARM: shmobile: r8a7740: add FSI-B (for HDMI) GPIO support

In order to enable FSI-B selection from platform board,
this patch adds its interface to GPIO framework.

This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add FSI parent clock support
Kuninori Morimoto [Tue, 12 Jun 2012 09:36:58 +0000 (02:36 -0700)]
ARM: shmobile: r8a7740: add FSI parent clock support

r8a7740 FSI can select its parent clock,
and its selection is dependent on platform board.

In order to enable FSI parent selection from platform board,
this patch adds its interface to clock framework.

This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add CEU clock support
Kuninori Morimoto [Tue, 12 Jun 2012 09:36:39 +0000 (02:36 -0700)]
ARM: shmobile: r8a7740: add CEU clock support

It is required from sh_mobile_ceu_camera driver.
This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add MERAM work-around
Kuninori Morimoto [Tue, 12 Jun 2012 09:36:21 +0000 (02:36 -0700)]
ARM: shmobile: r8a7740: add MERAM work-around

r8a7740 chip has lasting errata on MERAM buffer, and this patch adds
its work-around on setup-r8a7740.c
It solved CEU/VIO6C/2D-DMAC/VCP1/VPU5F/JPU/DISP memroy access error.

But MERAM driver can't control this issue,
since this work-around requires access to non-MERAM register address.
So, This it will be called as board specific code at this point.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add HDMI GPIO support
Kuninori Morimoto [Tue, 12 Jun 2012 09:35:58 +0000 (02:35 -0700)]
ARM: shmobile: r8a7740: add HDMI GPIO support

In order to enable HDMI GPIO selection from platform board,
this patch adds its interface to GPIO framework.

This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add HDMI clock support
Kuninori Morimoto [Tue, 12 Jun 2012 09:35:36 +0000 (02:35 -0700)]
ARM: shmobile: r8a7740: add HDMI clock support

It is required from sh_mobile_hdmi driver.
This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: r8a7740: add HDMI interrupt support
Kuninori Morimoto [Tue, 12 Jun 2012 09:35:15 +0000 (02:35 -0700)]
ARM: shmobile: r8a7740: add HDMI interrupt support

It is required from sh_mobile_hdmi driver.
This patch is based on v1.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: add missing GPIO IRQ configuration on mackerel
Guennadi Liakhovetski [Wed, 20 Jun 2012 10:15:59 +0000 (12:15 +0200)]
ARM: mach-shmobile: add missing GPIO IRQ configuration on mackerel

SDHI0 card-detect GPIO IRQ on mackarel currently works, because it is the
default configuration of IRQ26. However, we should not rely on this and
should configure the function explicitly.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: mach-shmobile: Fix build when SMP is enabled and EMEV2 is not enabled
Nobuhiro Iwamatsu [Wed, 20 Jun 2012 09:30:41 +0000 (11:30 +0200)]
ARM: mach-shmobile: Fix build when SMP is enabled and EMEV2 is not enabled

Build failed, when SMP is enabled and EMEV2 is not enabled.

arch/arm/mach-shmobile/built-in.o: In function `shmobile_platform_cpu_kill':
/home/iwamatsu/work/kernel/sh-2.6-devel/arch/arm/mach-shmobile/platsmp.c:62: undefined reference to `emev2_platform_cpu_kill'
arch/arm/mach-shmobile/built-in.o: In function `shmobile_smp_get_core_count':
/home/iwamatsu/work/kernel/sh-2.6-devel/arch/arm/mach-shmobile/platsmp.c:39: undefined reference to `emev2_get_core_count'
arch/arm/mach-shmobile/built-in.o: In function `shmobile_smp_prepare_cpus':
/home/iwamatsu/work/kernel/sh-2.6-devel/arch/arm/mach-shmobile/platsmp.c:53: undefined reference to `emev2_smp_prepare_cpus'
arch/arm/mach-shmobile/built-in.o: In function `platform_secondary_init':
/home/iwamatsu/work/kernel/sh-2.6-devel/arch/arm/mach-shmobile/platsmp.c:78: undefined reference to `emev2_secondary_init'
arch/arm/mach-shmobile/built-in.o: In function `boot_secondary':
/home/iwamatsu/work/kernel/sh-2.6-devel/arch/arm/mach-shmobile/platsmp.c:90: undefined reference to `emev2_boot_secondary

This is the cause by when EMEV2 is disabled, that the check by OF of EMEV2 is
performed in platsmp.c.
This patch revise what the function about EMEV2 may not be used in this file,
when EMEV2 is not enabled.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Acked-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh7372: bugfix: chclr_offset base
Kuninori Morimoto [Wed, 20 Jun 2012 09:30:32 +0000 (11:30 +0200)]
ARM: shmobile: sh7372: bugfix: chclr_offset base

chclr_write() will use (chan_reg + chclr_offset).
In sh7372 case, DMA1CHCLR is started from 0xfe008220,
and chan_reg is started from 0xfe008020 (= sh7372_dmae0_resources).
Thus, chclr_offset should be (0x220 - 0x20) instead of 0x220.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoARM: shmobile: sh73a0: bugfix: SY-DMAC number
Kuninori Morimoto [Wed, 20 Jun 2012 09:30:25 +0000 (11:30 +0200)]
ARM: shmobile: sh73a0: bugfix: SY-DMAC number

681e1b3eeb3606e06a7c4984e8058df84296f8bb
(ARM: mach-shmobile: sh73a0 DMA Engine support for SY-DMAC)
adds SY-DMAC, but it is 218, not 318

This patch is based on v2.0 manual

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
12 years agoregulator: extend the fixed dummy voltage regulator to accept voltage
Guennadi Liakhovetski [Tue, 19 Jun 2012 15:44:39 +0000 (17:44 +0200)]
regulator: extend the fixed dummy voltage regulator to accept voltage

Trivially extend the regulator_register_always_on() helper function to be
even more useful by adding a voltage parameter to it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoregulator: support multiple dummy fixed regulators
Guennadi Liakhovetski [Tue, 19 Jun 2012 15:43:56 +0000 (17:43 +0200)]
regulator: support multiple dummy fixed regulators

Currently regulator_register_fixed() uses a constant name to register a
fixed dummy regulator. This is sufficient in principle, since there is no
reason to register multiple such regulators. The user can simply supply all
consumers in one array and use it to initialise such a regulator. However,
in some cases it can be convenient to register multiple such regulators.
This is also a prerequisite for the upcoming patch, that will add a voltage
parameter to this function. The original function is provided as a wrapper
macro.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoLinux 3.5-rc3
Linus Torvalds [Sun, 17 Jun 2012 00:25:17 +0000 (17:25 -0700)]
Linux 3.5-rc3

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
Linus Torvalds [Sun, 17 Jun 2012 00:01:41 +0000 (17:01 -0700)]
Merge branch 'for-linus' of git://git./linux/kernel/git/mason/linux-btrfs

Pull btrfs compile warning fixes from Chris Mason.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
  Btrfs: cast devid to unsigned long long for printk %llu
  Btrfs: init old_generation in get_old_root

12 years agoMerge branch 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux...
Linus Torvalds [Sun, 17 Jun 2012 00:00:15 +0000 (17:00 -0700)]
Merge branch 'stable' of git://git./linux/kernel/git/cmetcalf/linux-tile

Pull arch/tile update from Chris Metcalf:
 "This one-line bug fix unbreaks glibc robust mutexes (among other
  things no doubt), from code merged in during the 3.5 merge window but
  which we had been running internally at Tilera for almost a year."

* 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
  tile: fix bug in get_user() for 4-byte values

12 years agoMerge tag 'fbdev-fixes-for-3.5-1' of git://github.com/schandinat/linux-2.6
Linus Torvalds [Sat, 16 Jun 2012 23:59:05 +0000 (16:59 -0700)]
Merge tag 'fbdev-fixes-for-3.5-1' of git://github.com/schandinat/linux-2.6

Pull fbdev fixes from Florian Tobias Schandinat:

 - two fixes for s3c-fb by Jingoo Han (including a fix for a potential
   division by zero)

 - a couple of randconfig fixes by Arnd Bergmann

 - a cleanup for bfin_adv7393fb by Emil Goode

* tag 'fbdev-fixes-for-3.5-1' of git://github.com/schandinat/linux-2.6:
  video: s3c-fb: fix possible division by zero in s3c_fb_calc_pixclk
  video: s3c-fb: clear SHADOWCON register when clearing hardware window registers
  drivers/tosa: driver needs I2C and SPI to compile
  drivers/savagefb: use mdelay instead of udelay
  video/console: automatically select a font
  video/ili9320: do not mark exported functions __devexit
  drivers/video: use correct __devexit_p annotation
  video: bfin_adv7393fb: Convert to kstrtouint_from_user

12 years agotile: fix bug in get_user() for 4-byte values
Chris Metcalf [Sat, 16 Jun 2012 20:53:06 +0000 (16:53 -0400)]
tile: fix bug in get_user() for 4-byte values

The definition of 32-bit values in the 64-bit tilegx architecture is that
they should be sign-extended regardless of whether they are considered
signed or unsigned by the compiler.  Accordingly, we need to use an
"ld4s" rather than "ld4u" to load and sign-extend for get_user().

This fixes glibc bug 14238 (see http://sourceware.org/bugzilla),
introduced during the 3.5 merge window.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>