pandora-kernel.git
16 years agoCRIS v32: Remove SMP stub from asm-cris/arch-v32/system.h
Jesper Nilsson [Mon, 28 Jan 2008 17:08:44 +0000 (18:08 +0100)]
CRIS v32: Remove SMP stub from asm-cris/arch-v32/system.h

CRIS v32 is not SMP.

16 years agoCRIS v32: Completely rework spinlocks for ETRAX FS and ARTPEC-3
Jesper Nilsson [Mon, 28 Jan 2008 17:07:58 +0000 (18:07 +0100)]
CRIS v32: Completely rework spinlocks for ETRAX FS and ARTPEC-3

16 years agoCRIS v32: Change name for simulator config in asm-cris/arch-v32/processor.h
Jesper Nilsson [Mon, 28 Jan 2008 17:06:43 +0000 (18:06 +0100)]
CRIS v32: Change name for simulator config in asm-cris/arch-v32/processor.h

16 years agoCRIS v32: Add prototype for crisv32_pinmux_dealloc_fixed in asm-cris/arch-v32/pinmux.h
Jesper Nilsson [Mon, 28 Jan 2008 17:06:11 +0000 (18:06 +0100)]
CRIS v32: Add prototype for crisv32_pinmux_dealloc_fixed in asm-cris/arch-v32/pinmux.h

Deallocation was not possible before, but is now.

16 years agoCRIS v32: Change name for simulator config in asm-cris/arch-v32/page.h
Jesper Nilsson [Mon, 28 Jan 2008 17:04:46 +0000 (18:04 +0100)]
CRIS v32: Change name for simulator config in asm-cris/arch-v32/page.h

Also, fix a typo.

16 years agoCRIS v32: Remove juliette.h, it is not supported for CRIS v32.
Jesper Nilsson [Mon, 28 Jan 2008 17:03:26 +0000 (18:03 +0100)]
CRIS v32: Remove juliette.h, it is not supported for CRIS v32.

16 years agoCRIS v32: Add support for ETRAX FS and ARTPEC-3 for arch-v32/hwregs/eth_defs.h
Jesper Nilsson [Mon, 28 Jan 2008 16:56:56 +0000 (17:56 +0100)]
CRIS v32: Add support for ETRAX FS and ARTPEC-3 for arch-v32/hwregs/eth_defs.h

- A couple of fields have changed name:
reg_eth_rw_ga_lo.table -> tbl
reg_eth_rw_ga_hi.table -> tbl
reg_eth_rw_gen_ctrl.flow_ctrl_dis -> flow_ctrl

- Add some new register fields.
reg_eth_rw_gen_ctrl.gtxclk_out
reg_eth_rw_gen_ctrl.phyrst_n
reg_eth_rw_tr_ctrl.carrier_ext

- max_size in reg_eth_rw_rec_ctrl had the wrong size.

- Registers reg_eth_rw_mgm_ctrl and reg_eth_r_stat was reworked completely.

16 years agoCRIS v32: Rename variable used in macro for arch-v32/hwregs/dma.h
Jesper Nilsson [Mon, 28 Jan 2008 16:42:17 +0000 (17:42 +0100)]
CRIS v32: Rename variable used in macro for arch-v32/hwregs/dma.h

The old name "r" would quite often produce warnings when other
variables with the same name was shadowed. Rename it __x to
make it more unlikely to happen.

16 years agoCRIS v32: Remove useless CVS id tag from arch-v32/hwregs/Makefile
Jesper Nilsson [Mon, 28 Jan 2008 15:55:21 +0000 (16:55 +0100)]
CRIS v32: Remove useless CVS id tag from arch-v32/hwregs/Makefile

16 years agoCRIS v32: Add defines for udelay and ndelay in arch-v32/delay.h
Jesper Nilsson [Mon, 28 Jan 2008 15:54:51 +0000 (16:54 +0100)]
CRIS v32: Add defines for udelay and ndelay in arch-v32/delay.h

