arm: omap3: am35x: Convert emac to hwmod & disable hlt when open
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 of 2 patches 0 repliesNew
- v11 of 2 patches 0 repliesSuperseded
1 of 2 patches is in this archive. The cover letter announces 2.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/2 | arm: omap3: am35x: Disable hlt when using Davinci EMAC | +0 | 0 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Kevin Hilman |
|---|---|
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] arm: omap3: am35x: Convert emac to hwmod & disable hlt when open
Quoted 10 lines · Mark A. Greer
From: "Mark A. Greer" <[email protected]>
These patches convert the davinci emac support for the am35x SoC to use hwmod and add enable_hlt()/disable_hlt() calls to the
pm_runtimehooks for that driver.I have converted the
davinci_emacdriver to usepm_runtimebut I can't formally submit it yet since it requires some changes on the mach-davinci side that haven't happened yet. I will send it as an RFC in a reply to this thread.
I haven't seen any patches for the davinci runtime PM support, so I thought I would do a quick patch to show how easy it is to use some generic PM core code to manage clocks in runtime PM.
The patch below implments this on davinci but has only been boot tested on my ancient dm6446 EVM. Combined with Mark's RFC patch to convert davinci_emac to runtime PM, it was working fine on dm6446 to enable the emac clocks.
Kevin
Quoted 1 line
From
7a90e650ad8542b7f85076b58703e94bdc058562Mon Sep 17 00:00:00 2001
From: Kevin Hilman <[email protected]>
Date: Thu, 31 May 2012 09:59:53 -0700
Subject: [PATCH] ARM: davinci: add runtime PM support for clock management
Add runtime PM core support to davinci by using the pm_clk infrastructure of the PM core.
When runtime PM is enabled, the davinci runtime PM implementation will use the pm_clk layer to enable/disable clocks on demand. When runtime PM is disabled, the pm_clk core will automatically enable clocks when the driver is bound and disable clocks when the driver is unbound.
---
Applies on v3.4
arch/arm/mach-davinci/Makefile | 1 + arch/arm/mach-davinci/pm_domain.c | 70 +++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 arch/arm/mach-davinci/pm_domain.c
arch/arm/mach-davinci/Makefile +1 -0
@@ -39,3 +39,4 @@ obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o obj-$(CONFIG_CPU_FREQ) += cpufreq.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o obj-$(CONFIG_SUSPEND) += pm.o sleep.o +obj-$(CONFIG_HAVE_CLK) += pm_domain.o
arch/arm/mach-davinci/pm_domain.c new file +70 -0
70 lines not on this page · raw message
Signature · 1 line
1.7.9.2