From 139f9f28e9179a881c0bdd5c6bed6790591a07cb Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 30 Oct 2006 08:56:06 +0000 Subject: move the iriver h1x0/h3x0 targets to the target tree git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usb.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'firmware/usb.c') diff --git a/firmware/usb.c b/firmware/usb.c index f83cb44e17..a0ffef1011 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -155,26 +155,6 @@ void usb_enable(bool on) } } } -#elif defined(USB_IRIVERSTYLE) - if(on) - { - /* Power on the Cypress chip */ -#ifdef IRIVER_H100_SERIES - or_l(0x01000040, &GPIO_OUT); -#else - and_l(~0x00000008,&GPIO1_OUT); -#endif - sleep(2); - } - else - { - /* Power off the Cypress chip */ -#ifdef IRIVER_H100_SERIES - and_l(~0x01000040, &GPIO_OUT); -#else - or_l(0x00000008,&GPIO1_OUT); -#endif - } #elif defined(USB_ISP1582) /* TODO: Implement USB_ISP1582 */ (void) on; @@ -391,9 +371,6 @@ bool usb_detect(void) #ifdef USB_PLAYERSTYLE current_status = (PADR & 0x8000)?false:true; #endif -#ifdef USB_IRIVERSTYLE - current_status = (GPIO1_READ & 0x80)?true:false; -#endif #ifdef USB_GMINISTYLE current_status = (P5 & 0x10)?true:false; #endif @@ -481,24 +458,6 @@ void usb_init(void) #ifdef TARGET_TREE usb_init_device(); -#elif defined USB_IRIVERSTYLE - or_l(0x00000080, &GPIO1_FUNCTION); /* GPIO39 is the USB detect input */ - -#ifdef IRIVER_H300_SERIES - /* ISD300 3.3V ON */ - or_l(8,&GPIO1_FUNCTION); - or_l(8,&GPIO1_OUT); - or_l(8,&GPIO1_ENABLE); - - /* Tristate the SCK/SDA to the ISD300 config EEPROM */ - and_l(~0x03000000, &GPIO_ENABLE); - or_l(0x03000000, &GPIO_FUNCTION); -#else - and_l(~0x01000040, &GPIO_OUT); /* GPIO24 is the Cypress chip power */ - or_l(0x01000040, &GPIO_ENABLE); - or_l(0x01000040, &GPIO_FUNCTION); -#endif - #endif usb_enable(false); -- cgit v1.2.3