Browse Source

make sm502 init nb serial and ignore some check error of usb_storage.

master
root 17 years ago
parent
commit
3938783ec0
  1. 4
      Targets/Bonito2fdev/Bonito/start_sm502.S
  2. 2
      sys/dev/usb/usb_storage.c

4
Targets/Bonito2fdev/Bonito/start_sm502.S

@ -1280,13 +1280,11 @@ LEAF(initserial)
.set noat
move AT,ra
#ifdef HAVE_NB_SERIAL
la v0, COM3_BASE_ADDR
li a0, NS16550HZ/(16*CONS_BAUD)
bal 1f
nop
#else
#ifndef HAVE_NB_SERIAL
#define SM502_ADDR 0xb6030000
#define NSREG(x) (x*4)
#define SM502_UART_FRE 96000000

2
sys/dev/usb/usb_storage.c

@ -1157,7 +1157,7 @@ int usb_storage_probe(struct usb_device *dev, unsigned int ifnum,struct us_data
!ss->ep_in || !ss->ep_out ||
(ss->protocol == US_PR_CBI && ss->ep_int == 0)) {
USB_STOR_PRINTF("Problems with device\n");
return 0;
//return 0;
}
/* set class specific stuff */
/* We only handle certain protocols. Currently, these are

Loading…
Cancel
Save