diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-05-22 06:25:57 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 01:39:48 -0400 |
commit | c21e783bafdd3d45b6aaa81a842ef29777c22326 (patch) | |
tree | e98fe425d91c1b4973bd5290ffbd2d46542904fa | |
parent | 86d688a3c370093f978c7ced9b510944301fc9d4 (diff) |
bf609: crypto: Add blackfin crypto crc driver platform data.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
-rw-r--r-- | arch/blackfin/mach-bf609/boards/ezkit.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c index 12488df1ac80..3064097b1503 100644 --- a/arch/blackfin/mach-bf609/boards/ezkit.c +++ b/arch/blackfin/mach-bf609/boards/ezkit.c | |||
@@ -947,6 +947,44 @@ static struct platform_device bfin_crc1_device = { | |||
947 | }; | 947 | }; |
948 | #endif | 948 | #endif |
949 | 949 | ||
950 | #if defined(CONFIG_CRYPTO_DEV_BFIN_CRC) | ||
951 | #define BFIN_CRYPTO_CRC_NAME "bfin-hmac-crc" | ||
952 | #define BFIN_CRYPTO_CRC_POLY_DATA 0x5c5c5c5c | ||
953 | |||
954 | static struct resource bfin_crypto_crc_resources[] = { | ||
955 | { | ||
956 | .start = REG_CRC0_CTL, | ||
957 | .end = REG_CRC0_REVID+4, | ||
958 | .flags = IORESOURCE_MEM, | ||
959 | }, | ||
960 | { | ||
961 | .start = IRQ_CRC0_DCNTEXP, | ||
962 | .end = IRQ_CRC0_DCNTEXP, | ||
963 | .flags = IORESOURCE_IRQ, | ||
964 | }, | ||
965 | { | ||
966 | .start = CH_MEM_STREAM0_SRC_CRC0, | ||
967 | .end = CH_MEM_STREAM0_SRC_CRC0, | ||
968 | .flags = IORESOURCE_DMA, | ||
969 | }, | ||
970 | { | ||
971 | .start = CH_MEM_STREAM0_DEST_CRC0, | ||
972 | .end = CH_MEM_STREAM0_DEST_CRC0, | ||
973 | .flags = IORESOURCE_DMA, | ||
974 | }, | ||
975 | }; | ||
976 | |||
977 | static struct platform_device bfin_crypto_crc_device = { | ||
978 | .name = BFIN_CRYPTO_CRC_NAME, | ||
979 | .id = 0, | ||
980 | .num_resources = ARRAY_SIZE(bfin_crypto_crc_resources), | ||
981 | .resource = bfin_crypto_crc_resources, | ||
982 | .dev = { | ||
983 | .platform_data = (void *)BFIN_CRYPTO_CRC_POLY_DATA, | ||
984 | }, | ||
985 | }; | ||
986 | #endif | ||
987 | |||
950 | #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) | 988 | #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) |
951 | static const struct ad7877_platform_data bfin_ad7877_ts_info = { | 989 | static const struct ad7877_platform_data bfin_ad7877_ts_info = { |
952 | .model = 7877, | 990 | .model = 7877, |
@@ -1261,6 +1299,9 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
1261 | &bfin_crc0_device, | 1299 | &bfin_crc0_device, |
1262 | &bfin_crc1_device, | 1300 | &bfin_crc1_device, |
1263 | #endif | 1301 | #endif |
1302 | #if defined(CONFIG_CRYPTO_DEV_BFIN_CRC) | ||
1303 | &bfin_crypto_crc_device, | ||
1304 | #endif | ||
1264 | 1305 | ||
1265 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 1306 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
1266 | &bfin_device_gpiokeys, | 1307 | &bfin_device_gpiokeys, |