Commit Graph

70 Commits

Author SHA1 Message Date
Markus Fröschle
9ecbac9765 fixed to run from flash and ram identically. Also fixed to run EmuTOS with BaS on the m5484lite 2013-12-07 21:16:36 +00:00
Markus Fröschle
eb809cf7b4 modified to suppress debug prints if not needed 2013-12-07 06:57:50 +00:00
Markus Fröschle
7f01222e0d added debug_printf() to enable suppresion of output with preprocessor statements 2013-11-22 10:07:38 +00:00
Markus Fröschle
2d5d8d6267 added wait() for FireBee USB again 2013-11-21 19:57:39 +00:00
Markus Fröschle
ccf7724956 fixed comments 2013-11-15 07:55:23 +00:00
Markus Fröschle
b7d60e168c added chip_errata() to word and byte config space writes 2013-11-14 22:57:49 +00:00
Markus Fröschle
ab59c42046 fixex wrong parentheses in pci_write_config_longword() 2013-11-13 21:08:52 +00:00
Markus Fröschle
16ff2be32f XL bus master priorities were the wrong way round 2013-11-13 12:46:00 +00:00
Markus Fröschle
d1bdb72005 updated with some PCI code lend from the Linux BSP for Coldfire boards 2013-11-13 11:34:35 +00:00
Markus Fröschle
d9e396b1fb added programmed XLBUS arbiter master priorities 2013-11-12 09:50:17 +00:00
Markus Fröschle
b58d383585 added more diagnostics 2013-11-11 21:14:37 +00:00
Markus Fröschle
4eda96eb60 enable device after configuration 2013-11-11 17:08:40 +00:00
Markus Fröschle
0c1ea5b610 still target aborts 2013-11-10 18:11:33 +00:00
Markus Fröschle
7995c466b0 still nothing but target aborts 2013-11-10 06:45:26 +00:00
Markus Fröschle
f749ee6a13 still hangs, unfortunately 2013-11-09 19:57:16 +00:00
Markus Fröschle
e377a75c17 hang on USB hc reset 2013-11-09 18:09:01 +00:00
Markus Fröschle
37dc24315a USB chip registers seem to be visible now 2013-11-09 17:35:49 +00:00
Markus Fröschle
aef0b63e89 more consistant file name 2013-11-09 08:46:01 +00:00
Markus Fröschle
3d711e37f2 USB controller detected on FireBee - needs a long wait time for config access there... 2013-11-09 08:33:26 +00:00
Markus Fröschle
4d27bb6f20 moved code around to try and determine why PCI memory mapping doesn't work as expected 2013-11-08 17:34:08 +00:00
Markus Fröschle
7b6dca54d4 added interrupt service routine for PCI errors. Fixed XLB macros (contained double undescores for _MBAR) 2013-11-08 13:59:39 +00:00
Markus Fröschle
d85ef98ded modified pci_device_config() to support byteswapped config access functions 2013-11-08 06:45:51 +00:00
Markus Fröschle
fd8afbdc9c cleanly finish configuration access cycle in pci_write_config_longword 2013-11-08 05:45:12 +00:00
Markus Fröschle
fdc5f2efd5 cleanly finish PCI configuration access in pci_read_config_longword 2013-11-08 05:43:29 +00:00
Markus Fröschle
2e304dd9ff fixed for little endian PCIBIOS routines. Fixed bus enumeration 2013-11-07 19:46:44 +00:00
Markus Fröschle
f5ddbabee5 modified PCI access routines to closer follow pcibios standard 2013-11-07 11:31:10 +00:00
Markus Fröschle
967ba02f67 (nearly) fixed pci_find_device() 2013-11-07 07:45:54 +00:00
Markus Fröschle
a76deac026 fixed multi-function devices 2013-11-07 06:03:49 +00:00
Markus Fröschle
de9a84f48a cleaned up pci_find_device() 2013-11-07 06:00:30 +00:00
Markus Fröschle
c3090bc925 removed unused code 2013-11-06 14:31:52 +00:00
Markus Fröschle
0c7802b9e4 controlled PCI reset 2013-11-06 14:27:42 +00:00
Markus Fröschle
ea198ced78 rewritten device scan and corrected PCI address mapping 2013-11-06 13:21:32 +00:00
Markus Fröschle
cde22b002b cleaned up pci initialization and moved call behind FPGA initialization (pin assignments collide) 2013-11-06 06:09:36 +00:00
Markus Fröschle
c29dfc3036 got rid of global statics 2013-11-05 21:29:30 +00:00
Markus Fröschle
c6c9fb62b8 renamed "slot" to "device" for better wording 2013-11-05 20:52:20 +00:00
Markus Fröschle
5ea3d8c37f fixed handle handling and reduced wait time for config space access 2013-11-05 20:20:52 +00:00
Markus Fröschle
2e64c35a5a increased latency timer. It seems some config space accesses time out. Let's see if this fixes anythint 2013-11-05 11:04:59 +00:00
Markus Fröschle
ee8a95855f fixed bug in pci_scan that prevented the handles array to be filled correctly 2013-11-05 09:22:21 +00:00
Markus Fröschle
e1f38dd8f5 polished PCI controller initialization 2013-11-05 06:17:30 +00:00
Markus Fröschle
1ca096c9f0 initialize static arrays to 0 2013-11-05 05:57:59 +00:00
Markus Fröschle
7db9dadf9e renamed struct pci_resource_descriptor to struct pci_rd 2013-11-05 05:56:19 +00:00
Markus Fröschle
6af7f6f35b fixed resource descriptors 2013-11-05 05:47:11 +00:00
Markus Fröschle
a3b2371608 fixed a few bugs but still no go.
Seem to have problems with global variables?
2013-11-04 20:58:57 +00:00
Markus Fröschle
89a2028a83 added comments 2013-11-03 20:24:49 +00:00
Markus Fröschle
e58e7ffa99 modified to detect FireBee USB 2013-11-03 14:14:33 +00:00
Markus Fröschle
5dadc3a143 implemented an (ugly) implementation for pci_get_resource(). USB init code still hangs. 2013-11-03 13:38:18 +00:00
Markus Fröschle
f36016f12d code runs until ohci_lowlevel_init() but can't continue since pci_get_resource() is not implemented yet 2013-11-03 11:20:39 +00:00
Markus Fröschle
459722216f fixed more undefined symbols 2013-11-03 09:10:29 +00:00
Markus Fröschle
8039abec46 implemented more helper functions needed by usb 2013-11-03 08:19:19 +00:00
Markus Fröschle
3689373d8d code compiles - not tested yet 2013-11-03 07:07:43 +00:00