diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
commit | 24a77daf3d80bddcece044e6dc3675e427eef3f3 (patch) | |
tree | 2c5e0b0bea394d6fe62c5d5857c252e83e48ac48 /arch/powerpc/sysdev/qe_lib | |
parent | e389f9aec689209724105ae80a6c91fd2e747bc9 (diff) | |
parent | f900e9777fc9b65140cb9570438597bc8fae56ab (diff) |
Merge branch 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (255 commits)
[POWERPC] Remove dev_dbg redefinition in drivers/ps3/vuart.c
[POWERPC] remove kernel module option for booke wdt
[POWERPC] Avoid putting cpu node twice
[POWERPC] Spinlock initializer cleanup
[POWERPC] ppc4xx_sgdma needs dma-mapping.h
[POWERPC] arch/powerpc/sysdev/timer.c build fix
[POWERPC] get_property cleanups
[POWERPC] Remove the unused HTDMSOUND driver
[POWERPC] cell: cbe_cpufreq cleanup and crash fix
[POWERPC] Declare enable_kernel_spe in a header
[POWERPC] Add dt_xlate_addr() to bootwrapper
[POWERPC] bootwrapper: CONFIG_ -> CONFIG_DEVICE_TREE
[POWERPC] Don't define a custom bd_t for Xilixn Virtex based boards.
[POWERPC] Add sane defaults for Xilinx EDK generated xparameters files
[POWERPC] Add uartlite boot console driver for the zImage wrapper
[POWERPC] Stop using ppc_sys for Xilinx Virtex boards
[POWERPC] New registration for common Xilinx Virtex ppc405 platform devices
[POWERPC] Merge common virtex header files
[POWERPC] Rework Kconfig dependancies for Xilinx Virtex ppc405 platform
[POWERPC] Clean up cpufreq Kconfig dependencies
...
Diffstat (limited to 'arch/powerpc/sysdev/qe_lib')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 4 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe_io.c | 6 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/ucc_slow.c | 4 |
4 files changed, 9 insertions, 15 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/Kconfig b/arch/powerpc/sysdev/qe_lib/Kconfig index a725e80befa8..887739f3badc 100644 --- a/arch/powerpc/sysdev/qe_lib/Kconfig +++ b/arch/powerpc/sysdev/qe_lib/Kconfig | |||
@@ -2,11 +2,8 @@ | |||
2 | # QE Communication options | 2 | # QE Communication options |
3 | # | 3 | # |
4 | 4 | ||
5 | menu "QE Options" | ||
6 | depends on QUICC_ENGINE | ||
7 | |||
8 | config UCC_SLOW | 5 | config UCC_SLOW |
9 | bool "UCC Slow Protocols Support" | 6 | bool |
10 | default n | 7 | default n |
11 | select UCC | 8 | select UCC |
12 | help | 9 | help |
@@ -14,10 +11,9 @@ config UCC_SLOW | |||
14 | protocols: UART, BISYNC, QMC | 11 | protocols: UART, BISYNC, QMC |
15 | 12 | ||
16 | config UCC_FAST | 13 | config UCC_FAST |
17 | bool "UCC Fast Protocols Support" | 14 | bool |
18 | default n | 15 | default n |
19 | select UCC | 16 | select UCC |
20 | select UCC_SLOW | ||
21 | help | 17 | help |
22 | This option provides qe_lib support to UCC fast | 18 | This option provides qe_lib support to UCC fast |
23 | protocols: HDLC, Ethernet, ATM, transparent | 19 | protocols: HDLC, Ethernet, ATM, transparent |
@@ -26,5 +22,3 @@ config UCC | |||
26 | bool | 22 | bool |
27 | default y if UCC_FAST || UCC_SLOW | 23 | default y if UCC_FAST || UCC_SLOW |
28 | 24 | ||
29 | endmenu | ||
30 | |||
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index 43f6cc9d7ea0..7f4c07543961 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -71,7 +71,7 @@ phys_addr_t get_qe_base(void) | |||
71 | qe = of_find_node_by_type(NULL, "qe"); | 71 | qe = of_find_node_by_type(NULL, "qe"); |
72 | if (qe) { | 72 | if (qe) { |
73 | unsigned int size; | 73 | unsigned int size; |
74 | const void *prop = get_property(qe, "reg", &size); | 74 | const void *prop = of_get_property(qe, "reg", &size); |
75 | qebase = of_translate_address(qe, prop); | 75 | qebase = of_translate_address(qe, prop); |
76 | of_node_put(qe); | 76 | of_node_put(qe); |
77 | }; | 77 | }; |
@@ -158,7 +158,7 @@ unsigned int get_brg_clk(void) | |||
158 | qe = of_find_node_by_type(NULL, "qe"); | 158 | qe = of_find_node_by_type(NULL, "qe"); |
159 | if (qe) { | 159 | if (qe) { |
160 | unsigned int size; | 160 | unsigned int size; |
161 | const u32 *prop = get_property(qe, "brg-frequency", &size); | 161 | const u32 *prop = of_get_property(qe, "brg-frequency", &size); |
162 | brg_clk = *prop; | 162 | brg_clk = *prop; |
163 | of_node_put(qe); | 163 | of_node_put(qe); |
164 | }; | 164 | }; |
diff --git a/arch/powerpc/sysdev/qe_lib/qe_io.c b/arch/powerpc/sysdev/qe_lib/qe_io.c index 0afe6bfe3714..e32b45bf9ff5 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_io.c +++ b/arch/powerpc/sysdev/qe_lib/qe_io.c | |||
@@ -53,7 +53,7 @@ int par_io_init(struct device_node *np) | |||
53 | return ret; | 53 | return ret; |
54 | par_io = ioremap(res.start, res.end - res.start + 1); | 54 | par_io = ioremap(res.start, res.end - res.start + 1); |
55 | 55 | ||
56 | num_ports = get_property(np, "num-ports", NULL); | 56 | num_ports = of_get_property(np, "num-ports", NULL); |
57 | if (num_ports) | 57 | if (num_ports) |
58 | num_par_io_ports = *num_ports; | 58 | num_par_io_ports = *num_ports; |
59 | 59 | ||
@@ -161,7 +161,7 @@ int par_io_of_config(struct device_node *np) | |||
161 | return -1; | 161 | return -1; |
162 | } | 162 | } |
163 | 163 | ||
164 | ph = get_property(np, "pio-handle", NULL); | 164 | ph = of_get_property(np, "pio-handle", NULL); |
165 | if (ph == 0) { | 165 | if (ph == 0) { |
166 | printk(KERN_ERR "pio-handle not available \n"); | 166 | printk(KERN_ERR "pio-handle not available \n"); |
167 | return -1; | 167 | return -1; |
@@ -169,7 +169,7 @@ int par_io_of_config(struct device_node *np) | |||
169 | 169 | ||
170 | pio = of_find_node_by_phandle(*ph); | 170 | pio = of_find_node_by_phandle(*ph); |
171 | 171 | ||
172 | pio_map = get_property(pio, "pio-map", &pio_map_len); | 172 | pio_map = of_get_property(pio, "pio-map", &pio_map_len); |
173 | if (pio_map == NULL) { | 173 | if (pio_map == NULL) { |
174 | printk(KERN_ERR "pio-map is not set! \n"); | 174 | printk(KERN_ERR "pio-map is not set! \n"); |
175 | return -1; | 175 | return -1; |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index 817df73ecf56..b930d686a4d1 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c | |||
@@ -187,7 +187,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
187 | uccs->us_pram = qe_muram_addr(uccs->us_pram_offset); | 187 | uccs->us_pram = qe_muram_addr(uccs->us_pram_offset); |
188 | 188 | ||
189 | /* Init Guemr register */ | 189 | /* Init Guemr register */ |
190 | if ((ret = ucc_init_guemr((struct ucc_common *) (us_info->regs)))) { | 190 | if ((ret = ucc_init_guemr((struct ucc_common *) us_regs))) { |
191 | printk(KERN_ERR "%s: cannot init GUEMR", __FUNCTION__); | 191 | printk(KERN_ERR "%s: cannot init GUEMR", __FUNCTION__); |
192 | ucc_slow_free(uccs); | 192 | ucc_slow_free(uccs); |
193 | return ret; | 193 | return ret; |
@@ -195,7 +195,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
195 | 195 | ||
196 | /* Set UCC to slow type */ | 196 | /* Set UCC to slow type */ |
197 | if ((ret = ucc_set_type(us_info->ucc_num, | 197 | if ((ret = ucc_set_type(us_info->ucc_num, |
198 | (struct ucc_common *) (us_info->regs), | 198 | (struct ucc_common *) us_regs, |
199 | UCC_SPEED_TYPE_SLOW))) { | 199 | UCC_SPEED_TYPE_SLOW))) { |
200 | printk(KERN_ERR "%s: cannot set UCC type", __FUNCTION__); | 200 | printk(KERN_ERR "%s: cannot set UCC type", __FUNCTION__); |
201 | ucc_slow_free(uccs); | 201 | ucc_slow_free(uccs); |