aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-25Blackfin: convert /proc/sram to seq_fileAlexey Dobriyan1-17/+26
->read_proc interface is going away, switch to seq_file. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: switch /proc/gpio to seq_fileAlexey Dobriyan1-11/+20
->read_proc interface is going away, switch to seq_file. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: fix indentation with bfin_read() helperMike Frysinger1-4/+4
Use tabs instead of spaces to indent. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: convert old cpumask API to new oneKOSAKI Motohiro4-22/+24
old cpu_xxx() APIs is planned to removed later. then, converted. Signed-off-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: don't touch task->cpus_allowed directlyKOSAKI Motohiro1-4/+2
Every callter (except kthread_bind) should use proper set_cpus_allowed_ptr() APIs. Signed-off-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: don't touch cpu_possible_map and cpu_present_map directlyKOSAKI Motohiro1-4/+10
We plan to remove cpu_possible_map and cpu_present_map later and we have proper init_cpu_possible() and init_cpu_present() APIs. Therefore this patch rewrites platform_init_cpus and platform_prepare_cpus by their APIs. Signed-off-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf548-ezkit/bf561-ezkit: update nor flash layoutMike Frysinger2-2/+18
Both the BF548-EZKIT and the BF561-EZKIT use top boot flashes, so now that Das U-Boot uses the last small sector for its environment, update their nor layout in the kernel accordingly. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: initial perf_event supportMike Frysinger5-0/+546
Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: update anomaly lists to latest public infoMike Frysinger7-15/+50
Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: use on-chip reset func with newer partsMike Frysinger1-34/+31
Turns out the documentation is wrong and doing "RAISE 1" does not result in a software reset, only a core reset. So when the on-chip rom has a functioning reset helper, use it. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf533-stamp/bf537-stamp: drop ad1980 from defconfigsMike Frysinger2-4/+0
These boards don't have AD1980 modules, and that device is deprecated, so don't bother building it up by default anymore. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: optimize MMR reads during startup a bitMike Frysinger1-11/+9
Since the value of these MMRs aren't changing, store the value in a local variable and work off of that. This avoids multiple MMR reads which are implicitly forced by the volatile markings. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf537: demux port H mask A and emac rx intsMike Frysinger5-20/+77
The BF537 SIC combines the gpio port H mask A interrupts with the emac rx interrupt, so we need to demux this in software. It also combines the gpio port H mask B and the emac tx interrupts, and the watchdog and port F mask B interrupts, but since we don't support mask B yet, just add the defines for now. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf537: fix excessive gpio int demuxingMike Frysinger1-30/+25
The search logic in the gpio demux walks all possible gpio blocks starting at the specified pin. The trouble on bf537 parts when we demux the port F and port G mask A interrupts is that we also demux port H mask A ints. Most of the time this isn't an issue as people don't usually use port H, but might as well avoid it when possible. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf54x: drop unused pm gpio handlingMike Frysinger1-40/+2
This functionality was merged into the common bfin_pm_standby_ctrl func some time ago, so punt these now unused funcs and data, and localize the wake funcs that aren't needed externally anymore. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: move bf537-specific irq code out of common codeMike Frysinger4-138/+150
The SIC interrupt line muxing that the bf537 does is specific to this CPU (thankfully), so rip it out of the common code and move it to a bf537-specific file. This tidies up the common code significantly. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: move internal irq prototypes out of global namespaceMike Frysinger8-10/+16
These are only used in a few internal Blackfin places, so move the irq prototypes out of the global header and into the internal irq one. No functional changes other than shuffling locales. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: clean up irq ifdef logic a bitMike Frysinger1-47/+39
Prefer MMR named checks over part-specific lists, condense duplicated code across different #ifdef branches, simplify CONFIG_PM ifdefs, and drop unused kgdb header. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf51x/bf52x: fix typo in hysteresis MMR namesMike Frysinger5-28/+28
Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: delete duplicated user single step prototypesMike Frysinger1-2/+0
These are in linux/ptrace.h, so no need for us to duplicate them. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: kgdb: cache flushing is not safe in SMP modeSonic Zhang1-1/+5
Make sure we mark cache flushing as unsafe to kgdb in SMP mode so that kgdb doesn't flush things incorrectly on us. Signed-off-by: Sonic Zhang <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: SMP: drop unused blackfin_cpudata.idle pointerMike Frysinger2-4/+0
Not sure when we stopped using this field, but nothing in the tree uses this now, so punt it. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: SMP: fix cpudata cache setupMike Frysinger2-5/+2
After some cache setup reordering changesets, the blackfin_cpudata init was left behind. While cpu0's data was correct, cpu1's data was not. Not that big of a deal as these are only used in the cpuinfo output, but should still be fixed. So move the setup of these fields to the common cache setup function to avoid this happening again in the future. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: clean up /proc/cpuinfo outputMike Frysinger1-8/+8
The smp flush lines are too long and have too many newlines, so scale them back to match the other lines. The %p modifier shows "(null)" for 0, so use %08x instead. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf527-ezkit: tweak sound defconfigMike Frysinger2-15/+11
Build the sound pieces that the board actually has into the kernel, and punt older devices that we discourage. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: bf533/bf537/bf561: convert to BFIN_IRQ helperMike Frysinger3-122/+121
This brings the parts in line with newer ones, and makes things easier to read at a glance. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: clean up style in irq definesMike Frysinger7-695/+627
These files had a lot of whitespace damage, mostly due to copying and pasting original files that had damage. The BF561 header also had a lot of unused CONFIG_DEF_xxx defines, so punt them all. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: unify core IRQ definitionsMike Frysinger8-379/+64
Start a new common IRQ header and move all of the CEC pieces there. This lets the individual part headers worry just about its SIC defines. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: ints-priority: unify duplicate vec to irq lookup logicMike Frysinger1-68/+44
Seems the ipipe code just copied & pasted the existing irq lookup logic, so pull the logic out of do_irq() and into a local helper, and convert the two users over to that. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: ints-priority: clean up some local varsMike Frysinger1-17/+8
The local ivg structs need not be exported, so mark them as static. Further, the "num_spurious" variable is only incremented and never actually read anywhere, so punt it. Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: don't attempt to flush on-chip L1 SRAM regionsSonic Zhang1-5/+18
Since the on-chip L1 regions are not cacheable, there is no point in trying to flush/invalidate them. Plus, older Blackfin parts like to trigger an exception (like BF533-0.3). Signed-off-by: Sonic Zhang <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
2011-05-25Blackfin: first pass at debug mmr supportMike Frysinger3-1/+1863
Signed-off-by: Mike Frysinger <[email protected]>
2011-05-24Merge branch 'for-linus/2640/i2c' of git://git.fluff.org/bjdooks/linuxLinus Torvalds8-115/+263
* 'for-linus/2640/i2c' of git://git.fluff.org/bjdooks/linux: (21 commits) mach-ux500: set proper I2C platform data from MOP500s i2c-nomadik: break out single messsage transmission i2c-nomadik: reset the hw after status check i2c-nomadik: remove the unnecessary delay i2c-nomadik: change the TX and RX threshold i2c-nomadik: add code to retry on timeout failure i2c-nomadik: use pm_runtime API i2c-nomadik: print abort cause only on abort tag i2c-nomadik: correct adapter timeout initialization i2c-nomadik: remove the redundant error message i2c-nomadik: corrrect returned error numbers i2c-nomadik: fix speed enumerator i2c-nomadik: make i2c timeout specific per i2c bus i2c-nomadik: add regulator support i2c: i2c-sh_mobile bus speed platform data V2 i2c: i2c-sh_mobile clock string removal i2c-eg20t: Support new device ML7223 IOH i2c: tegra: Add de-bounce cycles. i2c: tegra: fix repeated start handling i2c: tegra: recover from spurious interrupt storm ...
2011-05-25Merge branches 'for-2639/i2c-eg20t', 'for-2639/i2c-shmobile', ↵Ben Dooks5084-325333/+334116
'for-2639/i2c-tegra' and 'for-2639/i2c-nomadik2' into for-linus/2640/i2c
2011-05-25mach-ux500: set proper I2C platform data from MOP500sLinus Walleij1-6/+8
This specifies the new per-platform timeout per I2C bus and switches the I2C buses to fast mode, and increase the FIFO depth to 8 for reads and writes. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: break out single messsage transmissionLinus Walleij1-32/+48
Reduce code size in the message transfer function by factoring out a single-message transfer function. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: reset the hw after status checkVirupax Sadashivpetimath1-4/+4
In case of I2C timeout, reset the HW only after the HW status is read, otherwise the staus will be lost. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Jonas Aberg <[email protected]> Reviewed-by: Srinidhi Kasagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: remove the unnecessary delayVirupax Sadashivpetimath1-18/+2
The delay in the driver seems to be not needed, so remove it. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Markus Grape <[email protected]> Tested-by: Per Persson <[email protected]> Tested-by: Chethan Krishna N <[email protected]> Reviewed-by: Srinidhi Kasagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: change the TX and RX thresholdVirupax Sadashivpetimath1-13/+26
1) Increase RX FIFO threshold so that there is a reduction in the number of interrupts handled to complete a transaction. 2) Fill TX FIFO in the write function. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Jonas Aberg <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: add code to retry on timeout failureVirupax Sadashivpetimath1-48/+49
It is seen that i2c-nomadik controller randomly stops generating the interrupts leading to a i2c timeout. As a workaround to this problem, add retries to the on going transfer on failure. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Jonas ABERG <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: use pm_runtime APIRabin Vincent1-6/+31
Use the pm_runtime API for pins control. Signed-off-by: Rabin Vincent <[email protected]> Reviewed-by: Srinidhi Kasagar <[email protected]> Reviewed-by: Jonas Aberg <[email protected]> [deleted some surplus runtime PM code] Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: print abort cause only on abort tagVirupax Sadashivpetimath1-8/+19
Modify the code to: 1)Print the cause of i2c failure only if the status is set to ABORT. 2)Print slave address on send/receive fail, will help in which slave failed. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Jonas Aberg <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: correct adapter timeout initializationVirupax Sadashivpetimath1-4/+5
Correct the incorrect initialization of adapter timeout not to be in milliseconds, as it needs to be done in jiffies. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Srinidhi Kasagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: remove the redundant error messagesrinidhi kasagar1-2/+0
The abort cause string itself is an error, so remove the redundant explicit error message. Signed-off-by: Srinidhi Kasagar <[email protected]> Reviewed-by: Jonas Aberg <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: corrrect returned error numbersVirupax Sadashivpetimath1-4/+6
The code was returning bad error numbers or just -1 in some cases. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Srinidhi Kasagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: fix speed enumeratorLinus Walleij1-1/+1
The I2C speed enumerators in the i2c-nomadik header file were in the wrong order. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: make i2c timeout specific per i2c busVirupax Sadashivpetimath2-8/+8
Add option to have different i2c timeout delay for different i2c buses specified in platform data. Default to the old value unless specified. Signed-off-by: Virupax Sadashivpetimath <[email protected]> Reviewed-by: Srinidhi Kasagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-25i2c-nomadik: add regulator supportJonas Aberg1-15/+58
This on-chip I2C controller needs to fetch the regulator representing its voltage domain so that it won't be switched off. Signed-off-by: Jonas Aberg <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Ben Dooks <[email protected]>
2011-05-24Merge branch 'i2c-for-linus' of ↵Linus Torvalds7-83/+97
git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: i2c-parport: Various cleanups i2c-i801: Don't depend on other kernel driver config options i2c-i801: Check for vendor Fujitsu before probing for apanel i2c-i801: Don't probe for slaves on IDF channels i2c-i801: SMBus patch for Intel Panther Point DeviceIDs i2c/writing-clients: Fix foo_driver.id_table
2011-05-24Merge branch 'for_linus' of ↵Linus Torvalds6-32/+91
git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6 * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6: jbd: Fix comment to match the code in journal_start() jbd/jbd2: remove obsolete summarise_journal_usage. jbd: Fix forever sleeping process in do_get_write_access() ext2: fix error msg when mounting fs with too-large blocksize jbd: fix fsync() tid wraparound bug ext3: Fix fs corruption when make_indexed_dir() fails ext3: Fix lock inversion in ext3_symlink()