Both of these are implemented using cris_delay10ns().

16 years agoCRIS v32: Adjust arch-v32/atomic.h for new spinlock/rwlock infrastructure
Jesper Nilsson [Mon, 28 Jan 2008 15:53:19 +0000 (16:53 +0100)]
CRIS v32: Adjust arch-v32/atomic.h for new spinlock/rwlock infrastructure

16 years agoCRIS v32: Add missing header to include/asm-cris/arch-v32/Kbuild
Jesper Nilsson [Mon, 28 Jan 2008 15:51:31 +0000 (16:51 +0100)]
CRIS v32: Add missing header to include/asm-cris/arch-v32/Kbuild

16 years agoCRIS: Break long comment line in include/asm-cris/arch-v10/page.h
Jesper Nilsson [Mon, 28 Jan 2008 15:50:32 +0000 (16:50 +0100)]
CRIS: Break long comment line in include/asm-cris/arch-v10/page.h

16 years agoCRIS: Rename LED macros to CRIS_LED to avoid name clash in io.h
Jesper Nilsson [Mon, 28 Jan 2008 15:49:39 +0000 (16:49 +0100)]
CRIS: Rename LED macros to CRIS_LED to avoid name clash in io.h

This is done to avoid collision with linux/leds.h

16 years agoCRIS: Add missing headers to include/asm-cris Kbuild files.
Jesper Nilsson [Thu, 31 Jan 2008 16:40:37 +0000 (17:40 +0100)]
CRIS: Add missing headers to include/asm-cris Kbuild files.

16 years agoCRIS: Add sched_clock to kernel/time.c
Jesper Nilsson [Mon, 28 Jan 2008 15:40:21 +0000 (16:40 +0100)]
CRIS: Add sched_clock to kernel/time.c

Also, clean up some whitespace errors.

16 years agoCRIS: Register cpus in kernel/setup.c
Jesper Nilsson [Mon, 28 Jan 2008 15:39:00 +0000 (16:39 +0100)]
CRIS: Register cpus in kernel/setup.c

Also, fix some white space errors, and constify cpuinfo_op.

16 years agoCRIS: Remove include of linux/init.h, not needed anymore.
Jesper Nilsson [Mon, 28 Jan 2008 15:34:30 +0000 (16:34 +0100)]
CRIS: Remove include of linux/init.h, not needed anymore.

16 years agoCRIS: Remove CONFIG_NO_IOMEM from ARTPEC-3 default config.
Jesper Nilsson [Mon, 28 Jan 2008 15:33:21 +0000 (16:33 +0100)]
CRIS: Remove CONFIG_NO_IOMEM from ARTPEC-3 default config.

16 years agoCRIS: Remove useless CVS log from kernel/ptrace.c
Jesper Nilsson [Mon, 28 Jan 2008 15:30:35 +0000 (16:30 +0100)]
CRIS: Remove useless CVS log from kernel/ptrace.c

Also, fix some whitespace errors.

16 years agoCRIS: Remove useless CVS id and log from kernel/process.c
Jesper Nilsson [Mon, 28 Jan 2008 15:29:21 +0000 (16:29 +0100)]
CRIS: Remove useless CVS id and log from kernel/process.c

16 years agoCRIS: Add configuration possibility for using kmalloc for modules.
Jesper Nilsson [Mon, 28 Jan 2008 15:28:10 +0000 (16:28 +0100)]
CRIS: Add configuration possibility for using kmalloc for modules.

Using kmalloc instead of vmalloc solves the stability problems
experienced by some 100 LX products.

16 years agoCRIS: Remove CONFIG_NO_IOMEM from default configs.
Jesper Nilsson [Mon, 28 Jan 2008 15:25:13 +0000 (16:25 +0100)]
CRIS: Remove CONFIG_NO_IOMEM from default configs.

16 years agoCRIS v32: Fix startup oops and replace hardcoded pagesize in vmlinux.lds.S
Jesper Nilsson [Wed, 30 Jan 2008 11:57:31 +0000 (12:57 +0100)]
CRIS v32: Fix startup oops and replace hardcoded pagesize in vmlinux.lds.S

