Commit Graph

38225 Commits

Author SHA1 Message Date
Matt Sealey
901989541c Put IRAM audio back in as a config option, make imx-pcm a module.. 2011-07-11 12:59:01 -05:00
Matt Sealey
b14bbcf8d3 config update: stop using IRAM for audio buffers 2011-07-04 17:59:42 -05:00
Danny Nold
612a7d0058 ENGR00140737-1 - ARM: plat-mxc: Disable child clocks before parent clocks
- Reversed ordering in which clocks are disabled.  Child clocks should
be disabled before parent (root) clocks.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2011-07-04 17:55:50 -05:00
Matt Sealey
1f0c20d638 siihdmi: backport 2.6.35 driver to .31 - hotplug is the biggest major feature 2011-07-04 14:26:27 -05:00
Matt Sealey
5c480f9bf8 remove unused audio data 2011-07-04 13:14:26 -05:00
Matt Sealey
cbd383b002 display: register a dummy framebuffer as fb1 so that the overlay is fb2.
This fixes some braindead bug in gst_mfw_v4lsink or libipu or some other
userspace code (or maybe a hidden kernel thing) where it cannot work out
what it's doing unless the overlay is /dev/fb2.

Ahmed Ammar originally wrote this for our .35 port but we're backporting it
now in lieu of .35 actually being production ready. Thanks Ahmed!
2011-07-03 14:09:11 -05:00
Lily Zhang
9dd0f3b99a ENGR00144309 do nothing if the core frequency is not changed
When the system enters low bus frequency mode by executing the
following operations, the system enters dead loop to check
arm_podf_busy bit:

1. Store the rootfs on SD card.
2. type "echo 8 > /proc/sys/kernel/printk"
3. type "echo 1 > /sys/devices/platform/mxc_dvfs_core.0/enable"
4. type "ifconfig eth0 down"
5. type "echo 1 > /sys/class/graphics/fb0/blank"
6. The system enters low bus frequency mode. And it keeps

to print "ARM_PODF still in busy!!!!"
2011-06-28 16:51:16 -05:00
Matt Sealey
6059f7ef57 Reorder PATA pins to match docs (S 4-90, Table 4-2) even though it looks less logical 2011-06-28 16:35:57 -05:00
Matt Sealey
26ede7274e audio: refine clock for SGTL5000 2011-06-28 15:51:21 -05:00
Matt Sealey
2811c4a4ef Remove preallocation of framebuffer and GPU memory in favor of being nice and dynamic. Note that GPU memory reserved is entirely down to the MMU now, and framebuffer memory is "size of framebuffer" rounded up to 1MB block.
Everything still works.

