aboutsummaryrefslogtreecommitdiff
path: root/arch/cris/arch-v32
AgeCommit message (Collapse)Author
2008-02-08CRIS v32: Update lib/checksum.S and lib/checksumcopy.SJesper Nilsson
- Slight tweaks, use $acr + addoq to propagate carry across the loop boundary. - Better use of latency cycles. - Remove duplicate folding of carry, it is not needed.
2008-02-08CRIS v32: Add lib/delay to build.Jesper Nilsson
2008-02-08CRIS v32: Add precise delay loops for ETRAX FS and ARTPEC-3.Jesper Nilsson
Implements cris_delay10ns.
2008-02-08CRIS v32: Update vcs_hook.c for ETRAX FS.Jesper Nilsson
- Clean up some formatting and whitespace.
2008-02-08CRIS v32: Move vcs_hook to machine specific directory.Jesper Nilsson
These files are different for ETRAX FS and ARTPEC-3.
2008-02-08CRIS v32: Update kernel/smp.c for CRIS v32.Jesper Nilsson
- Change include paths to machine specific headers (asm/arch/hwregs -> hwregs) - Add cpu_possible_map as cpumask_t and export it. - Drop struct pt_regs parameter from crisv32_ipi_interrupt. - timer -> timer0
2008-02-08CRIS v32: Update signal handling in kernel/signal.cJesper Nilsson
- 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.
2008-02-08CRIS v32: Update boot/rescue/rescue.ldJesper Nilsson
- Update to work for ETRAX FS and ARTPEC-3
2008-02-08CRIS v32: Change names of config variable and register field for data available.Jesper Nilsson
- CONFIG_ETRAXFS_SIM -> CONFIG_ETRAX_VCS_SIM - ser_intr_mask.data_avail -> ser_intr_mask.dav
2008-02-08CRIS v32: Change debug and formatting in kernel/fasttimer.cJesper Nilsson
- 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.
2008-02-08CRIS v32: Update kernel/crisksyms.cJesper Nilsson
- 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
2008-02-08CRIS v32: Remove config ifdef around init function for drivers/sync_serial.cJesper Nilsson
The init function should be defined always.
2008-02-08CRIS v32: Remove drivers/gpio.c, now exists as machine specific file.Jesper Nilsson
2008-02-08CRIS v32: Update driver for RTC chip pcf8563.Jesper Nilsson
- 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
2008-02-08CRIS v32: Remove drivers/nandflash.h, now exists as machine specific file.Jesper Nilsson
2008-02-08CRIS v32: ETRAX FS Change name of LED macros in drivers/mach-fs/gpio.c to ↵Jesper Nilsson
avoid collision.
2008-02-08CRIS v32: Change name of LED macros in drivers/mach-a3/gpio.c to avoid ↵Jesper Nilsson
collision.
2008-02-08CRIS v32: Change include path for hwregs in drivers/iop_fw_load.cJesper Nilsson
Also, remove useless CVS id tag.
2008-02-08CRIS v32: Rewrite of stream co-processor driver for ETRAX FS and ARTPEC-3Jesper Nilsson
- Workaround for cachebug (Guinness TR 106). - Add ARTPEC-3 support.
2008-02-08CRIS v32: Replace build flags in boot/rescue/MakefileJesper Nilsson
- Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and EXTRA_CFLAGS to ccflags-y. We only need the flags in this Makefile.
2008-02-08CRIS v32: Replace build flags in boot/compressed/MakefileJesper Nilsson
- Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and KBUILD_CFLAGS to ccflags-y. We only need the flags in this Makefile.
2008-02-08CRIS v32: Remove useless CVS id tag from boot/compressed/READMEJesper Nilsson
2008-02-08CRIS: Move common Kconfig variable ETRAX_RTC to arch independet Kconfig.Jesper Nilsson
2008-02-08CRIS v32: Update and improve kernel/time.cJesper Nilsson
- 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.
2008-02-08CRIS v32: Update and improve kernel/traps.cJesper Nilsson
- Remove watchdog handling, handled elsewhere. - Shorten include paths to machine dependent header files. - Remove raw_printk hack, we now use oops_in_progress instead. - Add handling of BUG for exception handlers (break 14). - Formatting and whitespace changes.
2008-02-08CRIS v32: Minor updates to kernel/process.cJesper Nilsson
- Shorten include paths for machine dependent header files. - Remove unused extern declaration of etrax_gpio_wake_up_check. - Register name for first timer is now regi_timer0.
2008-02-08CRIS v32: Update and simplify kernel/irq.c.Jesper Nilsson
- First timer register has changed name to timer0. - Build IRQs with only IRQ number, mask bit will be calculated instead. - Add more IRQs, up to 64 supported. - Use arrays to hold which IRQs triggered instead of trying to do magic with two 32 bit values now that more than 32 IRQs are supported.
2008-02-08CRIS v32: Update kernel/head.SJesper Nilsson
- Shorten include paths for machine specific header files. - Add magic for booting NAND flash. - Change CONFIG_ETRAXFS_SIM to CONFIG_ETRAX_VCS_SIM. - Use assembler macros for initializing hardware (clocks) - Add stubs for SMP slave CPUs. - Search for cramfs or jffs2 if no romfs found. - Initialize l2cache.
2008-02-08CRIS v32: Update and improve fasttimer.cJesper Nilsson
- Change include path to machine dependent header files. - Remove __INLINE__, it expands to inline anyway. - Don't initialize static variables. - Change timers to use fasttimer_t instead of timevals. - Change name of timeval_cmp to fasttime_cmp to highlight this. - Register name for first timer is regi_timer0, not regi_timer. - Whitespace and formatting changes. - Don't return if we're blocking interrupts, goto done and restore interrupts. - Disable interrupts while walking the fasttimer list, only restore while doing the callback. - Remove #ifdef DECLARE_WAITQUEUE, this code won't be used in another OS. - Remove CVS log.
2008-02-08CRIS v32: Update debugport.Jesper Nilsson
- Shorten include paths to machine dependent headers. - Add support for fifth serial port. - Remove CONFIG_ETRAXFS_SIM and CONFIG_ETRAX_DEBUG_PORT_NULL, no longer used. - Remove raw_printk and stupid_debug hack, no longer needed. - Remove dummy console stuff, no longer needed. - Correct some register type names. - Correct some whitespace errors and formatting.
2008-02-08CRIS v32: Update boot/rescue/head.S code.Jesper Nilsson
- Add ifdef for ETRAX_AXISFLASHMAP to avoid compiling file unless it is set. - Use assembler macros for setting up clocks. - Don't copy image, just jump to it (only works for NOR flash)
2008-02-08CRIS v32: Update boot/compressed/misc.cJesper Nilsson
- Shorten include paths to machine specific headers. - Remove fill_inbuf, not defined here. - Return __dest as value from memcpy. - Enable serial port hardware transmitter and receiver in serial_setup. - Correct baudrate divisor calculation, changed from 4800 to 115200. - Add support for Artpec-3 specific serial port setup. - Initialize pinmux for the correct serial port.
2008-02-08CRIS v32: Update compressed head.SJesper Nilsson
- Fixes for NAND and NOR flash booting. - Use assembler macros for common tasks (clocks, general io etc) - Use (EtraxFS or Artpec-3) machine specific include for dram and hardware init.
2008-02-08CRIS v32: Remove common gpio and nandflash, add mach-fs and mach-a3 as subdirs.Jesper Nilsson
Also add board_mmcspi to build if ETRAX_SPI_MMC_BOARD is set. (Generic MMC SPI implementation)
2008-02-08CRIS v32: Update boot rescue Kbuild makefile.Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use EXTRA_CFLAGS instead of CFLAGS.
2008-02-08CRIS v32: Update boot compressed Kbuild makefile.Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change. - Use KBUILD_CFLAGS instead of CFLAGS.
2008-02-08CRIS v32: Update boot Kbuild makefile.Jesper Nilsson
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change.
2008-02-08CRIS v32: Update and improve axisflashmapJesper Nilsson
- Use default partition table when no partition is found (for initial tests) - Add config ETRAX_AXISFLASHMAP_MTD0WHOLE to allow whole flash as mtd0. - Add config for VCS simulator connection.
2008-02-08CRIS v32: New version of I2C driver.Jesper Nilsson
- Add i2c_write and i2c_read as functions. - Use spinlocks for critical regions. - Add config item to set I2C data and clock port. - Put unneeded testcode inside #if 0. - Remove CVS id tag.
2008-02-08CRIS v32: Fixup kernel Makefile.Jesper Nilsson
- Remove CRISv32 common arbiter, dma, io and pinmux files, they are now defined in machine dependent directories. - Add cache and cacheflush files for working around cache problems in CRISv32 chips.
2008-02-08CRIS v32: Update entry.S to working order.Jesper Nilsson
- Remove oldset parameter. - Utilise delay-slot for parameter moving. - Add kernel_execve as break 13. - Add new kernel syscalls.
2008-02-08CRIS v32: Whitespace and formatting changes for kernel/ptrace.cJesper Nilsson
2008-02-08CRIS v32: Update synchronous serial driver.Jesper Nilsson
Now uses a DMA descriptor ring, which should avoid any unnecessary pauses in the streams.
2008-02-08CRIS v32: Add L2 cache initialization code.Jesper Nilsson
2008-02-08CRIS v32: Add new machine dependent files for Etrax-FS and Artpec-3.Jesper Nilsson
The two chips are somewhat different, and needs different handling. Adds handing of the dma, dram initialization, hardware settings, io, memory arbiter and pinmux Also moves the dma, dram initialization and io from CRIS v32 common files.
2008-02-08CRIS v32: Add new driver files for Etrax-FSJesper Nilsson
Adds gpio and nandflash handling for Etrax-FS
2008-02-08CRIS v32: Add new driver files for Artpec-3.Jesper Nilsson
Adds gpio and nandflash handling for Artpec-3.
2008-02-08CRIS: Rearrange Kconfigs for v10 and v32 to allow compilation without warnings.Jesper Nilsson
- Remove some unneeded configs and add some new ones. - Merge common config items to common file instead of duplicating them. - Pull in standard Kconfig.preempt. - Remove some unneeded Kconfigs for subsystems not (yet) available on CRIS (md, scsi, ieee1394, i2o, isdn, telephony, media, pcmcia, pci) - Rename CRISv32 config items which had different types from CRISv10. (ETRAX_LED2G, ETRAX_LED2R, ETRAX_LED3G, ETRAX_LED3R, ETRAX_I2C_DATA_PORT, ETRAX_I2C_CLK_PORT)
2008-02-05arch/cris: add a missing iounmapJulia Lawall
An extra error handling label is needed for the case where the ioremap has succeeded. The problem was detected using the following semantic match (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ type T,T1,T2; identifier E; statement S; expression x1,x2; constant C; int ret; @@ T E; ... * E = ioremap(...); if (E == NULL) S ... when != iounmap(E) when != if (E != NULL) { ... iounmap(E); ...} when != x1 = (T1)E if (...) { ... when != iounmap(E) when != if (E != NULL) { ... iounmap(E); ...} when != x2 = (T2)E ( * return; | * return C; | * return ret; ) } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Cc: Mikael Starvik <starvik@axis.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05CRIS: avoid using arch links in KconfigJesper Nilsson
Improve including of architecture dependent Kconfig files. - Always include the architecture dependent Kconfig files. - Wrap architecture dependent Kconfig files inside an appropriate "if ETRAX_ARCH_Vxx" block. This makes it possible to run the configuration even without the arch links, which are created later in the build process. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>