Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c26afe9e authored by Hector Martin's avatar Hector Martin Committed by Benjamin Herrenschmidt
Browse files

powerpc/ps3: Add gelic udbg driver



Add a new udbg driver for the PS3 gelic Ehthernet device.

This driver shares only a few stucture and constant definitions with the
gelic Ethernet device driver, so is implemented as a stand-alone driver
with no dependencies on the gelic Ethernet device driver.

Signed-off-by: default avatarHector Martin <hector@marcansoft.com>
Signed-off-by: default avatarAndre Heider <a.heider@gmail.com>
Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 8feaa434
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -258,6 +258,14 @@ config PPC_EARLY_DEBUG_WSP
	depends on PPC_WSP
	select PPC_UDBG_16550

config PPC_EARLY_DEBUG_PS3GELIC
	bool "Early debugging through the PS3 Ethernet port"
	depends on PPC_PS3
	select PS3GELIC_UDBG
	help
	  Select this to enable early debugging for the PlayStation3 via
	  UDP broadcasts sent out through the Ethernet port.

endchoice

config PPC_EARLY_DEBUG_HVSI_VTERMNO
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ extern void __init udbg_init_40x_realmode(void);
extern void __init udbg_init_cpm(void);
extern void __init udbg_init_usbgecko(void);
extern void __init udbg_init_wsp(void);
extern void __init udbg_init_ps3gelic(void);

#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_UDBG_H */
+2 −0
Original line number Diff line number Diff line
@@ -67,6 +67,8 @@ void __init udbg_early_init(void)
	udbg_init_usbgecko();
#elif defined(CONFIG_PPC_EARLY_DEBUG_WSP)
	udbg_init_wsp();
#elif defined(CONFIG_PPC_EARLY_DEBUG_PS3GELIC)
	udbg_init_ps3gelic();
#endif

#ifdef CONFIG_PPC_EARLY_DEBUG
+12 −0
Original line number Diff line number Diff line
@@ -148,4 +148,16 @@ config PS3_LPM
	  profiling support of the Cell processor with programs like
	  oprofile and perfmon2, then say Y or M, otherwise say N.

config PS3GELIC_UDBG
	bool "PS3 udbg output via UDP broadcasts on Ethernet"
	depends on PPC_PS3
	help
	  Enables udbg early debugging output by sending broadcast UDP
	  via the Ethernet port (UDP port number 18194).

	  This driver uses a trivial implementation and is independent
	  from the main network driver.

	  If in doubt, say N here.

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
obj-y += interrupt.o exports.o os-area.o
obj-y += system-bus.o

obj-$(CONFIG_PS3GELIC_UDBG) += gelic_udbg.o
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_SPU_BASE) += spu.o
obj-y += device-init.o
Loading