Includes a Wild mashup of Freescale ENGR00143019 which concludes GPU MMU support for the platform.
2011-06-28 15:08:08 -05:00
Steev Klimaszewski
a84fac75f3 [ARM] wire up sys_accept4() on ARM
sys_accept4() was added in kernel 2.6.28, but ARM was not updated
to include it.  The number and types of parameters is such that
no ARM-specific processing is needed, so wiring up sys_accept4()
just requires defining __NR_accept4 and adding a direct call in
the syscall entry table.
2011-06-09 19:28:48 -05:00
Matt Sealey
d4c0146318 modify config to build-in PATA and MMC subsystems. Doesn't make a lot of sense
to modularize these in the grand scheme of things even if this is what Ubuntu
tends to do (it is not as if we have PCI slots and potential for multiple
different options).
2011-06-08 09:49:48 -05:00
Matt Sealey
16c7caff68 mmc: set drive voltage to 3.3V for SD cards, should solve all those CRC errors 2011-05-01 23:17:14 -05:00
Zhang Jiejing
2722d9a434 ENGR00139345 MX51: clock: gpu depends on emi_fast clock
MX51 will hang if gpu is running when emi_fast was disabled,
add depends on clock tree to fix it.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-04-20 10:01:39 -05:00
Matt Sealey
dbbe5bc6a7 Fix pad control for power key (based on ENGR00138697) not to have PKE 2011-04-20 09:49:14 -05:00
Nancy Chen
ec9038a0f5 ENGR00137973 MX53_TO2: DVFS core caused system hang
MX53_TO2: DVFS core caused system hang.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2011-04-11 20:27:51 -05:00
Matt Sealey
c6da52bf39 4 changes for HDMI
* prep for 2.6.35 and a coexisting "sii9022" driver from Freescale by calling ours "siihdmi" as per the filename
* never put the chip into D3 power off state if we cannot hotplug the chip out of it
* semi-catch setting a mode with a null fb_videomode argument, since this is impossible to perform (there may be other places this needs handling, and there should be a healthy fallback)
* don't perform fb_videomode_to_var for screen blanking, and simplify blanking functions to not require fb_videomode_to_var since they do not actually use them
2011-03-09 17:34:51 -06:00
Matt Sealey
c69e642975 only enable peripheral power management on the Smartbook. On the Smarttop
with very high resolution displays, power management causes serious performance
regressions which we cannot really accept when it comes to video playback
and other features. However, Smartbook display resolution is low enough and
power usage is important enough that we should leave it on for those systems
2011-03-07 18:00:50 -06:00
Matt Sealey
451e2fd3a7 add sahara modules for convenience of curious developers 2011-03-07 17:59:31 -06:00
Matt Sealey
59b490e023 i2c: fix platform data for mxc_i2c driver, it won't load any drivers though as the index in i2c_register_board_info will be different for this driver 2011-02-23 23:51:33 -06:00
Matt Sealey
f4ce8b7d3e display: remove redundant axi_b_clk set 2011-02-23 22:35:54 -06:00
Matt Sealey
da9d3e6fcd efikamx: header cleanup duplicated extern definition 2011-02-23 14:28:32 -06:00
Matt Sealey
7e11bf0c59 input: correct AC insert/remove debug 2011-02-23 11:42:10 -06:00
Matt Sealey
33816e5f31 cpu platform: restore SRTC registration 2011-02-23 10:57:36 -06:00
Matt Sealey
a0fcfcbda4 poweroff: looks like a Smartbookism crept into the code for Smarttop. Shutdown now works properly. 2011-02-23 10:40:30 -06:00
Matt Sealey
d30435b99a poweroff: non-working attempt to get Smarttop to power down and be able to come back again (you need to yank the power cord again.. not sure what has changed at all). 2011-02-23 01:51:05 -06:00
Matt Sealey
ed5bbbeb90 simcard: delay for msecs_to_jiffies instead of jiffies_to_msecs for more responsive insertion event 2011-02-23 01:07:34 -06:00
Matt Sealey
bbb39a089c battery: correct insertion/removal debug after state change changes in previous patch 2011-02-23 01:05:58 -06:00
Matt Sealey
6b91ba7dca "debounce" sim detection interrupt by running it as delayed work 2011-02-23 00:43:23 -06:00
Matt Sealey
3436d8c933 simcard: less obtuse 2011-02-22 23:46:37 -06:00
Matt Sealey
b2c48dc349 peripherals: rework power low/high stuff, less tweaking of the real values, more documentation 2011-02-22 23:44:48 -06:00
Matt Sealey
ef1b600904 input: make battery status functions return board-level values (active low) instead of fiddling them 2011-02-22 23:33:02 -06:00
Matt Sealey
2f78fb348e audio: commit a schematic oddity (not enabled) for posterity 2011-02-22 23:21:57 -06:00
Matt Sealey
26eb1571dd poweroff: mxc_wd_reset isn't needed at all, in fact.. 2011-02-22 23:11:23 -06:00
Matt Sealey
bdfdd37532 poweroff: refine power off function to properly merge SB and MX differences (not many) - also correct missing IOMUX_TO_GPIO, and make sure we actually toggle the state (power off line responds to the rising edge) 2011-02-22 23:09:22 -06:00
Matt Sealey
feed9168da power: don't call mxc_wd_reset(); when we actually want to shut down. Ironically it actually resets so I wonder why we do that weird watchdog pin for arch_reset.. 2011-02-22 23:02:59 -06:00
Matt Sealey
affb43356d backlight: jiggle the order of powering on backlight and deconfiguring the backlight PWM on blank/restore. Also, don't mess with the IO state of the PWM pin, if the PWM is disabled, it's disabled, all we need to do is turn the power off. 2011-02-21 18:45:31 -06:00
Matt Sealey
01edd6f1f5 config: update to remove udlfb 2011-02-20 04:47:32 -06:00
Matt Sealey
e4cba1b35d sbs: move away from resources and weird irq structures and use the input subsystem to provide us with notification of battery status events 2011-02-20 01:37:03 -06:00
Matt Sealey
78f3311796 efikamx: stop using gpio-keys since it managed to not work at all.
* Make lid switch, power key and wireless switch into a real input device as it was in the deep dark past..
* weird regression: something changed in GNOME, so you can't suspend by dropping the lid (the option has been
  removed from gnome-power-preferences). And because if you suspend with the lid up, the lid switch is not set
  to wake, lifting the lid won't unsuspend. The only way to get the system back is with the power key. Damn
  you GNOME developers.
* weird behavior: smarttop will immediately come back after suspend
2011-02-19 21:04:44 -06:00
Matt Sealey
ab3f042849 periph: unify interrupt and gpio naming 2011-02-19 19:43:40 -06:00
Matt Sealey
e1414b9543 Move peripheral power and reset into periph.c and out of input.c 2011-02-19 16:00:06 -06:00
Matt Sealey
fd1667db18 rename wwan -> periph 2011-02-19 15:48:32 -06:00
Matt Sealey
2b8272f3be usb: refine usb initialization by only configuring Host2 on the Smartbook and holding the hub hostage while we power stuff up, and before the PHY is reset. This ensures that nothing weird happens on the USB bus while we are tweaking things. 2011-02-19 14:17:42 -06:00
Matt Sealey
eab0c300d9 system: don't pull the platform include just for one function definition (reboot) 2011-02-19 11:16:55 -06:00
Matt Sealey
84528eff3b power key: correct insanity with ORing things together 2011-02-19 09:18:25 -06:00
Matt Sealey
f56c0b7c71 audio: unknown platform = headphone not inserted 2011-02-19 08:41:17 -06:00
Matt Sealey
16077d7382 Headphone detect is active low on Smartbook. Fixes headphone detection. 2011-02-19 08:24:51 -06:00
Steev Klimaszewski
97adca8e15 Wifi power is active low on Smarttop but active high on Smartbook. Switch the state around depending on running machine. Fixes wireless on Smarttop. 2011-02-19 08:23:51 -06:00
Matt Sealey
19358f4b59 config: modularize pata and mmc again, hooray! 2011-02-18 14:50:20 -06:00