Timur Tabi 6b0b594bb8 [POWERPC] qe: miscellaneous code improvements and fixes to the QE library
This patch makes numerous miscellaneous code improvements to the QE library.

1. Remove struct ucc_common and merge ucc_init_guemr() into ucc_set_type()
   (every caller of ucc_init_guemr() also calls ucc_set_type()).  Modify all
   callers of ucc_set_type() accordingly.

2. Remove the unused enum ucc_pram_initial_offset.

3. Refactor qe_setbrg(), also implement work-around for errata QE_General4.

4. Several printk() calls were missing the terminating \n.

5. Add __iomem where needed, and change u16 to __be16 and u32 to __be32 where
   appropriate.

6. In ucc_slow_init() the RBASE and TBASE registers in the PRAM were programmed
   with the wrong value.

7. Add the protocol type to struct us_info and updated ucc_slow_init() to
   use it, instead of always programming QE_CR_PROTOCOL_UNSPECIFIED.

8. Rename ucc_slow_restart_x() to ucc_slow_restart_tx()

9. Add several macros in qe.h (mostly for slow UCC support, but also to
   standardize some naming convention) and remove several unused macros.

10. Update ucc_geth.c to use the new macros.

11. Add ucc_slow_info.protocol to specify which QE_CR_PROTOCOL_xxx protcol
    to use when initializing the UCC in ucc_slow_init().

12. Rename ucc_slow_pram.rfcr to rbmr and ucc_slow_pram.tfcr to tbmr, since
    these are the real names of the registers.

13. Use the setbits, clrbits, and clrsetbits where appropriate.

14. Refactor ucc_set_qe_mux_rxtx().

15. Remove all instances of 'volatile'.

16. Simplify get_cmxucr_reg();

17. Replace qe_mux.cmxucrX with qe_mux.cmxucr[].

18. Updated struct ucc_geth because struct ucc_fast is not padded any more.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2007-10-08 08:38:15 -05:00
..
2007-05-24 16:36:51 -07:00
2007-09-12 23:54:50 -04:00
2007-08-31 07:29:08 -04:00
2007-09-13 00:13:51 -04:00
2007-07-31 15:39:40 -07:00
2007-07-10 22:08:12 -07:00
2007-09-20 02:35:50 -04:00
2007-09-15 19:35:14 -04:00
2007-07-31 15:39:42 -07:00
2007-10-02 12:59:10 -04:00
2007-08-14 01:38:37 -04:00
2007-02-09 09:14:07 -08:00
2006-09-13 13:24:59 -04:00
2006-09-13 13:24:59 -04:00
2007-07-10 22:08:12 -07:00
2006-09-13 13:24:59 -04:00
2006-09-13 13:24:59 -04:00
2007-07-10 22:08:12 -07:00
2006-09-13 13:24:59 -04:00
2007-07-10 12:41:08 -04:00
2007-07-10 22:08:12 -07:00
2006-09-13 13:24:59 -04:00
2007-02-09 09:14:07 -08:00
2007-06-01 08:18:27 -07:00
2007-07-10 22:08:12 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-10 22:08:12 -07:00
2007-08-14 01:34:53 -04:00
2007-07-08 22:16:40 -04:00
2006-09-13 13:24:59 -04:00
2007-05-03 13:21:48 -07:00
2007-05-03 13:21:13 -07:00
2007-09-20 12:14:21 -07:00
2007-07-18 01:46:46 -07:00
2007-07-11 16:02:11 -07:00
2006-09-13 13:24:59 -04:00
2005-04-16 15:20:36 -07:00
2007-02-09 16:23:17 +00:00
2006-09-13 13:24:59 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-13 13:24:59 -04:00
2007-08-25 02:31:04 -04:00
2005-05-15 18:31:07 -04:00
2007-02-09 09:14:07 -08:00
2007-05-09 08:57:56 +02:00
2007-07-10 22:08:12 -07:00
2007-08-26 18:35:38 -07:00
2007-02-09 09:14:07 -08:00
2006-09-13 13:24:59 -04:00
2007-07-10 22:08:12 -07:00
2007-08-25 02:30:57 -04:00
2007-07-30 15:48:16 -04:00
2007-07-30 15:48:16 -04:00
2007-07-18 18:29:37 -04:00
2007-07-08 22:16:38 -04:00
2007-07-10 22:08:12 -07:00
2006-09-13 13:24:59 -04:00
2006-12-09 09:41:18 -08:00
2005-04-16 15:20:36 -07:00
2006-12-02 00:11:56 -05:00
2007-08-07 17:36:20 -04:00
2007-08-07 17:34:13 -04:00
2007-08-31 06:52:57 -04:00
2007-05-04 17:59:08 -07:00
2007-09-15 19:35:14 -04:00
2007-07-26 11:35:17 -07:00
2005-04-16 15:20:36 -07:00
2007-07-20 08:24:49 -07:00
2007-05-04 17:59:07 -07:00
2007-07-16 18:28:04 -04:00
2007-07-16 18:28:04 -04:00
2005-04-16 15:20:36 -07:00
2007-07-10 12:41:18 -04:00
2007-05-04 17:59:08 -07:00
2007-07-14 18:55:06 -07:00
2007-09-15 19:35:14 -04:00
2007-08-25 02:30:59 -04:00
2007-05-09 08:57:56 +02:00
2007-04-28 11:01:05 -04:00
2007-08-14 01:36:39 -04:00
2006-12-04 02:00:34 -05:00
2006-12-02 21:22:37 -08:00
2007-07-10 22:08:12 -07:00
2006-09-13 13:24:59 -04:00
2007-07-10 22:08:12 -07:00
2006-09-13 13:24:59 -04:00
2007-07-18 18:29:38 -04:00
2005-04-16 15:20:36 -07:00
2007-07-18 18:29:37 -04:00
2007-05-15 17:44:39 -04:00
2007-07-10 22:08:12 -07:00
2007-04-25 22:24:41 -07:00
2007-07-30 15:56:04 -04:00
2007-08-03 15:10:44 -07:00
2007-07-18 18:29:38 -04:00
2007-08-07 17:18:32 -04:00
2007-07-10 12:24:42 -04:00
2006-09-13 13:24:59 -04:00
2007-04-28 11:01:00 -04:00
2007-09-27 23:32:29 -04:00
2006-09-13 13:24:59 -04:00
2007-08-26 18:35:39 -07:00
2006-09-13 13:24:59 -04:00
2007-05-15 17:44:39 -04:00
2007-02-09 09:14:07 -08:00
2007-02-09 09:14:07 -08:00
2007-05-04 17:59:08 -07:00
2007-07-16 15:02:47 +02:00
2005-04-16 15:20:36 -07:00
2007-07-10 22:08:12 -07:00
2007-07-10 22:08:12 -07:00
2007-07-10 22:08:12 -07:00
2007-07-10 22:08:12 -07:00
2005-04-16 15:20:36 -07:00
2007-09-11 10:28:44 +02:00
2007-07-18 21:49:10 -07:00
2006-11-22 14:57:56 +00:00
2007-09-13 15:43:46 -05:00
2007-07-31 15:39:40 -07:00
2007-02-09 09:14:07 -08:00
2007-07-10 22:08:12 -07:00
2006-12-02 00:11:56 -05:00