summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
theStack [Sat, 19 Sep 2009 02:22:39 +0000 (04:22 +0200)]
corrected memalign call
Bernhard Urban [Sat, 19 Sep 2009 00:36:53 +0000 (02:36 +0200)]
various changes, see difflog for details!
theStack [Fri, 18 Sep 2009 23:52:48 +0000 (01:52 +0200)]
adapted setup_port to old, clean state
but with our evil return; hack :)
theStack [Fri, 18 Sep 2009 23:41:06 +0000 (01:41 +0200)]
port enable and reset problem solved (tmp commit)
Bernhard Urban [Fri, 18 Sep 2009 23:14:27 +0000 (01:14 +0200)]
it works now, but we don't know why... *sigh* :(
Bernhard Urban [Fri, 18 Sep 2009 21:56:25 +0000 (23:56 +0200)]
tmp commit
Bernhard Urban [Fri, 18 Sep 2009 20:30:04 +0000 (22:30 +0200)]
roothubports will be configured after init of ohci
theStack [Fri, 18 Sep 2009 20:12:59 +0000 (22:12 +0200)]
tried to fix port enable/reset bug - didn't work
Bernhard Urban [Fri, 18 Sep 2009 19:41:13 +0000 (21:41 +0200)]
some roothub stuff added. TD transfer without errors, w00t!
Bernhard Urban [Fri, 18 Sep 2009 18:50:36 +0000 (20:50 +0200)]
added HC roothub output to isr (only on "RootHubStatusChange")
Bernhard Urban [Fri, 18 Sep 2009 03:06:55 +0000 (05:06 +0200)]
dummyconfig is now static, however control_quirk is still needed. (wtf)
Bernhard Urban [Fri, 18 Sep 2009 00:43:32 +0000 (02:43 +0200)]
add debugfunction for td->flag
finally we get some response from HC :) however our TDs seems to be
bullshit :/
@commit
8dbf7ef007d1d:
I think the problem here was that tailp and headp of the ED structure
was set to the same location. In this case, the HC thinks all TDs are
done! So HC set CLF to null. (search for this somewhere in the ohci specs...)
In fact, just headp must be set.
Bernhard Urban [Thu, 17 Sep 2009 23:46:46 +0000 (01:46 +0200)]
ehm..., something happen! :D
Bernhard Urban [Thu, 17 Sep 2009 23:10:53 +0000 (01:10 +0200)]
so, the HC clears CLF (ControlListFilled bit of the register "Command Status") immediately after setting it.
the ohci specs says:
"This bit is used to indicate whether there are any TDs on the Control
list. It is set by HCD whenever it adds a TD to an ED in the Control
list." [so far so good]
"When HC begins to process the head of the Control list, it checks CLF.
As long as ControlListFilled is 0, HC will not start processing the
Control list. If CLF is 1, HC will start processing the Control list and
will set ControlListFilled to 0. If HC finds a TD on the list, then HC
will set ControlListFilled to 1 causing the Control list processing to
continue. If no TD is found on the Control list, and if the HCD does not
set ControlListFilled, then ControlListFilled will still be 0 when HC
completes processing the Control list and Control list processing will
stop."
What does it mean for us? HC don't find the TD?
Bernhard Urban [Thu, 17 Sep 2009 22:21:13 +0000 (00:21 +0200)]
amend it!
Bernhard Urban [Thu, 17 Sep 2009 21:31:48 +0000 (23:31 +0200)]
new hottie: calloc != memalign. after s/calloc/memalign the HC
don't move HEAD to CURRENT, wtf? :/
Bernhard Urban [Thu, 17 Sep 2009 20:07:14 +0000 (22:07 +0200)]
some debugoutputstuff and few changes
Bernhard Urban [Thu, 17 Sep 2009 17:25:18 +0000 (19:25 +0200)]
[tmp] byte order changes in usb_control_msg() (usb.c). somehow it need
fewer packets (more realistic?). further investigation will be done
soon.
theStack [Wed, 16 Sep 2009 20:15:52 +0000 (22:15 +0200)]
removed decrementer exception message
because it's getting on my nerves while browsing
the host controller output...
theStack [Wed, 16 Sep 2009 19:48:05 +0000 (21:48 +0200)]
first usage of ACCESS_LE throughout the file
it is NOT tested yet, but hey, it compiles ;-)
theStack [Wed, 16 Sep 2009 19:26:40 +0000 (21:26 +0200)]
add macro for u32 little endian access from ppc
Bernhard Urban [Wed, 16 Sep 2009 16:19:51 +0000 (18:19 +0200)]
[tmp] speicherprobleme behoben; in current bleibt der erste endpoint
"haengen"
weiters steht merkuwerdiger weise die adresse (0x80008000) nach
"warmstart" in current -- WTF?
im "done head" leider noch immer nix :( vielleicht ist die endianess
schuld?! (le<>be)
Bernhard Urban [Wed, 16 Sep 2009 16:06:29 +0000 (18:06 +0200)]
[tmp] geht grad nix :(
Bernhard Urban [Wed, 16 Sep 2009 03:47:29 +0000 (05:47 +0200)]
attempt to get some TDs through the HC -> fail :(
theStack [Wed, 16 Sep 2009 02:09:05 +0000 (04:09 +0200)]
happy whitespace hunting in sauter stack
(only files that are relevant for us)
Bernhard Urban [Wed, 16 Sep 2009 01:41:23 +0000 (03:41 +0200)]
some debug stuff. let zeh ohci hack begin! \o/
Bernhard Urban [Wed, 16 Sep 2009 00:29:08 +0000 (02:29 +0200)]
first adaption of 'usbport' by Benedikt Sauter
see http://www.embedded-projects.net/index.php?page_id=186
theStack [Sat, 5 Sep 2009 00:47:31 +0000 (02:47 +0200)]
first adaption of linux ohci irq handler
theStack [Fri, 4 Sep 2009 23:35:26 +0000 (01:35 +0200)]
the whitespace hunter has struck again!
Bernhard Urban [Fri, 4 Sep 2009 23:09:28 +0000 (01:09 +0200)]
sync before write hcca_SRC? else just peanuts
Bernhard Urban [Fri, 4 Sep 2009 22:40:52 +0000 (00:40 +0200)]
ohci0 finally goes in operational mode -- silly confusion with
{set,write}32 *shame*
Bernhard Urban [Fri, 4 Sep 2009 22:20:36 +0000 (00:20 +0200)]
dirty ohci commit for thestack; nicer patch will follow
theStack [Fri, 4 Sep 2009 15:12:41 +0000 (17:12 +0200)]
killed the ohci_init FM_INTERVAL fail
Bernhard Urban [Fri, 4 Sep 2009 07:53:12 +0000 (09:53 +0200)]
lol noobs, how about clearing OHCI0_HC_INT_STATUS?! :)
theStack [Thu, 3 Sep 2009 23:54:33 +0000 (01:54 +0200)]
just commented out unneeded line in irq init
due to the fact that (HW_PPCIRQMASK+0x04 == HW_ARMIRQFLAG),
that write concerns arm irqs and is thus not needed here.
besides that, writing 0 to a flag register seems to be
senseless anyway (what have mini people done here? :P).
Bernhard Urban [Thu, 3 Sep 2009 18:10:10 +0000 (20:10 +0200)]
WIP: irq handler
hw-pic still don't work, but the irq #14 will be cleared...
maybe all hw-ppc-flags should be cleared -- how?!
write32(HW_PPCIRQFLAG, ~0);
don't work :(
Bernhard Urban [Thu, 3 Sep 2009 00:17:32 +0000 (02:17 +0200)]
WIP: irq_handler
Bernhard Urban [Wed, 2 Sep 2009 22:46:29 +0000 (00:46 +0200)]
Merge branch 'isr_test' of git://github.com/theStack/ppcskel into isr_test
Conflicts:
ohci.c
Bernhard Urban [Tue, 1 Sep 2009 16:36:06 +0000 (18:36 +0200)]
WIP: copy irq_handler from mini to ppcskel
theStack [Wed, 2 Sep 2009 15:14:43 +0000 (17:14 +0200)]
untracked all those annoying .d files
theStack [Wed, 2 Sep 2009 14:49:36 +0000 (16:49 +0200)]
added (empty) handling for decrementer exception
theStack [Wed, 2 Sep 2009 14:26:35 +0000 (16:26 +0200)]
fixed dma_addr() macro in ohci.c
theStack [Mon, 31 Aug 2009 19:52:28 +0000 (21:52 +0200)]
implemented simple irq handler, added irq.h
theStack [Mon, 31 Aug 2009 16:44:55 +0000 (18:44 +0200)]
ohci0 interrupt will be thrown - hooray++ \o/
theStack [Mon, 31 Aug 2009 15:51:16 +0000 (17:51 +0200)]
reset interrupt will be thrown - hooray \o/
Bernhard Urban [Thu, 27 Aug 2009 15:16:45 +0000 (17:16 +0200)]
add .gitignore
Bernhard Urban [Thu, 27 Aug 2009 15:16:23 +0000 (17:16 +0200)]
bootmii-devel.googlegroups.com/web/ppcskel.zip