Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220325
b: refs/heads/master
c: 6566961
h: refs/heads/master
i:
  220323: 28835c9
v: v3
  • Loading branch information
Bernhard Walle authored and Greg Kroah-Hartman committed Oct 14, 2010
1 parent 1d979df commit 8bc827d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 49 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 310bad04ec123dd79c58dfe43063d6ba4f52d934
refs/heads/master: 6566961fcb651e6081aff9eabf4362d1b3821482
19 changes: 0 additions & 19 deletions trunk/drivers/staging/octeon/cvmx-helper-board.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,22 +693,3 @@ int __cvmx_helper_board_hardware_enable(int interface)
}
return 0;
}

cvmx_helper_board_usb_clock_types_t __cvmx_helper_board_usb_get_clock_type(void)
{
switch (cvmx_sysinfo_get()->board_type) {
case CVMX_BOARD_TYPE_BBGW_REF:
return USB_CLOCK_TYPE_CRYSTAL_12;
}
return USB_CLOCK_TYPE_REF_48;
}

int __cvmx_helper_board_usb_get_num_ports(int supported_ports)
{
switch (cvmx_sysinfo_get()->board_type) {
case CVMX_BOARD_TYPE_NIC_XLE_4G:
return 0;
}

return supported_ports;
}
29 changes: 0 additions & 29 deletions trunk/drivers/staging/octeon/cvmx-helper-board.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@

#include "cvmx-helper.h"

typedef enum {
USB_CLOCK_TYPE_REF_12,
USB_CLOCK_TYPE_REF_24,
USB_CLOCK_TYPE_REF_48,
USB_CLOCK_TYPE_CRYSTAL_12,
} cvmx_helper_board_usb_clock_types_t;

typedef enum {
set_phy_link_flags_autoneg = 0x1,
set_phy_link_flags_flow_control_dont_touch = 0x0 << 1,
Expand Down Expand Up @@ -155,26 +148,4 @@ extern int __cvmx_helper_board_interface_probe(int interface,
*/
extern int __cvmx_helper_board_hardware_enable(int interface);

/**
* Gets the clock type used for the USB block based on board type.
* Used by the USB code for auto configuration of clock type.
*
* Returns USB clock type enumeration
*/
cvmx_helper_board_usb_clock_types_t
__cvmx_helper_board_usb_get_clock_type(void);

/**
* Adjusts the number of available USB ports on Octeon based on board
* specifics.
*
* @supported_ports: expected number of ports based on chip type;
*
*
* Returns number of available usb ports, based on board specifics.
* Return value is supported_ports if function does not
* override.
*/
int __cvmx_helper_board_usb_get_num_ports(int supported_ports);

#endif /* __CVMX_HELPER_BOARD_H__ */

0 comments on commit 8bc827d

Please sign in to comment.