aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-avr32
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-10-22 12:32:14 -0400
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-10-23 05:20:05 -0400
commiteaf5f925a31973e2fdc50c785665b90ff444eceb (patch)
tree68cfd362cc740aebe06a857a96b80d5446d4467a /include/asm-avr32
parent2042c1c4e7a5e3b69ff3c3c5db6bf6416abd8b24 (diff)
[AVR32] Implement at32_add_device_cf()
Implement at32_add_device_cf() which will add a platform_device for the at32_cf driver (not merged yet). Separate out most of the at32_add_device_ide() code and use it to implement at32_add_device_cf() as well. This changes the API in the following ways: * The board code must initialize data->cs to the chipselect ID to use before calling any of these functions. * The board code must use GPIO_PIN_NONE to indicate unused CF pins. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32')
-rw-r--r--include/asm-avr32/arch-at32ap/board.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h
index 946378a1b6b5..d6993a6b6473 100644
--- a/include/asm-avr32/arch-at32ap/board.h
+++ b/include/asm-avr32/arch-at32ap/board.h
@@ -70,4 +70,15 @@ struct platform_device *at32_add_device_mci(unsigned int id);
70struct platform_device *at32_add_device_ac97c(unsigned int id); 70struct platform_device *at32_add_device_ac97c(unsigned int id);
71struct platform_device *at32_add_device_abdac(unsigned int id); 71struct platform_device *at32_add_device_abdac(unsigned int id);
72 72
73struct cf_platform_data {
74 int detect_pin;
75 int reset_pin;
76 int vcc_pin;
77 int ready_pin;
78 u8 cs;
79};
80struct platform_device *
81at32_add_device_cf(unsigned int id, unsigned int extint,
82 struct cf_platform_data *data);
83
73#endif /* __ASM_ARCH_BOARD_H */ 84#endif /* __ASM_ARCH_BOARD_H */