- 12 Sep, 2008 32 commits
-
-
Felipe Balbi authored
From 818dc8ebd261cdc59670fe1580248ad47f18a1de Mon Sep 17 00:00:00 2001 From: Felipe Balbi <felipe.balbi@nokia.com> Date: Fri, 12 Sep 2008 21:07:09 +0300 Subject: [PATCH] omap: usb: ehci: fix usb of hcd->regs hcd->regs should be initialized by ioremaping hcd->rsrc_start and hcd->rsrc_len. Fix it for ehci-omap.c. Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Felipe Contreras authored
This was suggested by Mans Rullgard, otherwise it doesn't work. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
At some point while adding omap2 support, IS_OMAP_CLASS broke as pointed out by Russell King. Fix this to work as it used to work, and modify omap24xx and omap34xx detection to work accordingly. Also rename OMAP3430_REV_ES2_2 to OMAP3430_REV_ES3_0. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
Also add omap_type() to detect between GP/EMU/HS omap, and remove unnecessary variable class. This is to make room for further clean-up of omap processor detection. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
As pointed out by Felipe Balbi. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
At this point, all OMAP2/3 clocks should be associated with a clockdomain. Warn in clk_register() if any are missing a clockdomain Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
The OMAP3 arch clock init code already calls omap2_init_clk_clkdm(), so there is no reason to call it again in the per-clock init. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Every OMAP2/3 clock will need to be associated with a clockdomain. However, the "virt_prcm_set" clock has no clockdomain, since it is a virtual clock without any hardware referents. So, create a new clockdomain, "virt_clkdm", for this clock. This clockdomain should be reusable for OMAP3 virtual clock nodes. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Fill in clockdomains for all remaining clocks. On OMAP2, these mostly involve IVA and DSP clocks; on OMAP3, these mostly involve some core_l4_clkdm devices and the secure peripherals. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Mark each DPLL clock as belonging to their respective DPLL clockdomain. cf. 34xx TRM Table 4-27 (among other references). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Each DPLL exists in its own powerdomain (cf 34xx TRM figure 4-18) and clockdomain; so, create powerdomain and clockdomain structures for them. These are used in a following patch for DPLL-related clocks. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Remove wkup_clkdm, as it has been completely replaced by prm_clkdm and cm_clkdm. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Mark CM clocks with no clockdomain as belonging to the CM clockdomain. References for the OMAP3xxx clocks: OMAP34xx Multimedia Device Silicon Revision 3.0 Version I TRM Figure 4-13: - sys_ck Figure 4-35: - sys_clkout2 Figure 4-37: - corex2_fck, core_ck, dss_tv_fck Figure 4-38: - omap_96m_alwon_fck Figure 4-39: - corex2_fck, cm_96m_fck, omap_96m_fck, omap_54m_fck, omap_12m_fck, dpll1_fck, dpll2_fck, rm_ick, dss_tv_fck Section 4.7.3.2: - omap_96m_alwon_fck, omap_96m_fck, omap_48m_fck OMAP34xx Multimedia High Security (HS) Device Silicon Revision 3.0 Security Addendum Version B TRM Figure 3-19: - cpefuse_fck Table 3-57: - dss_tv_fck Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Convert existing wkup_clkdm clocks that should be in the CM clockdomain to cm_clkdm. (A later patch will add CM clockdomain associations for unassociated clocks.) References: OMAP2420 Multimedia Processor Silicon Revision 2.1.1, 2.2 TRM Version Q Figure 5-9 - func_54m_ck, core_ck, func_96m_ck, func_48m_ck, func_12m_ck OMAP34xx Multimedia Device Silicon Revision 3.0 Version I TRM Figure 4-35 - sys_clkout2 Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Some PRM clocks are missing clockdomain assignments; add them. Also, in OMAP2xxx clock tree, standardize the name for wdt1_osc_ck. References for the OMAP2xxx clocks: OMAP2420 Multimedia Processor Silicon Revision 2.1.1, 2.2 TRM Version Q Table 18-41: - wdt1_osc_ck References for the OMAP3xxx clocks: OMAP34xx Multimedia Device Silicon Revision 3.0 Version I TRM Figure 4-13: - sys_clkout1, Table 4-37: - sys_ck Table 4-38: - omap_32k_fck, osc_sys_ck, Figure 4-56: - sr1_fck, sr2_fck Figure 4-57: - omap_96m_alwon_fck Section 4.7.7.13: - sr1_fck, sr2_fck OMAP34xx Multimedia High Security (HS) Device Silicon Revision 3.0 Security Addendum Version B TRM Table 2-5: - usim_fck Figure 3-29: - secure_32k_fck, gpt12_fck, wdt1_fck Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Convert existing wkup_clkdm clocks that should be in the PRM clockdomain to prm_clkdm. (A later patch will add PRM clockdomain associations for unassociated clocks.) References for the OMAP2xxx clocks: OMAP2420 Multimedia Processor Silicon Revision 2.1.1, 2.2 TRM Version Q Figure 4-11: - alt_ck Figure 5-7: - func_32k_ck, osc_ck, sys_ck Figure 5-8 (assumes that "Level 0" = PRM) - dpll_ck, apll96_ck, apll54_ck, func_54m_ck Section 5.4.1.1: - sys_clkout_src, sys_clkout Section 29.3.1.1: - gpios_fck, mpu_wdt_fck, mpu_wdt_ick References for the OMAP3xxx clocks: OMAP34xx Multimedia Device Silicon Revision 3.0 Version I TRM Figure 4-54: - gpt1_fck, wkup_32k_fck, wdt2_fck, wkup_l4_fck, omap_32ksync_ick, gpt1_ick Section 25.3.1.1.3: - gpio1_fck, gpio1_ick OMAP34xx Multimedia High Security (HS) Device Silicon Revision 3.0 Security Addendum Version B TRM Table 2-5: - usim_ick Figure 3-29: - wdt1_ick, gpt12_ick Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Paul Walmsley authored
Add clockdomains for the CM and PRM. These will ultimately replace the "wkup_clkdm", which appears to not actually exist on the hardware. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
The mod_reg_security() function that is used to stack modules has been removed: "LSMs wishing to stack capability as a secondary module should do so explicitly". Thus, let's remove the possibility to stack in the init function. The functionality could probably be reintroduced later if somebody has time to implement it. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
A previous commit split the ptrace member into two. Thus we need to update the lowmem module accordingly. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
This is a patch that will reintroduce the old sysctl lowmem variables as read only values in /proc/sys/vm. Some parts of the userland (at least libosso) are reading these and it would probably greatly ease the transition to the new scheme with memory limits in pages. We can revert this ugly patch when userland has moved to the new scheme. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
The unregister_security() and mod_unreg_security() functions were removed because the upstream developers believe that it should not be possible to remove security modules, "It is used only by out-of-tree modules, which are often binary-only, illegal, abusive of the API and dangerous, e.g. silently re-vectoring SELinux." Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
These functions now require an additional argument, so let's add it. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
Currently, the lowmem module doesn't even compile because the kernel API has changed. This patch will unbreak the sysfs related code. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
This "changed" variable is kind of deprecated. We used to have a spinlock [which was later deemed unecessary] around the first if clause in the *_watermark_state() functions; the variable was needed in order to move the operation in the second if clause out of the lock section. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
The purpose of this patch is to get rid of the lame percentage calculations in lowmem.c. Currently, the limits (measured in pages) are calculated from percentages every time somebody from userspace requests some memory. With this patch, the limits are in pages and furthermore, they are specified as minimum amount of "free pages", instead of as maximum amount of "used pages". "Free" means free pages or such pages that can easily be freed by the VM system. This patch changes the names of the lowmem sysctl limits in /proc/sys/vm: lowmem_deny_watermark => lowmem_deny_watermark_pages lowmem_notify_low => lowmem_notify_low_pages lowmem_notify_high => lowmem_notify_high_pages The following read only value disappears: lowmem_used_pages The following read only value is introduced: lowmem_free_pages The old value can be calculated from userspace with the following pseudocode: if lowmem_free_pages < lowmem_allowed_pages lowmem_used_pages = lowmem_allowed_pages - lowmem_free_pages else lowmem_used_pages = 0; Note that the value of lowmem_free_pages is only accurate when the system is rather low on memory (otherwise it's a bit too pessimistic), this was true also for the lowmem_used_pages metric. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Viktor Rosendahl authored
As far as I can understand, using proc_dointvec_minmax() instead of proc_dointvec only makes sense if you supply the min and/or max values in the extra1 and extra2 fields of the struct. Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Henrik Saari authored
Security: Kernel OOM-killer and allocation denial use different rules Original patch created by Leonid Moiseichuk <leonid.moiseichuk@nokia.com> Fixes the issue with the oom killer and lowmem module being inconsistent; processes that are important enough to be protected from the oom killer should not be denied memory either. Signed-off-by: Henrik Saari <henrik.saari@nokia.com> Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
David Brownell authored
Make the twl4030 RTC initialization follow the driver model better. The platform device is created (if needed) as part of twl4030 setup instead of as a board-specific thing, and fits properly into the driver model tree. The only minor glitch here is on boards using platform_data to pass MSECURE initialization hooks to the RTC driver. The right solution probably just removes that platform_data, and might even make Linux follow the principle of "least privilege" (at the hardware level!) instead of always holding this signal high. Pending better handling of MSECURE, this patch just does what the RTC init does, but earlier: MSECURE is always high, so the RTC time and calendar registers can be updated (and presumably a bunch of non-RTC privileged operations will be allowed too). Yet to be done: set up the IRQ resource; make the rtc driver use that IRQ resource; and properly issue wakeup alarms. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
David Brownell authored
Remove more bogus arch_initcall() logic in mach-omap2/board-xyx.c files. They broke a multi-OMAP build I did, at *RUN TIME* not build time, since it tried to do the i2c init for every board linked in the kernel. Remember, init_machine() entries run at arch_initcall() time; that's where any board-specific init logic should normally go. Any initcalls in the mach-*/*c files should normally be guarded by tests to make sure they only run on the relevant hardware (board, cpu). Better yet, get rid of the initcalls; init_machine() can *explicitly* call the right version of that code, and pass in board-specific config data; and there are hooks that can handle cpu-specific stuff too. A quick glance suggests most of the remaining initcall logic in the mach-omap2 directory is similarly broken... this patch gets rid of one frequently-cloned idiom, it should help. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Peter 'p2' De Schrijver authored
Also add missing u8 data as noted by Felipe Balbi. Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
Clean-up MMC device init: - Initialize devices in mach-omap1/devices.c and mach-omap2/devices.c instead of plat-omap/devices.c - Remove old struct omap_mmc_config, use struct omap_mmc_platform_data instead Note that this removes the second omap-hsmmc controller init for overo. This needs to be fixed properly by changing hsmmc_init() to accept board specific struct omap_mmc_platform_data. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Tony Lindgren authored
This is to sync with Russell's commit 7736c09c. Signed-off-by: Tony Lindgren <tony@atomide.com>
-
- 11 Sep, 2008 8 commits
-
-
Kalle Jokiniemi authored
Smartreflex modules have to be disabled when device enters WFI. Previously only suspend idle path had these calls. By moving the disable/enable calls to omap_sram_idle, all idle paths will be covered. Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
A NAVEEN authored
When git kernel tree is used on a OMAP3EVM board file for touch screen testing, it shows lot of jitter. With this patch the jitter can be reduced. Signed-off-by: Naveen Atmakuri <anaveen@mistralsolutions.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Sergio Aguirre authored
ARM: OMAP: OMAP34XXCAM: Camera Base Address. Adding OMAP 3 Camera registers base address, and Platform Device. Signed-off-by: Sergio Aguirre <saaguirre@ti.com> Signed-off-by: Sameer Venkatraman <sameerv@ti.com> Signed-off-by: Mohit Jalori <mjalori@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
ext Peter 'p2' De Schrijver authored
This patch loads the triton2 (twl4030) with scripts that will cut off VDD1 and VDD2 voltages when SYS_OFF_MODE signal is set. Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com> Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Jarkko Lavinen authored
Add sysfs cover_switch with the status of cover. Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br> Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Francisco Alecrim authored
Add slot_name entry to sysfs. Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br> Acked-by: Anderson Lizardo <anderson.lizardo@indt.org.br> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Jarkko Lavinen authored
Re-organizing some goto at hsmmc probe. Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br> Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-
Francisco Alecrim authored
Readable output for IRQ status register Signed-off-by: Francisco Alecrim <francisco.alecrim@indt.org.br> Acked-by: Anderson Lizardo <anderson.lizardo@indt.org.br> Signed-off-by: Tony Lindgren <tony@atomide.com>
-