- Move alignment of init data to page size outside define CONFIG_BLK_DEV_INITRD
  This avoids oops due to memory on the same page as init data being freed.
- Change hardcoded page size to use macro from asm/page.h
- Add reserved memory via CONFIG_ETRAX_VMEM_SIZE.
- Use available defines for TEXT_TEXT and INITCALLS.
- Cleanup whitespace.

16 years agoCRIS v32: Avoid work when switching between tasks with shared memory descriptors...
Jesper Nilsson [Fri, 25 Jan 2008 17:08:07 +0000 (18:08 +0100)]
CRIS v32: Avoid work when switching between tasks with shared memory descriptors in mm/tlb.c

There is no need to do all this work if they share memory descriptors.
Also, fix some minor whitespace and long lines.

16 years agoCRIS v32: Add workaround for MMU hardware bug for ETRAX FS in mm/mmu.S
Jesper Nilsson [Fri, 25 Jan 2008 17:05:12 +0000 (18:05 +0100)]
CRIS v32: Add workaround for MMU hardware bug for ETRAX FS in mm/mmu.S

16 years agoCRIS v32: Fix bug in internal memory allocator mm/intmem.c
Jesper Nilsson [Fri, 25 Jan 2008 17:03:00 +0000 (18:03 +0100)]
CRIS v32: Fix bug in internal memory allocator mm/intmem.c

- Fix bug where allocated memory didn't account for alignment.
- Add support for ARTPEC-3
- Add module_init for crisv32_intmem_init.

16 years agoCRIS v32: Change name of simulator config to CONFIG_ETRAX_VCS_SIM in mm/init.c
Jesper Nilsson [Fri, 25 Jan 2008 17:00:48 +0000 (18:00 +0100)]
CRIS v32: Change name of simulator config to CONFIG_ETRAX_VCS_SIM in mm/init.c

- Remove unneded code for ETRAX FS and ARTPEC-3

16 years agoCRIS v32: Change lib/spinlock.S to use byte operations instead of dwords.
Jesper Nilsson [Fri, 25 Jan 2008 16:57:28 +0000 (17:57 +0100)]
CRIS v32: Change lib/spinlock.S to use byte operations instead of dwords.

16 years agoCRIS v32: Move hw_settings.S to machine specific directories for ETRAX FS and ARTPEC-3
Jesper Nilsson [Fri, 25 Jan 2008 16:55:31 +0000 (17:55 +0100)]
CRIS v32: Move hw_settings.S to machine specific directories for ETRAX FS and ARTPEC-3

16 years agoCRIS v32: Update lib/checksum.S and lib/checksumcopy.S
Jesper Nilsson [Fri, 25 Jan 2008 16:54:14 +0000 (17:54 +0100)]
CRIS v32: Update lib/checksum.S and lib/checksumcopy.S

- 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.

16 years agoCRIS v32: Add lib/delay to build.
Jesper Nilsson [Fri, 25 Jan 2008 16:32:01 +0000 (17:32 +0100)]
CRIS v32: Add lib/delay to build.

16 years agoCRIS v32: Add precise delay loops for ETRAX FS and ARTPEC-3.
Jesper Nilsson [Fri, 25 Jan 2008 16:31:38 +0000 (17:31 +0100)]
CRIS v32: Add precise delay loops for ETRAX FS and ARTPEC-3.

Implements cris_delay10ns.

16 years agoCRIS v32: Update vcs_hook.c for ETRAX FS.
Jesper Nilsson [Fri, 25 Jan 2008 16:28:10 +0000 (17:28 +0100)]
CRIS v32: Update vcs_hook.c for ETRAX FS.

- Clean up some formatting and whitespace.

16 years agoCRIS v32: Move vcs_hook to machine specific directory.
Jesper Nilsson [Fri, 25 Jan 2008 15:43:53 +0000 (16:43 +0100)]
CRIS v32: Move vcs_hook to machine specific directory.

