summaryrefslogtreecommitdiff
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* CRIS v32: Update signal handling in kernel/signal.cJesper Nilsson2008-02-081-88/+56
| | | | | | | | | | | - do_signal now returns void, and does not have the previous signal set as a parameter. - Remove sys_rt_sigsuspend, we can use the common one instead. - Change sys_sigsuspend to be more like x86, don't call do_signal here. - handle_signal, setup_frame and setup_rt_frame now return -EFAULT if we've delivered a segfault, which is used by callers to perform necessary cleanup. - Break long lines, correct whitespace and formatting errors.
* CRIS v32: Update boot/rescue/rescue.ldJesper Nilsson2008-02-081-7/+30
| | | | - Update to work for ETRAX FS and ARTPEC-3
* CRIS v10: Update drivers/gpio.c, fix locking and general improvements.Jesper Nilsson2008-02-081-359/+228
| | | | | | | | | | | | - Change all spin_lock/local_irq_save to spin_lock_irqsave. - Change multiple returns in functions where we have a lock to goto out. - Correct number of arguments to gpio_poll_timer_interrupt, gpio_pa_interrupt. - Break out gpio_write logic to smaller functions to make it readable. - In setget_input and setget_output, avoid extra if-indent level. - Change name LED_* -> CRIS_LED_* to avoid name clash. - Don't use braces around single statement ifs. - Fix whitespace errors. - Remove useless CVS id and log.
* CRIS v32: Change names of config variable and register field for data available.Jesper Nilsson2008-02-081-6/+6
| | | | | - CONFIG_ETRAXFS_SIM -> CONFIG_ETRAX_VCS_SIM - ser_intr_mask.data_avail -> ser_intr_mask.dav
* CRIS v32: Change debug and formatting in kernel/fasttimer.cJesper Nilsson2008-02-081-9/+7
| | | | | | | - Don't use SANITYCHECK(x) as a macro, test FAST_TIMER_SANITY_CHECKS with ifdef. This makes it possible for automatic indent etc to work. - Correct some whitespace errors. - Don't initialize static variable.
* CRIS v32: Update kernel/crisksyms.cJesper Nilsson2008-02-081-1/+6
| | | | | | - Include pinmux.h from machine specific directory. - Add some more symbols: crisv32_pinmux_alloc, crisv32_pinmux_dealloc_fixed, crisv32_io_get_name and crisv32_io_get
* CRIS v32: Remove config ifdef around init function for drivers/sync_serial.cJesper Nilsson2008-02-081-5/+1
| | | | The init function should be defined always.
* CRIS v32: Remove drivers/gpio.c, now exists as machine specific file.Jesper Nilsson2008-02-081-765/+0
|
* CRIS v32: Update driver for RTC chip pcf8563.Jesper Nilsson2008-02-081-133/+163
| | | | | | | | | | | | - Moved all calls to register_chrdev to a function called by module_init. - Added mutex locking. - Added better error handling at start up. - Added BIN_TO_BCD of the month value before it is saved to the RTC. - Corrected the month value returned by pcf8563_readreg. - Cache the voltage low value at driver init so the battery status information does not get 'accidentally' cleared when setting the RTC time. - Removed obsolete CONFIG_ETRAX_RTC_READONLY - Voltage low ioctl():s RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR
* CRIS v32: Remove drivers/nandflash.h, now exists as machine specific file.Jesper Nilsson2008-02-081-156/+0
|
* CRIS v32: ETRAX FS Change name of LED macros in drivers/mach-fs/gpio.c to ↵Jesper Nilsson2008-02-081-8/+8
| | | | avoid collision.
* CRIS v32: Change name of LED macros in drivers/mach-a3/gpio.c to avoid ↵Jesper Nilsson2008-02-081-7/+7
| | | | collision.
* CRIS v32: Change include path for hwregs in drivers/iop_fw_load.cJesper Nilsson2008-02-081-8/+8
| | | | Also, remove useless CVS id tag.
* CRIS v32: Rewrite of stream co-processor driver for ETRAX FS and ARTPEC-3Jesper Nilsson2008-02-081-50/+54
| | | | | - Workaround for cachebug (Guinness TR 106). - Add ARTPEC-3 support.
* CRIS v32: Replace build flags in boot/rescue/MakefileJesper Nilsson2008-02-081-4/+4
| | | | | - Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and EXTRA_CFLAGS to ccflags-y. We only need the flags in this Makefile.
* CRIS v32: Replace build flags in boot/compressed/MakefileJesper Nilsson2008-02-081-3/+3
| | | | | - Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and KBUILD_CFLAGS to ccflags-y. We only need the flags in this Makefile.
* CRIS v10: Change name of low voltage read and set macros.Jesper Nilsson2008-02-081-2/+2
|
* CRIS v32: Remove useless CVS id tag from boot/compressed/READMEJesper Nilsson2008-02-081-1/+0
|
* CRIS v10: Remove duplicated folding of carry from lib/checksum.S, it is not ↵Jesper Nilsson2008-02-081-7/+1
| | | | | | needed. Also, remove useless CVS id tag.
* CRIS v10: Remove duplicated folding of carry from lib/checksumcopy.S, it is ↵Jesper Nilsson2008-02-081-7/+1
| | | | | | not needed. Also, remove useless CVS id tag.
* CRIS v10: Clear TIF_SYSCALL_TRACE flag in ptrace_disable in kernel/ptrace.cJesper Nilsson2008-02-081-0/+1
|
* CRIS v10: Update kernel/io_interface_mux.cJesper Nilsson2008-02-081-107/+408
| | | | | | | | | | Fixed a bug where two interfaces using pins in the same pin group could not be allocated at the same time even if there where no pin collisions. Change all restore and returns into goto exit pattern. Also, remove useless CVS id and correct chapter reference for ETRAX100LX Designer's Reference in comment.
* CRIS v10: Setup serial port 2 to avoid accidental TXD pulse on startup.Jesper Nilsson2008-02-081-178/+43
| | | | | | | | | If serial port 2 is used, select it in R_GEN_CONFIG. If serial port 2 is used, setup the control registers for the port. This is done to avoid a pulse on the TXD line during start up, which could disturb some units. Also, remove useless CVS id and log.
* CRIS v10: Add synchronous serial port driver for CRIS v10.Jesper Nilsson2008-02-083-0/+1473
|
* CRIS v10: Don't call get_mmu_context when switching between tasks with ↵Jesper Nilsson2008-02-081-29/+29
| | | | | | shared memory descriptors Also, cleanup formatting and fix whitespace errors.
* CRIS v10: Fix bug where error returns didn't restore irqs in mm/fault.cJesper Nilsson2008-02-081-6/+7
| | | | | Don't return when we're inside local_irq_disable(), use goto exit instead. Also, cleanup some whitespace errors.
* CRIS v10: Remove useless CVS id tag from lib/old_checksum.cJesper Nilsson2008-02-081-2/+1
|
* CRIS v10: Remove useless CVS id and log from lib/dram_init.SJesper Nilsson2008-02-081-56/+2
|
* CRIS v10: Remove useless CVS id from kernel/shadows.cJesper Nilsson2008-02-081-2/+1
|
* CRIS v10: Reformat drivers/makefile using tabs.Jesper Nilsson2008-02-081-6/+5
|
* CRIS: Move common Kconfig variable ETRAX_RTC to arch independet Kconfig.Jesper Nilsson2008-02-083-18/+12
|
* CRIS: Remove NO_IOMEM config, we have IO memory.Jesper Nilsson2008-02-081-3/+0
|
* CRIS v10: Remove CVS id from kernel/process.cJesper Nilsson2008-02-081-2/+1
|
* CRIS v10: Remove CVS log and id from kernel/kgdb.cJesper Nilsson2008-02-081-58/+0
|
* CRIS v10: Cleanup kernel/irq.cJesper Nilsson2008-02-081-6/+1
| | | | | - Remove useless CVS id tag. - Remove no longer needed extern declarations for kgdb.
* CRIS v10: Cleanup kernel/fasttimer.cJesper Nilsson2008-02-081-21/+14
| | | | | - Change C99 comment style to C89. - Remove superfluous SANITYCHECK macro, test FAST_TIMER_SANITY_CHECKS instead.
* CRIS v10: Cleanup kernel/entry.S CVS log and id.Jesper Nilsson2008-02-081-244/+1
|
* CRIS v10: Remove CVS id tag from kernel/dma.cJesper Nilsson2008-02-081-2/+1
|
* CRIS v10: Break long lines in boot/rescue/head.SJesper Nilsson2008-02-081-6/+8
|
* CRIS v10: Remove CVS tag from boot/compressed/misc.cJesper Nilsson2008-02-081-4/+2
|
* CRIS v10: Update and fix bug in kernel/debugport.Jesper Nilsson2008-02-081-111/+23
| | | | | | | | - Move local_irq_save to after possible return in console_write_direct. - Remove old raw_printk hack, not needed anymore. - Add watchdog handling. - Make serial_driver use depend on CONFIG_ETRAX_SERIAL. - Remove useless CVS log.
* CRIS v10: Update driver for pcf8563Jesper Nilsson2008-02-081-173/+220
| | | | | | | | | | | | - Use mutex instead of spinlock, fixes kernel bugzilla report 8339. - Make sure that pcf8563_init can be called multiple times but only setup once. - Change RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR - Cache the voltage low value at driver init so the battery status information does not get 'accidentally' cleared when setting the RTC time. - Add weekday handling. - Correct leapyear handling to include 100 and 400 year exceptions. - Correct whitespace and formatting errors. - Remove useless CVS id tag.
* CRIS v10: Fix bugs in i2c_init and i2c_readregJesper Nilsson2008-02-081-78/+3
| | | | | | | | | | - Set the variable first to zero after first setup, so we can stop multiple calls to i2c_init from trying to setup i2c. - The last byte read by the master in an i2c transfer needs to be NACKed, not ACKed. - Also, remove useless CVS log and CVS id tags.
* CRIS v10: Cleanup drivers/eeprom.c to avoid import conflicts.Jesper Nilsson2008-02-081-73/+2
| | | | | - Remove useless CVS log and CVS id tags. - Whitespace fix and remove C++ comment.
* CRIS v10: Correct and cleanup boot/rescue/testrescue.SJesper Nilsson2008-02-081-7/+5
| | | | | | - Correct include path for sv_addr_ag.h, should be asm/arch/ - Fix some whitespace errors. - Remove useless CVS id tag.
* CRIS v10: Correct and cleanup boot/rescue/kimagerescue.SJesper Nilsson2008-02-081-29/+29
| | | | | | - Correct include path for sv_addr_ag.h, should be included from asm/arch/ - Remove useless CVS id tag. - Correct whitespace errors and some formatting.
* CRIS v10: Change boot/rescue/Makefile to use ccflags-y, asflags-y and ldflags-y.Jesper Nilsson2008-02-081-3/+3
| | | | | | Replace EXTRA_CFLAGS with ccflags-y. Change ASFLAGS and LDFLAGS into asflags-y and ldflags-y, we only need these flags in this makefile.
* CRIS v10: Update boot/compressed/Makefile to use ccflags-y and ldflags-yJesper Nilsson2008-02-081-2/+2
| | | | | Replace use of EXTRA_CFLAGS with ccflags-y and LDFLAGS with ldflags-y, (we only need to change linker flags for this makefile)
* CRIS v32: Update and improve kernel/time.cJesper Nilsson2008-02-081-98/+139
| | | | | | | | | - Shorten include paths to machine dependent header files. - Register name for first timer is now regi_timer0. - Remove raw_printk hack, use oops_in_progress instead. - Add handling of CPU frequency scaling for CRIS. - Remove regs parameter to timer_interrupt, get them from get_irq_regs instead. - Whitespace and formatting changes.
* CRIS v10: New default config.Jesper Nilsson2008-02-081-522/+274
|