diff options
Diffstat (limited to 'arch/m68k/mac')
-rw-r--r-- | arch/m68k/mac/config.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index c8a4c39cef56..91245ade2290 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c | |||
@@ -911,6 +911,16 @@ static struct platform_device swim_pdev = { | |||
911 | .resource = &swim_rsrc, | 911 | .resource = &swim_rsrc, |
912 | }; | 912 | }; |
913 | 913 | ||
914 | static struct platform_device esp_0_pdev = { | ||
915 | .name = "mac_esp", | ||
916 | .id = 0, | ||
917 | }; | ||
918 | |||
919 | static struct platform_device esp_1_pdev = { | ||
920 | .name = "mac_esp", | ||
921 | .id = 1, | ||
922 | }; | ||
923 | |||
914 | int __init mac_platform_init(void) | 924 | int __init mac_platform_init(void) |
915 | { | 925 | { |
916 | u8 *swim_base; | 926 | u8 *swim_base; |
@@ -944,6 +954,23 @@ int __init mac_platform_init(void) | |||
944 | platform_device_register(&swim_pdev); | 954 | platform_device_register(&swim_pdev); |
945 | } | 955 | } |
946 | 956 | ||
957 | /* | ||
958 | * SCSI device(s) | ||
959 | */ | ||
960 | |||
961 | switch (macintosh_config->scsi_type) { | ||
962 | case MAC_SCSI_QUADRA: | ||
963 | case MAC_SCSI_QUADRA3: | ||
964 | platform_device_register(&esp_0_pdev); | ||
965 | break; | ||
966 | case MAC_SCSI_QUADRA2: | ||
967 | platform_device_register(&esp_0_pdev); | ||
968 | if ((macintosh_config->ident == MAC_MODEL_Q900) || | ||
969 | (macintosh_config->ident == MAC_MODEL_Q950)) | ||
970 | platform_device_register(&esp_1_pdev); | ||
971 | break; | ||
972 | } | ||
973 | |||
947 | return 0; | 974 | return 0; |
948 | } | 975 | } |
949 | 976 | ||