These files are different for ETRAX FS and ARTPEC-3.

16 years agoCRIS v32: Update kernel/smp.c for CRIS v32.
Jesper Nilsson [Fri, 25 Jan 2008 15:15:44 +0000 (16:15 +0100)]
CRIS v32: Update kernel/smp.c for CRIS v32.

- 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

16 years agoCRIS v32: Update signal handling in kernel/signal.c
Jesper Nilsson [Fri, 25 Jan 2008 15:10:02 +0000 (16:10 +0100)]
CRIS v32: Update signal handling in kernel/signal.c

- 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.

16 years agoCRIS v32: Update boot/rescue/rescue.ld
Jesper Nilsson [Fri, 25 Jan 2008 15:05:55 +0000 (16:05 +0100)]
CRIS v32: Update boot/rescue/rescue.ld

- Update to work for ETRAX FS and ARTPEC-3

16 years agoCRIS v10: Update drivers/gpio.c, fix locking and general improvements.
Jesper Nilsson [Fri, 25 Jan 2008 14:42:41 +0000 (15:42 +0100)]
CRIS v10: Update drivers/gpio.c, fix locking and general improvements.

- 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.

16 years agoCRIS: Add support for ETRAX FS and ARTPEC-3 to etraxgpio.h
Jesper Nilsson [Fri, 25 Jan 2008 12:50:27 +0000 (13:50 +0100)]
CRIS: Add support for ETRAX FS and ARTPEC-3 to etraxgpio.h

The CRIS v32 architectures have more gpio ports and built in PWM.

16 years agoCRIS v32: Change names of config variable and register field for data available.
Jesper Nilsson [Thu, 24 Jan 2008 13:37:10 +0000 (14:37 +0100)]
CRIS v32: Change names of config variable and register field for data available.

- CONFIG_ETRAXFS_SIM -> CONFIG_ETRAX_VCS_SIM
- ser_intr_mask.data_avail -> ser_intr_mask.dav

16 years agoCRIS v32: Change debug and formatting in kernel/fasttimer.c
Jesper Nilsson [Thu, 24 Jan 2008 13:34:37 +0000 (14:34 +0100)]
CRIS v32: Change debug and formatting in kernel/fasttimer.c

- 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.

16 years agoCRIS v32: Update kernel/crisksyms.c
Jesper Nilsson [Thu, 24 Jan 2008 13:31:55 +0000 (14:31 +0100)]
CRIS v32: Update kernel/crisksyms.c

- 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

16 years agoCRIS v32: Remove config ifdef around init function for drivers/sync_serial.c
Jesper Nilsson [Thu, 24 Jan 2008 13:30:01 +0000 (14:30 +0100)]
CRIS v32: Remove config ifdef around init function for drivers/sync_serial.c

The init function should be defined always.

16 years agoCRIS v32: Remove drivers/gpio.c, now exists as machine specific file.
Jesper Nilsson [Thu, 24 Jan 2008 13:25:18 +0000 (14:25 +0100)]
CRIS v32: Remove drivers/gpio.c, now exists as machine specific file.

16 years agoCRIS v32: Update driver for RTC chip pcf8563.
Jesper Nilsson [Thu, 24 Jan 2008 13:24:09 +0000 (14:24 +0100)]
CRIS v32: Update driver for RTC chip pcf8563.

- 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

16 years agoCRIS v32: Remove drivers/nandflash.h, now exists as machine specific file.
Jesper Nilsson [Thu, 24 Jan 2008 13:17:47 +0000 (14:17 +0100)]
CRIS v32: Remove drivers/nandflash.h, now exists as machine specific file.

16 years agoCRIS v32: ETRAX FS Change name of LED macros in drivers/mach-fs/gpio.c to avoid colli...
Jesper Nilsson [Thu, 24 Jan 2008 13:14:09 +0000 (14:14 +0100)]
CRIS v32: ETRAX FS Change name of LED macros in drivers/mach-fs/gpio.c to avoid collision.

