[PATCH] mfd: Add PWM1 and PWM2 support to twl6030-pwm

2011-08-29 Thread Hemanth V
From: Hemanth V Date: Fri, 26 Aug 2011 10:49:29 +0530 Subject: [PATCH] Add PWM1 and PWM2 support to twl6030-pwm driver This patch adds support for PWM1/PWM2. TWL6030 PWM driver also supports Indicator LED PWM. Function pointers are defined for for init, enable, disable and configuration for both

Re: [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support

2011-08-29 Thread Munegowda, Keshava
On Tue, Aug 30, 2011 at 2:17 AM, Kevin Hilman wrote: > Kevin Hilman writes: > >> Keshava Munegowda writes: >> >>> From: Keshava Munegowda >>> >>> The usbhs core driver does not enable/disable the intefrace and >>> fucntional clocks; These clocks are handled by hwmod and runtime pm, >>> hence in

musb power issue on beagleboard-xM

2011-08-29 Thread Bob Liu
Hi, folks I tried to enable musb on beagleboard-xM. But it always failed with "insufficient available bus power". I am using linux-3.0 from linus git tree. Do i need to use a hub? But i heard that musb doesn't support hub. Thanks. # dmesg | grep 'musb' musb-hdrc: version 6.0, pio, host omap_d

Re: How to handle named resources with DT?

2011-08-29 Thread David Gibson
On Fri, Aug 26, 2011 at 04:13:15PM +0200, Cousson, Benoit wrote: > On 8/26/2011 12:58 PM, Arnd Bergmann wrote: > >On Friday 26 August 2011, David Gibson wrote: > >>Seriously, how many times do I have to say it? > > [...] > > >>Insisting that the names come from the DT is to mistakenly think of >

Re: [RFC PATCH v2 5/6] TI81XX: Add minimal hwmod data

2011-08-29 Thread Kevin Hilman
Hemant Pedanekar writes: > This patch adds minimum required hwmod data (e.g., UARTs) for bootup of TI81XX > devices (currently common data for TI816X and TI814X is added). > > Signed-off-by: Hemant Pedanekar I haven't looked at the details yet, but just tried to boot this using current mainline

Re: [PATCH 3/3] TI814X: Create board support and enable build for TI8148 EVM

2011-08-29 Thread Kevin Hilman
Hemant Pedanekar writes: > This patch adds minimal support and build configuration for TI8148 EVM. Also > adds support for low level debugging on UART1 console on the EVM. > > Signed-off-by: Hemant Pedanekar [...] > +static void __init ti8148_init_early(void) > +{ > + omap2_init_common_inf

Re: How to handle named resources with DT?

2011-08-29 Thread Mark Brown
On Sat, Aug 27, 2011 at 03:47:55PM -0600, Paul Walmsley wrote: > Certainly, from a kernel development perspective, one can decide to just > dump this kind of DT generation problem back on the hardware vendors. > But it seems more efficient and less error-prone to simply remove both > mapping t

Re: [RFC PATCH 2/6 V2] OMAP4: Adding the temperature sensor register set bit fields

2011-08-29 Thread Kevin Hilman
+Benoit Keerthy writes: > OMAP4460 specific temperature sensor register bit fields are added. ...and existing OMAP4 entries are renamed to OMAP4430. Please be sure to describe thoroughly *all* the changes that are being done in the changelog. > Signed-off-by: Keerthy > Cc: t...@atomide.com

Re: [RFC PATCH 1/6 V2] OMAP4: Clock: Associate clocks for OMAP temperature sensor

2011-08-29 Thread Kevin Hilman
Keerthy writes: > div_ts_ck feeds only the temperature sensor functional clock > and also has a clksel associated (for divider selection). Mapping this > as the functional clock for the temperature sensor in clkdev table, > so a clk_set_rate() in the driver would have the effect of changing the >

Re: [PATCH 3/3] OMAP2+: voltage: clean up error messages

2011-08-29 Thread Kevin Hilman
Hi Johan, Johan Hovold writes: > Clean up error messages by adding missing whitespace, reducing excessive > verbosity, and fixing a few language issues. > > Signed-off-by: Johan Hovold I've got a major voltage layer cleanup series in progess (and just posted a few series.) Would you care to r

Re: [PATCH 1/3] OMAP2+: pm: fix typos

2011-08-29 Thread Kevin Hilman
Hi Johan, Johan Hovold writes: > Fix typos in comment and error message. > > Signed-off-by: Johan Hovold Thanks for these PM-related cleanups. They're much appreciated. Patches 1 & 2 look fine. However, can you please repost with the linux-arm-kernel mailing list in Cc?All patches for u

Re: [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support

2011-08-29 Thread Kevin Hilman
Kevin Hilman writes: > Keshava Munegowda writes: > >> From: Keshava Munegowda >> >> The usbhs core driver does not enable/disable the intefrace and >> fucntional clocks; These clocks are handled by hwmod and runtime pm, >> hence insted of the clock enable/disable, the runtime pm APIS are >> use

Re: Issue with clock_gettime / clock_nanosleep APIs with high resolution timer on panda board

2011-08-29 Thread Sankara Muthukrishnan
One thing I forgot to mention: For my tests, I did modify the original cyclictest to check for return codes for the APIs (and errno's on failure and print them at the end) and both clock_gettime and clock_nanosleep returned 0 (success), when the actual failure happened. So, the APIs did not fail an

[PATCH] iommu: omap_iovmm: support non page-aligned buffers in iommu_vmap

2011-08-29 Thread Ohad Ben-Cohen
From: Laurent Pinchart omap_iovmm requires page-aligned buffers, and that sometimes causes omap3isp failures (i.e. whenever the buffer passed from userspace is not page-aligned). Remove this limitation by rounding the address of the first page entry down, and adding the offset back to the device

Re: [PATCH] mfd: Combine MFD_SUPPORT and MFD_CORE

2011-08-29 Thread Grant Likely
On Mon, Aug 29, 2011 at 12:41 PM, Luciano Coelho wrote: > From: Randy Dunlap > > Combine MFD_SUPPORT (which only enabled the remainder of the MFD > menu) and MFD_CORE.  This allows other drivers to select MFD_CORE > without needing to also select MFD_SUPPORT, which fixes some > kconfig unmet depe

Re: [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support

2011-08-29 Thread Kevin Hilman
Keshava Munegowda writes: > From: Keshava Munegowda > > The usbhs core driver does not enable/disable the intefrace and > fucntional clocks; These clocks are handled by hwmod and runtime pm, > hence insted of the clock enable/disable, the runtime pm APIS are > used. however,the port clocks are h

[PATCH] mfd: Combine MFD_SUPPORT and MFD_CORE

2011-08-29 Thread Luciano Coelho
From: Randy Dunlap Combine MFD_SUPPORT (which only enabled the remainder of the MFD menu) and MFD_CORE. This allows other drivers to select MFD_CORE without needing to also select MFD_SUPPORT, which fixes some kconfig unmet dependency warnings. Modeled after I2C kconfig. [Forward-ported to 3.1

Re: [PATCH 5/5 v4] mfd: omap: usb: Runtime PM support

2011-08-29 Thread Kevin Hilman
Todd Poynor writes: > On Fri, Aug 12, 2011 at 12:20:21PM +0530, Munegowda, Keshava wrote: >> On Wed, Aug 10, 2011 at 10:01 PM, Todd Poynor wrote: >> >> @@ -913,12 +598,15 @@ static int usbhs_enable(struct device *dev) >> >>                               (pdata->ehci_data->reset_gpio_port[1], 1);

Re: [PATCH 11/13] ARM: gpio: consolidate trivial gpiolib implementations

2011-08-29 Thread Kevin Hilman
Russell King - ARM Linux writes: > Consolidate 24 trivial gpiolib implementions out of mach/gpio.h > into asm/gpio.h. This is basically the include of asm-generic/gpio.h > and the definition of gpio_get_value, gpio_set_value, and gpio_cansleep > as described in Documentation/gpio.txt > > Signed-

Re: [PATCH 03/13] ARM: gpio: omap: convert drivers to use asm/gpio.h rather than mach/gpio.h

2011-08-29 Thread Kevin Hilman
Russell King - ARM Linux writes: > Signed-off-by: Russell King Acked-by: Kevin Hilman -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/5] OMAP4: PM: TWL6030: fix voltage conversion formula

2011-08-29 Thread Kevin Hilman
From: Patrick Titiano omap_twl_vsel_to_uv() and omap_twl_uv_to_vsel() functions used to convert voltages to TWL6030 SMPS commands (a.k.a "vsel") implement incorrect conversion formula. It uses legacy OMAP3 formula, but OMAP4 Power IC has different offset and voltage step: - Voltage Step is now 1

[PATCH 5/5] OMAP4: PM: TWL6030: add cmd register

2011-08-29 Thread Kevin Hilman
From: Nishanth Menon Without the command register, ON/ONLP/RET/OFF voltages are useless. and TWL will be unable to use these Signed-off-by: Nishanth Menon --- arch/arm/mach-omap2/omap_twl.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_t

[PATCH 4/5] OMAP4: PM: TWL6030: fix ON/RET/OFF voltages

2011-08-29 Thread Kevin Hilman
From: Patrick Titiano According to latest OMAP4430 Data Manual v0.4 dated March 2011: - Retention voltage shall be set to 0.83V. See tables 2.2, 2.4 and 2.6 in DM. This allows saving a little more power in retention states. - OPP100 IVA nominal voltage is 1.188V. See table 2.4 in DM. This

[PATCH 3/5] OMAP4: PM: TWL6030: address 0V conversions

2011-08-29 Thread Kevin Hilman
From: Nishanth Menon 0V conversions should be mapped to 0 as it is meant to denote off voltages. Signed-off-by: Nishanth Menon --- arch/arm/mach-omap2/omap_twl.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/oma

[PATCH 0/5] OMAP: voltage cleanup part E: TWL6030 PMIC fixes

2011-08-29 Thread Kevin Hilman
This series focuses on cleanups and fixes in support of the TWL6030 PMIC. Available in the pm-wip/voltdm_e branch of my linux-omap-pm tree git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git Applies on v3.1-rc3 + the part A, B, C & D series. Kevin Nishanth Menon (3): OMA

[PATCH 2/5] OMAP4: PM: TWL6030: fix uv to voltage for >0x39

2011-08-29 Thread Kevin Hilman
From: Nishanth Menon using 1.35V as a check is not correct, we know that beyond 0x39, voltages are non linear - hence use the conversion iff uV greater than that for 0x39. For example, with 709mV as the smps offset, the max linear is actually 1.41V(0x39vsel)! Signed-off-by: Nishanth Menon ---

Issue with clock_gettime / clock_nanosleep APIs with high resolution timer on panda board

2011-08-29 Thread Sankara Muthukrishnan
Hello everyone, Greetings. I have tried the following kernels and found "the problem" to occur on all of them with high resolution timer enabled (1) mainline stable 3.0.1 kernel but with Hemant Pedanekar's patch (http://www.spinics.net/lists/linux-omap/msg50742.html) and by disabling 32KHz Timer

[PATCH 0/7] OMAP: voltage cleanup part D: voltage domain

2011-08-29 Thread Kevin Hilman
This series focuses on cleanup of the remaining voltage domain layer (non-VC/VP code) Available in the pm-wip/voltdm_d branch of my linux-omap-pm tree git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git Applies on v3.1-rc3 + the part A, B & C series. Kevin Kevin Hilman (6)

[PATCH 2/7] OMAP3+: voltage: move/rename curr_volt from vdd_info into struct voltagedomain

2011-08-29 Thread Kevin Hilman
Track current nominal voltage as part of struct voltagedomain instead of omap_vdd_info, which will soon be removed. Also renames field from curr_volt to nominal_volt. No functional changes. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/vc.c |5 ++--- arch/arm/mach-omap2/voltage.

[PATCH 7/7] omap: voltage: add a stub header file for external/regulator use

2011-08-29 Thread Kevin Hilman
From: Tero Kristo Needed as some of the voltage layer functionality is accessed from the SMPS regulator driver. Signed-off-by: Tero Kristo Signed-off-by: Kevin Hilman --- arch/arm/plat-omap/include/plat/voltage.h | 20 1 files changed, 20 insertions(+), 0 deletions(-)

[PATCH 6/7] OMAP2+: VC: more registers are per-channel starting with OMAP5

2011-08-29 Thread Kevin Hilman
Starting with OMAP5, the following registers are per-channel and not common to a all VC channels: - SMPS I2C slave address - SMPS voltage register address offset - SMPS cmd/value register address offset - VC channel configuration register Move these from the channel-common struct into the per

[PATCH 4/7] OMAP3+: voltage: rename omap_voltage_get_nom_volt -> voltdm_get_voltage

2011-08-29 Thread Kevin Hilman
Use preferred voltdm_ naming for getting current nominal voltage. No functional changes. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/smartreflex-class3.c |2 +- arch/arm/mach-omap2/voltage.c| 14 -- arch/arm/mach-omap2/voltage.h|2 +- 3 file

[PATCH 5/7] OMAP3+: voltage: update nominal voltage in voltdm_scale() not VC post-scale

2011-08-29 Thread Kevin Hilman
Currently, the nominal voltage is updated in the VC post-scale function which is common to both scaling methods. However, this has readabiliy problems as this update is not where it might be expected. Instead, move the updated into voltdm_scale() upon a successful return of voltdm->scale() Signe

[PATCH 3/7] OMAP3+: voltdm: final removal of omap_vdd_info

2011-08-29 Thread Kevin Hilman
Remove last remaining member (volt_data) from omap_vdd_info into struct voltagedomain and removal remaining usage and reference to omap_vdd_info. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltage.c | 54 arch/arm/mach-omap2/voltage.h

[PATCH 1/7] OMAP3+: voltage: rename scale and reset functions using voltdm_ prefix

2011-08-29 Thread Kevin Hilman
Rename voltage scaling related functions to use voltdm_ prefix intead of omap_voltage_, and cleanup kerneldoc comments in the process. s/omap_voltage_scale_vdd/voltdm_scale/ s/omap_voltage_reset/voltdm_reset/ Also, in voltdm_reset() s/target_uvdc/target_volt/ to be consistent with naming througho

[PATCH 11/12] OMAP3+: VP: remove unused omap_vp_get_curr_volt()

2011-08-29 Thread Kevin Hilman
Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/vp.c | 34 -- arch/arm/mach-omap2/vp.h |1 - 2 files changed, 0 insertions(+), 35 deletions(-) diff --git a/arch/arm/mach-omap2/vp.c b/arch/arm/mach-omap2/vp.c index 29698ac..24020ea 100644 --- a/arch/arm/m

[PATCH 12/12] OMAP3+: VP: combine setting init voltage into common function

2011-08-29 Thread Kevin Hilman
combine VPCONFIG init voltage setup into common function and use from both vp_enable and from vp_forceupdate_scale(). NOTE: this patch changes the sequence of when the initVDD bit is cleared. The bit is now cleared immediately after it was written. Since only the rising edge of this bit has any a

[PATCH 10/12] OMAP3+: VP: update_errorgain(): return error if VP

2011-08-29 Thread Kevin Hilman
Add check for valid VP in omap_vp_update_errorgain() Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/vp.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/vp.c b/arch/arm/mach-omap2/vp.c index 3807620..29698ac 100644 --- a/arch/arm/mach-omap2/vp.

[PATCH 08/12] OMAP3+: VP: move voltage scale function pointer into struct voltagedomain

2011-08-29 Thread Kevin Hilman
Function pointer used for actual voltage scaling (e.g. VP force update or VC bypass) is moved from omap_vdd_info into struct voltagedomain, resulting in renames s/vdd->volt_scale/voltdm->scale/ No functional changes. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltage.c | 24 +++--

[PATCH 09/12] OMAP: VP: Explicitly mask VPVOLTAGE field

2011-08-29 Thread Kevin Hilman
From: Todd Poynor Reading the VPVOLTAGE field of PRM_VP_*_VOLTAGE registers currently relies on a u32 -> u8 conversion to mask off the FORCEUPDATEWAIT field in the upper bits. Make this explicit using the mask symbol already defined, added as a new field in struct omap_vp_common. Signed-off-by:

[PATCH 07/12] OMAP3+: VP: remove omap_vp_runtime_data

2011-08-29 Thread Kevin Hilman
Remove the "runtime" VP data in favor of direct programming of VP registers. The VP is in the PRM, which is in the wakeup powerdomain, so there is no need to keep the state dynamically. Fixes to original version from Nishanth Menon Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltage.h

[PATCH 06/12] OMAP3+: VP: create VP helper function for updating error gain

2011-08-29 Thread Kevin Hilman
Create new helper function in VP layer for updating VP error gain. Currently used during pre-scale for VP force update and VC bypass. TODO: determine if this can be removed from the pre-scale path and moved to VP enable path. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/vc.c | 19 ++---

[PATCH 05/12] OMAP3+: VP: move timing calculation/config into VP init

2011-08-29 Thread Kevin Hilman
Move VP timing calcluation (based on sys clock) and register programming into VP init. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltage.c | 22 -- arch/arm/mach-omap2/vp.c | 23 ++- 2 files changed, 22 insertions(+), 23 deletions(-) di

[PATCH 04/12] OMAP3+: VP: move SoC-specific sys clock rate retreival late init

2011-08-29 Thread Kevin Hilman
Add sys clock name and rate to struct voltage domain. SoC specific voltagedomain init code initializes sys clock name. After clock framework is initialized, voltage late init will then use use the sys_clk rate to calculate the various timing that depend on that rate. Signed-off-by: Kevin Hilman

[PATCH 03/12] OMAP3+: VP: struct omap_vp_common: replace shift with __ffs(mask)

2011-08-29 Thread Kevin Hilman
In struct omap_vp_common, the shift value can be derived from the mask value by using __ffs(), so remove the shift value for the various VPCONFIG bitfields, and use __ffs() in the code for the shift value. While here, rename field names in kerneldoc comment to match actual field names in structure

[PATCH 02/12] OMAP3+: voltage: remove unneeded debugfs interface

2011-08-29 Thread Kevin Hilman
Remove read-only debugfs interface to VP values. Most of the values are init-time only and never change. Current voltage value should be retreived from the (eventual) regulator framework interface to the voltage domain. Fixes to original version provided by Nishanth Menon Signed-off-by: Kevin

[PATCH 01/12] OMAP3+: VP: cleanup: move VP instance into voltdm, misc. renames

2011-08-29 Thread Kevin Hilman
- move VP instance struct from vdd_info into struct voltage domain - remove _data suffix from structure name - rename vp_ prefix from vp_common field: accesses are now vp->common - move vp_enabled bool from vdd_info into VP instance - remove remaining references to omap_vdd_info No functional chan

[PATCH 00/12] OMAP: voltage cleanup part C: VP cleanup

2011-08-29 Thread Kevin Hilman
This series focuses on cleanup and better abstraction in the voltage processor (VP) layer. Available in the pm-wip/voltdm_c branch of my linux-omap-pm tree git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git Applies on v3.1-rc3 + the part A & B series. Kevin Kevin Hilman (1

[PATCH 02/10] OMAP3+: VC: cleanup PMIC register address configuration

2011-08-29 Thread Kevin Hilman
- support both voltage register address and command register address for each VC channel - add fields for voltage register address (volra) and command register address (cmdra) to struct omap_vc_channel - use VC/VP register access read/modify/write helper - remove volra_shift field (use __ffs(ma

[PATCH 01/10] OMAP3+: VC: cleanup i2c slave address configuration

2011-08-29 Thread Kevin Hilman
- Add an i2c_slave_address field to the omap_vc_channel - use VC/VP read/modify/write helper instead of open-coding - remove smps_sa_shift, use __ffs(mask) for shift value - I2C addresses 10-bit, change size to u16 Special thanks to Shweta Gulati for suggesting the use of __ffs(x) instead of ffs(

[PATCH 00/10] OMAP: voltage cleanup part B: VC cleanup

2011-08-29 Thread Kevin Hilman
This series focuses on cleanup and better abstraction in the voltage controller (VC) layer. Available in the pm-wip/voltdm_b branch of my linux-omap-pm tree git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git Applies on v3.1-rc3 + the part A series (pm-wip/voltdm_a branch) Ke

[PATCH 09/22] OMAP2: add voltage domains and connect to powerdomains

2011-08-29 Thread Kevin Hilman
Create basic voltagedomains for OMAP2 and associate OMAP2 powerdomains with the newly created voltage domains. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/Makefile |3 +- arch/arm/mach-omap2/io.c |2 + arch/arm/mach-omap2/powerdomains2xxx_dat

[PATCH 10/22] OMAP3: powerdomain data: add voltage domains

2011-08-29 Thread Kevin Hilman
Add voltage domain name to indicate which voltagedomain each powerdomain is in. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/powerdomains2xxx_3xxx_data.c |2 ++ arch/arm/mach-omap2/powerdomains3xxx_data.c | 16 2 files changed, 18 insertions(+), 0 deletions(-)

[PATCH 22/22] OMAP3+: voltage: convert to PRM register access functions

2011-08-29 Thread Kevin Hilman
Convert VC/VP register access to use PRM VC/VP accessor functions. In the process, move the read/write function pointers from vdd_info into struct voltagedomain. No functional changes. Additional cleanup: - remove prm_mod field from VC/VP data structures, the PRM register access functions kno

[PATCH 21/22] OMAP2+: PRM: add register access functions for VC/VP

2011-08-29 Thread Kevin Hilman
On OMAP3+, the voltage controller (VC) and voltage processor (VP) are inside the PRM. Add some PRM helper functions for register access to these module registers. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/prm2xxx_3xxx.c | 15 +++ arch/arm/mach-omap2/prm2xxx_3xxx.h |8

[PATCH 08/22] OMAP2+: powerdomain: add voltagedomain to struct powerdomain

2011-08-29 Thread Kevin Hilman
Each powerdomain is associated with a voltage domain. Add an entry to struct powerdomain where the enclosing voltagedomain can be referenced. Modeled after similar relationship between clockdomains and powerdomains. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/powerdomain.h |7 +

[PATCH 07/22] OMAP3+: voltage: add scalable flag to voltagedomain

2011-08-29 Thread Kevin Hilman
Add a 'bool scalable' flag to the struct powerdomain and set it for the scalable domains on OMAP3 and OMAP4. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltage.c |3 +++ arch/arm/mach-omap2/voltage.h |2 ++ arch/arm/mach-omap2/voltagedomains3xxx_d

[PATCH 18/22] OMAP2+: VC: support PMICs with separate voltage and command registers

2011-08-29 Thread Kevin Hilman
The VC layer can support PMICs with separate voltage and command registers by putting the different registers in the PRM_VC_SMPS_VOL_RA and PRCM_VC_SMPS_CMD_RA registers respectively. The PMIC data must supply at least a voltage register address (volt_reg_addr). The command register address (cmd_

[PATCH 20/22] OMAP3+ VP: replace transaction done check/clear with VP ops

2011-08-29 Thread Kevin Hilman
Replace the VP tranxdone check/clear with helper functions from the PRM layer. In the process, remove prm_irqst_* voltage structure fields for IRQ status checking which are no longer needed. Since these reads/writes of the IRQ status bits were the only PRM accesses that were not to VC/VP register

[PATCH 19/22] OMAP2+: add PRM VP functions for checking/clearing VP TX done status

2011-08-29 Thread Kevin Hilman
Add SoC specific PRM VP helper functions for checking and clearing the VP transaction done status. Longer term, these events should be handled by the forthcoming PRCM interrupt handler. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/prm2xxx_3xxx.c | 41 ++ arc

[PATCH 17/22] OMAP2+: voltage: split out voltage processor (VP) code into new layer

2011-08-29 Thread Kevin Hilman
This patch is primarily a move of VP specific code from voltage.c into its own code in vp.c and adds prototypes to vp.h No functional changes, except debugfs... VP debugfs moved to 'vp' subdir of /voltage/ and 'vp_' prefixes removed from all debugfs filenames. Signed-off-by: Kevin Hilman --- a

[PATCH 16/22] OMAP2+: voltage: enable VC bypass scale method when VC is initialized

2011-08-29 Thread Kevin Hilman
VC is initialized first, set default scaling method to VC bypass. If/when VP is initialized, default scaling method will be changed to VP force-update. Enabling VC bypass as default as soon as VC is initialized allows for VC bypass scaling to work when no VP is configured/initialized for a given v

[PATCH 15/22] OMAP2+: voltage: move VC into struct voltagedomain, misc. renames

2011-08-29 Thread Kevin Hilman
Move the VC instance struct from omap_vdd_info into struct voltagedomain. While moving, perform some misc. renames for readability. No functional changes. Summary of renames: - rename omap_vc_instance to omap_vc_channel, since there is only one instance of the VC IP and this actually represents

[PATCH 14/22] OMAP2+: voltage: split voltage controller (VC) code into dedicated layer

2011-08-29 Thread Kevin Hilman
As part of the voltage layer cleanup, split out VC specific code into a dedicated VC layer. This patch primarily just moves VC code from voltage.c into vc.c, and adds prototypes to vc.h. No functional changes. For readability, each function was given a local 'vc' pointer: struct omap_vc_ins

[PATCH 12/22] OMAP2+: powerdomain: add voltage domain lookup during register

2011-08-29 Thread Kevin Hilman
When a powerdomain is registered, lookup the voltage domain by name and keep a pointer to the containing voltagedomain in the powerdomain structure. Modeled after similar method between powerdomain and clockdomain layers. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/powerdomain.c | 21

[PATCH 13/22] OMAP2+: voltage: keep track of powerdomains in each voltagedomain

2011-08-29 Thread Kevin Hilman
When a powerdomain is registered and it has an associated voltage domain, add the powerdomain to the voltagedomain using voltdm_add_pwrdm(). Also add voltagedomain iterator helper functions to iterate over all registered voltagedomains and all powerdomains associated with a voltagedomain. Modeled

[PATCH 05/22] OMAP3: voltage: rename "mpu" voltagedomain to "mpu_iva"

2011-08-29 Thread Kevin Hilman
This voltage domain (a.k.a. VDD1) contains both the MPU and the IVA, so rename appropriately. Also fixup any users of the "mpu" name to use "mpu_iva" Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c|4 ++-- arch/arm/mach-omap2/omap_twl.c|2 +

[PATCH 06/22] OMAP3: voltagedomain data: add wakeup domain

2011-08-29 Thread Kevin Hilman
Add wakeup voltage domain so that the wakeup powerdomain can have an associated powerdomain. Note that the scalable flat is not set for the this voltagedomain, so it will not be fully initialized like scalable voltage domains. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltagedomains3x

[PATCH 11/22] OMAP4: powerdomain data: add voltage domains

2011-08-29 Thread Kevin Hilman
From: Benoit Cousson Add voltage domain name to indicate which voltagedomain each powerdomain is in. The fixed voltage domain like ldo_wakeup for emu and wkup power domain is added too. Update the TI copyright date to 2011. Signed-off-by: Benoit Cousson Cc: Paul Walmsley [khil...@ti.com]: re

[PATCH 04/22] OMAP2+: voltage: start towards a new voltagedomain layer

2011-08-29 Thread Kevin Hilman
Start cleaning up the voltage layer to have a voltage domain layer that resembles the structure of the existing clock and power domain layers. To that end: - move the 'struct voltagedomain' out of 'struct omap_vdd_info' to become the primary data structure. - convert any functions taking a poi

[PATCH 03/22] OMAP2+: voltage: move prm_irqst_reg from VP into voltage domain

2011-08-29 Thread Kevin Hilman
The prm_irqst_reg is not part of the VP. Move it up into the common voltage domain struct. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/voltage.c | 15 +++ arch/arm/mach-omap2/voltage.h |1 + arch/arm/mach-omap2/voltagedomains3xxx_data.c

[PATCH 02/22] OMAP2+: voltage: move PRCM mod offets into VC/VP structures

2011-08-29 Thread Kevin Hilman
Eliminate need for global variables for the various PRM module offsets by making them part of the VP/VC common structures Eventually, these will likely be moved again, or more likely removed when VP/VC code is isolated, but for now just getting rid of them as global variabes so that the voltage do

[PATCH 01/22] OMAP2+: hwmod: remove unused voltagedomain pointer

2011-08-29 Thread Kevin Hilman
The voltage domain pointer currently in struct omap_hwmod is not used and does not belong here. Instead, voltage domains will be associated with powerdomains in forthcoming patches. Acked-by: Paul Walmsley Signed-off-by: Kevin Hilman --- arch/arm/plat-omap/include/plat/omap_hwmod.h |1 - 1

[PATCH 00/22] OMAP: voltage cleanup part A

2011-08-29 Thread Kevin Hilman
This is the first phase of the OMAP voltage layer cleanup. The primary goal is to cleanup/reorganize data structures to facilitate splitting apart the voltage processor (VP) and voltage controller (VC) into separate layers. Based on v3.1-rc3 Series available in branch pm-wip/voltdm_a in my linux

Re: How to handle named resources with DT?

2011-08-29 Thread Arnd Bergmann
On Sunday 28 August 2011, David Gibson wrote: > > Right, and I guess we can simply ignore DMA and ioport resources because > > they > > are extremely rare, right? > > Well, remember it's where resources can appear in the DT node that > matters, not what the types are in the platform device. iopo

Re: How to handle named resources with DT?

2011-08-29 Thread Arnd Bergmann
On Saturday 27 August 2011, Paul Walmsley wrote: > On Sat, 27 Aug 2011, Arnd Bergmann wrote: > > > Right, and I guess we can simply ignore DMA and ioport resources because > > they are extremely rare, right? > > DMA resources are quite widely used. > > For example, looking at the SoCs with some

[PATCH 00/22] OMAP: voltage cleanup part A

2011-08-29 Thread Kevin Hilman
This is the first phase of the OMAP voltage layer cleanup. The primary goal is to cleanup/reorganize data structures to facilitate splitting apart the voltage processor (VP) and voltage controller (VC) into separate layers. Benoit Cousson (1): OMAP4: powerdomain data: add voltage domains Kevin

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Alan Stern
On Mon, 29 Aug 2011, Ming Lei wrote: > Suppose HC can see the old value in hw_token, which has the ACTIVE bit clear. > > The qtd transaction will not be executed until the new token is > flushed into memory. > From view of CPU, the irq is still be delayed because ioc irq is generated > after the

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Mark Salter
On Mon, 2011-08-29 at 23:55 +0800, Ming Lei wrote: > If writing to coherent memory can't reach physical memory immediately on > other ARCHs, the problem can still happen on these ARCHs. But I am > not sure if there are these kind of ARCHs except for ARM. If there is write buffering which prevents

Re: [RFC 1/2] OMAP3+: voltage / oscillator parameter segregation

2011-08-29 Thread Kevin Hilman
Vishwanath Sripathy writes: [...] >> >> diff --git a/arch/arm/mach-omap2/opp3xxx_data.c b/arch/arm/mach- >> omap2/opp3xxx_data.c >> >> index d95f3f9..b5d8294 100644 >> >> --- a/arch/arm/mach-omap2/opp3xxx_data.c >> >> +++ b/arch/arm/mach-omap2/opp3xxx_data.c >> >> @@ -26,6 +26,16 @@ >> >>  #incl

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Ming Lei
Hi, On Mon, Aug 29, 2011 at 9:57 PM, Alan Stern wrote: > On Mon, 29 Aug 2011, Russell King - ARM Linux wrote: > >> > You know better than I do what is needed to resolve the ordering issue. >> > However, contrary to what the original patch description said, this >> > isn't entirely a matter of mak

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Ming Lei
Hi, On Mon, Aug 29, 2011 at 11:03 PM, Alan Stern wrote: > On Mon, 29 Aug 2011, Ming Lei wrote: > >> IMO, the dummy has been linked into queue pointed by qh->hw->hw_qtd_next, >> so EHCI will fetch dummy qtd and execute the transaction and will not have >> any delay on the transaction. >> >> Let me

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Alan Stern
On Mon, 29 Aug 2011, Ming Lei wrote: > IMO, the dummy has been linked into queue pointed by qh->hw->hw_qtd_next, > so EHCI will fetch dummy qtd and execute the transaction and will not have > any delay on the transaction. > > Let me explain the problem again: On ARM, the wmb() before > 'dummy->hw

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Ming Lei
Hi, On Mon, Aug 29, 2011 at 1:00 AM, Alan Stern wrote: > On Sun, 28 Aug 2011, Ming Lei wrote: > >> > I've been following this whole discussion.  I didn't understand the >> > idea behind the original patch, and I don't understand this.  What >> > reason is there for adding a memory barrier after t

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Alan Stern
On Mon, 29 Aug 2011, Russell King - ARM Linux wrote: > > You know better than I do what is needed to resolve the ordering issue. > > However, contrary to what the original patch description said, this > > isn't entirely a matter of making the write visible to the host > > controller: No doubt in

[RFC PATCH-V2 2/4] AM335X: Update common OMAP machine specific sources

2011-08-29 Thread hvaibhav
From: Afzal Mohammed This patch updates the common machine specific source files for support for AM335x with cpu type, macros for identification of AM335X device. Signed-off-by: Vaibhav Hiremath Signed-off-by: Afzal Mohammed --- arch/arm/mach-omap2/clock3xxx_data.c |3 +++ arch/arm/

[RFC PATCH-V2 1/4] AM335X: Update common omap platform files

2011-08-29 Thread hvaibhav
From: Afzal Mohammed This patch updates the common platform files with AM335X device support. The approach taken in this patch is, AM33XX device will be considered as OMAP3 variant, and a separate SoC class created for AM33XX family of devices with a subclass type for AM335X device which is newl

[RFC PATCH-V2 4/4] AM335X: Add low level debugging support

2011-08-29 Thread hvaibhav
From: Afzal Mohammed Add support for low level debugging on AM335X EVM. Currently only support for UART1 console, which is used on AM335X EVM is added. Signed-off-by: Vaibhav Hiremath Signed-off-by: Afzal Mohammed --- arch/arm/mach-omap2/include/mach/debug-macro.S | 22 +

[RFC PATCH-V2 3/4] AM335X: Create board support and enable build for AM335XEVM

2011-08-29 Thread hvaibhav
From: Afzal Mohammed This patch adds minimal support and build configuration for AM335X EVM. Signed-off-by: Vaibhav Hiremath Signed-off-by: Afzal Mohammed --- arch/arm/mach-omap2/Kconfig |5 +++ arch/arm/mach-omap2/Makefile |2 + arch/arm/mach-omap2/board-am335xevm.

[RFC PATCH-V2 0/4] Introducing TI's New SoC/board AM335XEVM

2011-08-29 Thread hvaibhav
From: Vaibhav Hiremath This patch set adds support for AM335x device having Cortex-A8 MPU. AM335X is treated as another OMAP3 variant, where, along with existing cpu class OMAP34XX, new cpu class AM33XX is created and the respective type is AM335X, which is newly added device in the family. This

RE: [PATCH v5 01/22] gpio/omap: remove dependency on gpio_bank_count

2011-08-29 Thread DebBarma, Tarun Kanti
[...] > > void omap2_gpio_prepare_for_idle(int off_mode) > > { > > - int i, c = 0; > > - int min = 0; > > - > > - if (cpu_is_omap34xx()) > > - min = 1; > > + int c = 0; > > + struct gpio_bank *bank; > > > > - for (i = min; i< gpio_bank_count; i++) { > > - struct

RE: Booting hangs with updated linux-omap kernel on OMAP3EVM

2011-08-29 Thread Ravi, Deepthy
Hi Govindraj, With this commit added, it is booting up.Thanks for the info. Thanks, Deepthy Ravi. From: Govindraj [govindraj...@gmail.com] Sent: Monday, August 29, 2011 4:59 PM To: Ravi, Deepthy Cc: linux-omap@vger.kernel.org Subject: Re: Booting hangs with

Re: Booting hangs with updated linux-omap kernel on OMAP3EVM

2011-08-29 Thread Govindraj
On Mon, Aug 29, 2011 at 4:18 PM, Ravi, Deepthy wrote: > Hi, > I tried booting OMAP3EVM with the updated linux-omap kernel . > The last commit details on the kernel are : > Author: Tony Lindgren > commit b148d763841161894ed6629794064065a834aa2b > Linux-omap rebuilt: Updated to use omap_sdrc_init >

Re: Booting hangs with updated linux-omap kernel on OMAP3EVM

2011-08-29 Thread Kishore Kadiyala
On Mon, Aug 29, 2011 at 4:18 PM, Ravi, Deepthy wrote: > Hi, > I tried booting OMAP3EVM with the updated linux-omap kernel . > The last commit details on the kernel are : > Author: Tony Lindgren > commit b148d763841161894ed6629794064065a834aa2b > Linux-omap rebuilt: Updated to use omap_sdrc_init >

Booting hangs with updated linux-omap kernel on OMAP3EVM

2011-08-29 Thread Ravi, Deepthy
Hi, I tried booting OMAP3EVM with the updated linux-omap kernel . The last commit details on the kernel are : Author: Tony Lindgren commit b148d763841161894ed6629794064065a834aa2b Linux-omap rebuilt: Updated to use omap_sdrc_init It hangs at one point. Following is the boot log, Texas Instrume

RE: [PATCH 6/6] usb: musb: Add support for ti81xx platform

2011-08-29 Thread Gupta, Ajay Kumar
Hi, > > > we really need to find a better way to handle this :-( > > > > How about passing the mode info from musb_config (musb->config- > >fifo_mode), > > same way as musb->config->fifo_cfg > > not sure... Ideally we wouldn't really need those fifo tables, Yes, if all the board files provide the

Re: [PATCHv6 2/3] OMAP: I2C: Remove the reset in the init path

2011-08-29 Thread Shubhrajyoti
On Saturday 27 August 2011 04:41 AM, Kevin Hilman wrote: Shubhrajyoti D writes: - The reset in the driver at init is not needed anymore as the hwmod framework takes care of reseting it. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time

Re: [PATCHv6 1/3] OMAP: I2C: Reset support

2011-08-29 Thread Shubhrajyoti
On Saturday 27 August 2011 04:36 AM, Kevin Hilman wrote: Shubhrajyoti D writes: Under some error conditions the i2c driver may do a reset. Adding a reset field and support in the device-specific code. Signed-off-by: Shubhrajyoti D Needs update/rebase to apply against my for_3.2/i2c-cleanup b

Re: [PATCH] usb: ehci: fix update qtd->token in qh_append_tds

2011-08-29 Thread Russell King - ARM Linux
On Sun, Aug 28, 2011 at 09:51:10PM -0400, Alan Stern wrote: > Hmmm. Although the semantics of the various mb() macros were > originally defined only for inter-CPU synchronization, I believe they > are also supposed to work for guaranteeing the order of accesses to > DMA-coherent memory. If that's

Re: [PATCH 6/6] usb: musb: Add support for ti81xx platform

2011-08-29 Thread Felipe Balbi
Hi, On Mon, Aug 29, 2011 at 11:01:54AM +0530, Gupta, Ajay Kumar wrote: > > > diff --git a/drivers/usb/musb/musb_core.c > > > b/drivers/usb/musb/musb_core.c index 20a2873..07f3faf 100644 > > > --- a/drivers/usb/musb/musb_core.c > > > +++ b/drivers/usb/musb/musb_core.c > > > @@ -1014,7 +1014,9 @@ st

  1   2   >