- 08 Feb, 2008 40 commits
-
-
Jesper Nilsson authored
- Change spin_lock + local_irq_save into spin_lock_irqsave - Change spin_unlock + local_irq_restore into spin_unlock_irqrestore - Return ENOTTY if ioctl is not recognized as a cris ioctl. - Make init functions static.
-
Jesper Nilsson authored
Changes as suggested by Andrew Morton, plus general cleanup to ease later consolidation of driver into machine common driver. - Correct parameter type of gpio_write to const char __user * - Remove volatile from the arrays of machine dependent registers, use readl and writel to access them instead. - Remove useless casts of void. - Use spin_lock_irqsave for locking. - Break gpio_write into smaller sub-functions. - Remove useless breaks after returns. - Don't perform any change in IO_CFG_WRITE_MODE if values are invalid. (previously values were set and then set to zero) - Change cast for copy_to_user to (void __user *) - Make file_operations gpio_fops static and const. - Make setget_output static. (However, it's still inline since the CRIS architecture is still not SMP, which makes the function small enough to inline)
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
Clean up issues noticed by Andrew Morton: - Use a combined struct for allocating the mtd_info and nand_chip structs instead of using anonymous memory as the example in Documentation/DocBook/mtdnand.tmpl - Use kzalloc instead of using kmalloc/memset(0) - Make crisv32_device_ready static.
-
Jesper Nilsson authored
- Change parameters of gpio_write (const char * buf -> const char __user *buf) - Don't initialize static variables to zero. - Remove useless casts from void. - Change name of interrupt routine (gpio_pa_interrupt -> gpio_interrupt) - Use kzmalloc instead of allocating memory and zeroing it manually. - Correct casts for copy_to_user and copy_from_user to (void __user *) - Make file_operations gpio_fops static. - Make ioif_watcher static, not used outside this file.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
- Add ifdef around macros to read and write hardware registers - Add parens around REG_READ expression to avoid possible precedence errors. - Remove useless CVS id tag.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
This file is machine dependent, and needs to be in asm-cris/arch-v32/mach-fs/hwregs/reg_map.h instead.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
CRIS v32 is not SMP.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
Deallocation was not possible before, but is now.
-
Jesper Nilsson authored
Also, fix a typo.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
- 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.
-
Jesper Nilsson authored
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.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
Both of these are implemented using cris_delay10ns().
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
This is done to avoid collision with linux/leds.h
-
Jesper Nilsson authored
-
Jesper Nilsson authored
Also, clean up some whitespace errors.
-
Jesper Nilsson authored
Also, fix some white space errors, and constify cpuinfo_op.
-
Jesper Nilsson authored
-
Jesper Nilsson authored
-
Jesper Nilsson authored
Also, fix some whitespace errors.
-
Jesper Nilsson authored
-