16 years agoCRIS v32: Change name of LED macros in drivers/mach-a3/gpio.c to avoid collision.
Jesper Nilsson [Thu, 24 Jan 2008 13:13:12 +0000 (14:13 +0100)]
CRIS v32: Change name of LED macros in drivers/mach-a3/gpio.c to avoid collision.

16 years agoCRIS v32: Change include path for hwregs in drivers/iop_fw_load.c
Jesper Nilsson [Thu, 24 Jan 2008 13:12:10 +0000 (14:12 +0100)]
CRIS v32: Change include path for hwregs in drivers/iop_fw_load.c

Also, remove useless CVS id tag.

16 years agoCRIS v32: Rewrite of stream co-processor driver for ETRAX FS and ARTPEC-3
Jesper Nilsson [Thu, 24 Jan 2008 13:10:27 +0000 (14:10 +0100)]
CRIS v32: Rewrite of stream co-processor driver for ETRAX FS and ARTPEC-3

- Workaround for cachebug (Guinness TR 106).
- Add ARTPEC-3 support.

16 years agoCRIS v32: Replace build flags in boot/rescue/Makefile
Jesper Nilsson [Thu, 24 Jan 2008 12:07:34 +0000 (13:07 +0100)]
CRIS v32: Replace build flags in boot/rescue/Makefile

- Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and EXTRA_CFLAGS
  to ccflags-y. We only need the flags in this Makefile.

16 years agoCRIS v32: Replace build flags in boot/compressed/Makefile
Jesper Nilsson [Wed, 30 Jan 2008 11:55:56 +0000 (12:55 +0100)]
CRIS v32: Replace build flags in boot/compressed/Makefile

- Change AFLAGS to asflags-y, LDFLAGS to ldflags-y and KBUILD_CFLAGS
  to ccflags-y. We only need the flags in this Makefile.

16 years agoCRIS v10: Change name of low voltage read and set macros.
Jesper Nilsson [Wed, 23 Jan 2008 16:36:40 +0000 (17:36 +0100)]
CRIS v10: Change name of low voltage read and set macros.

16 years agoCRIS v32: Remove useless CVS id tag from boot/compressed/README
Jesper Nilsson [Wed, 23 Jan 2008 10:11:34 +0000 (11:11 +0100)]
CRIS v32: Remove useless CVS id tag from boot/compressed/README

16 years agoCRIS: Fix bugs in return value of atomic_inc_return and atomic_dec_return.
Jesper Nilsson [Mon, 21 Jan 2008 16:01:31 +0000 (17:01 +0100)]
CRIS: Fix bugs in return value of atomic_inc_return and atomic_dec_return.

Increment and decrement before assigning to return value.

16 years agoCRIS: Allow arch dependent delay to override common version.
Jesper Nilsson [Mon, 21 Jan 2008 15:38:41 +0000 (16:38 +0100)]
CRIS: Allow arch dependent delay to override common version.

16 years agoCRIS: Include arch dependent bug.h.
Jesper Nilsson [Mon, 21 Jan 2008 14:51:13 +0000 (15:51 +0100)]
CRIS: Include arch dependent bug.h.

16 years agoCRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.
Jesper Nilsson [Mon, 21 Jan 2008 14:49:43 +0000 (15:49 +0100)]
CRIS: Correct pfn_pte to make it possible to ioremap uncached addresses.

16 years agoCRIS: Correct comment in io.h to describe reality of I/O space.
Jesper Nilsson [Mon, 21 Jan 2008 14:38:22 +0000 (15:38 +0100)]
CRIS: Correct comment in io.h to describe reality of I/O space.

The old comment stated that it was "junk needed for the arch-independent code
but which we never use in the CRIS port", but this is no longer true.

16 years agoCRIS: Update cpu_possible_map and raw_smp_processor_id in smp.h header.
Jesper Nilsson [Mon, 21 Jan 2008 14:15:09 +0000 (15:15 +0100)]
CRIS: Update cpu_possible_map and raw_smp_processor_id in smp.h header.

- Change name of __smp_processor_id to raw_smp_processor_id.
- cpu_possible_map is no longer a define for phys_cpu_present_map,
  it is now a cpumask_t.

16 years agoCRIS v10: Remove duplicated folding of carry from lib/checksum.S, it is not needed.
Jesper Nilsson [Mon, 21 Jan 2008 13:11:22 +0000 (14:11 +0100)]
CRIS v10: Remove duplicated folding of carry from lib/checksum.S, it is not needed.

Also, remove useless CVS id tag.

16 years agoCRIS v10: Remove duplicated folding of carry from lib/checksumcopy.S, it is not needed.
Jesper Nilsson [Mon, 21 Jan 2008 13:10:33 +0000 (14:10 +0100)]
CRIS v10: Remove duplicated folding of carry from lib/checksumcopy.S, it is not needed.

Also, remove useless CVS id tag.

16 years agoCRIS v10: Clear TIF_SYSCALL_TRACE flag in ptrace_disable in kernel/ptrace.c
Jesper Nilsson [Mon, 21 Jan 2008 13:06:32 +0000 (14:06 +0100)]
CRIS v10: Clear TIF_SYSCALL_TRACE flag in ptrace_disable in kernel/ptrace.c

16 years agoCRIS v10: Update kernel/io_interface_mux.c
Jesper Nilsson [Tue, 29 Jan 2008 10:27:19 +0000 (11:27 +0100)]
CRIS v10: Update kernel/io_interface_mux.c

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.

16 years agoCRIS v10: Setup serial port 2 to avoid accidental TXD pulse on startup.
Jesper Nilsson [Mon, 21 Jan 2008 10:52:52 +0000 (11:52 +0100)]
CRIS v10: Setup serial port 2 to avoid accidental TXD pulse on startup.

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.

16 years agoCRIS v10: Add synchronous serial port driver for CRIS v10.
Jesper Nilsson [Mon, 21 Jan 2008 10:44:11 +0000 (11:44 +0100)]
CRIS v10: Add synchronous serial port driver for CRIS v10.

16 years agoCRIS v10: Don't call get_mmu_context when switching between tasks with shared memory...
Jesper Nilsson [Mon, 21 Jan 2008 10:28:16 +0000 (11:28 +0100)]
CRIS v10: Don't call get_mmu_context when switching between tasks with shared memory descriptors

Also, cleanup formatting and fix whitespace errors.

16 years agoCRIS v10: Fix bug where error returns didn't restore irqs in mm/fault.c
Jesper Nilsson [Mon, 21 Jan 2008 10:14:59 +0000 (11:14 +0100)]
CRIS v10: Fix bug where error returns didn't restore irqs in mm/fault.c

Don't return when we're inside local_irq_disable(), use goto exit instead.
Also, cleanup some whitespace errors.

16 years agoCRIS v10: Remove useless CVS id tag from lib/old_checksum.c
Jesper Nilsson [Mon, 21 Jan 2008 10:11:25 +0000 (11:11 +0100)]
CRIS v10: Remove useless CVS id tag from lib/old_checksum.c

16 years agoCRIS v10: Remove useless CVS id and log from lib/dram_init.S
Jesper Nilsson [Mon, 21 Jan 2008 10:10:54 +0000 (11:10 +0100)]
CRIS v10: Remove useless CVS id and log from lib/dram_init.S

16 years agoCRIS v10: Remove useless CVS id from kernel/shadows.c
Jesper Nilsson [Mon, 21 Jan 2008 10:09:56 +0000 (11:09 +0100)]
CRIS v10: Remove useless CVS id from kernel/shadows.c

16 years agoCRIS v10: Reformat drivers/makefile using tabs.
Jesper Nilsson [Mon, 21 Jan 2008 10:07:49 +0000 (11:07 +0100)]
CRIS v10: Reformat drivers/makefile using tabs.

16 years agoCRIS: Move common Kconfig variable ETRAX_RTC to arch independet Kconfig.
Jesper Nilsson [Mon, 21 Jan 2008 10:05:40 +0000 (11:05 +0100)]
CRIS: Move common Kconfig variable ETRAX_RTC to arch independet Kconfig.

16 years agoCRIS: Remove NO_IOMEM config, we have IO memory.
Jesper Nilsson [Mon, 21 Jan 2008 10:01:33 +0000 (11:01 +0100)]
CRIS: Remove NO_IOMEM config, we have IO memory.

16 years agoCRIS v10: Remove CVS id from kernel/process.c
Jesper Nilsson [Fri, 18 Jan 2008 14:23:48 +0000 (15:23 +0100)]
CRIS v10: Remove CVS id from kernel/process.c

16 years agoCRIS v10: Remove CVS log and id from kernel/kgdb.c
Jesper Nilsson [Fri, 18 Jan 2008 14:23:21 +0000 (15:23 +0100)]
CRIS v10: Remove CVS log and id from kernel/kgdb.c

16 years agoCRIS v10: Cleanup kernel/irq.c
Jesper Nilsson [Fri, 18 Jan 2008 14:22:30 +0000 (15:22 +0100)]
CRIS v10: Cleanup kernel/irq.c

- Remove useless CVS id tag.
- Remove no longer needed extern declarations for kgdb.

16 years agoCRIS v10: Cleanup kernel/fasttimer.c
Jesper Nilsson [Fri, 18 Jan 2008 13:31:19 +0000 (14:31 +0100)]
CRIS v10: Cleanup kernel/fasttimer.c

- Change C99 comment style to C89.
- Remove superfluous SANITYCHECK macro, test FAST_TIMER_SANITY_CHECKS instead.

16 years agoCRIS v10: Cleanup kernel/entry.S CVS log and id.
Jesper Nilsson [Fri, 18 Jan 2008 12:50:31 +0000 (13:50 +0100)]
CRIS v10: Cleanup kernel/entry.S CVS log and id.

16 years agoCRIS v10: Remove CVS id tag from kernel/dma.c
Jesper Nilsson [Fri, 18 Jan 2008 12:49:31 +0000 (13:49 +0100)]
CRIS v10: Remove CVS id tag from kernel/dma.c

16 years agoCRIS v10: Break long lines in boot/rescue/head.S
Jesper Nilsson [Fri, 18 Jan 2008 12:48:02 +0000 (13:48 +0100)]
CRIS v10: Break long lines in boot/rescue/head.S

16 years agoCRIS v10: Remove CVS tag from boot/compressed/misc.c
Jesper Nilsson [Fri, 18 Jan 2008 12:47:09 +0000 (13:47 +0100)]
CRIS v10: Remove CVS tag from boot/compressed/misc.c

16 years agoCRIS v10: Update and fix bug in kernel/debugport.
Jesper Nilsson [Fri, 18 Jan 2008 12:44:13 +0000 (13:44 +0100)]
CRIS v10: Update and fix bug in kernel/debugport.

- 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.

16 years agoCRIS v10: Cleanup rtc.h
Jesper Nilsson [Thu, 17 Jan 2008 15:01:45 +0000 (16:01 +0100)]
CRIS v10: Cleanup rtc.h

- Change RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR
- Whitespace and formatting.

16 years agoCRIS v10: Update driver for pcf8563
Jesper Nilsson [Thu, 17 Jan 2008 14:17:07 +0000 (15:17 +0100)]
CRIS v10: Update driver for pcf8563

- 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.

16 years agoCRIS v10: Fix bugs in i2c_init and i2c_readreg
Jesper Nilsson [Thu, 17 Jan 2008 13:50:47 +0000 (14:50 +0100)]
CRIS v10: Fix bugs in i2c_init and i2c_readreg

- 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.

16 years agoCRIS v10: Cleanup drivers/eeprom.c to avoid import conflicts.
Jesper Nilsson [Thu, 17 Jan 2008 13:44:00 +0000 (14:44 +0100)]
CRIS v10: Cleanup drivers/eeprom.c to avoid import conflicts.

- Remove useless CVS log and CVS id tags.
- Whitespace fix and remove C++ comment.

16 years agoCRIS v10: Correct and cleanup boot/rescue/testrescue.S
Jesper Nilsson [Thu, 17 Jan 2008 10:33:45 +0000 (11:33 +0100)]
CRIS v10: Correct and cleanup boot/rescue/testrescue.S

- Correct include path for sv_addr_ag.h, should be asm/arch/
- Fix some whitespace errors.
- Remove useless CVS id tag.

16 years agoCRIS v10: Correct and cleanup boot/rescue/kimagerescue.S
Jesper Nilsson [Thu, 17 Jan 2008 10:30:21 +0000 (11:30 +0100)]
CRIS v10: Correct and cleanup boot/rescue/kimagerescue.S

- 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.

16 years agoCRIS v10: Change boot/rescue/Makefile to use ccflags-y, asflags-y and ldflags-y.
Jesper Nilsson [Thu, 17 Jan 2008 10:22:41 +0000 (11:22 +0100)]
CRIS v10: Change boot/rescue/Makefile to use ccflags-y, asflags-y and ldflags-y.

Replace EXTRA_CFLAGS with ccflags-y.
Change ASFLAGS and LDFLAGS into asflags-y and ldflags-y, we only need
these flags in this makefile.

16 years agoCRIS v10: Update boot/compressed/Makefile to use ccflags-y and ldflags-y
Jesper Nilsson [Thu, 17 Jan 2008 10:13:21 +0000 (11:13 +0100)]
CRIS v10: Update boot/compressed/Makefile to use ccflags-y and ldflags-y

Replace use of EXTRA_CFLAGS with ccflags-y and LDFLAGS with ldflags-y,
(we only need to change linker flags for this makefile)

16 years agoCRIS: Add architecture dependent bug.h for CRIS v10 and CRIS v32
Jesper Nilsson [Thu, 17 Jan 2008 09:42:58 +0000 (10:42 +0100)]
CRIS: Add architecture dependent bug.h for CRIS v10 and CRIS v32

16 years agoCRIS v32: Update and improve kernel/time.c
Jesper Nilsson [Tue, 4 Dec 2007 16:25:45 +0000 (17:25 +0100)]
CRIS v32: Update and improve kernel/time.c

- 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.

16 years agoCRIS v10: New default config.
Jesper Nilsson [Mon, 3 Dec 2007 10:37:14 +0000 (11:37 +0100)]
CRIS v10: New default config.

16 years agoCRIS v32: Minor fixes for io.h
Jesper Nilsson [Mon, 3 Dec 2007 10:16:25 +0000 (11:16 +0100)]
CRIS v32: Minor fixes for io.h

- Shorten include paths for machine dependent header files.
- Add volatile to hardeware register pointers.
- Add spinlocks around critical region.
- Expand macros for handling of leds.

16 years agoCRIS v32: Update and improve kernel/traps.c
Jesper Nilsson [Mon, 3 Dec 2007 10:12:10 +0000 (11:12 +0100)]
CRIS v32: Update and improve kernel/traps.c

- 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.

16 years agoCRIS v32: Minor updates to kernel/process.c
Jesper Nilsson [Mon, 3 Dec 2007 09:54:15 +0000 (10:54 +0100)]
CRIS v32: Minor updates to kernel/process.c

- 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.

16 years agoCRIS v32: Update and simplify kernel/irq.c.
Jesper Nilsson [Fri, 30 Nov 2007 17:09:54 +0000 (18:09 +0100)]
CRIS v32: Update and simplify kernel/irq.c.

- 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.

16 years agoCRIS v32: Update kernel/head.S
Jesper Nilsson [Fri, 30 Nov 2007 16:54:12 +0000 (17:54 +0100)]
CRIS v32: Update kernel/head.S

- 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.