Skip to contentSkip to conversation

I2C: Support for sparc64

PATCH New Aurelien Jarno 3 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: Support for sparc64

Hi all,

Please find attached a patch that was send to me by a Debian user to make possible the build of the i2c modules on a sparc64.

Bye,
Aurelien

Signature · 20 lines
  .''`.  Aurelien Jarno	              GPG: 1024D/F1BCDB73
 : :' :  Debian GNU/Linux developer | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
--- i2c-2.9.0.orig/Makefile
+++ i2c-2.9.0/Makefile
@@ -142,6 +142,12 @@
 	     -mcmodel=kernel -fno-reorder-blocks -finline-limit 00 -fno-strength-reduce
 endif
 
+ifeq ($(MACHINE),sparc64)
+MODCFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
+	     -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \
+	     -Wa,--undeclared-regs
+endif
+
 ifeq ($(SMP),1)
 MODCPPFLAGS += -D__SMP__
 endif
#1 lore raw

PATCH 1/1 I2C: Support for sparc64

Quoted 1 line · Jean Delvare

Is there actually any supported device on Sparc?

The person who send me that patch use i2c on sparc to get an em8300 card working (MPEG-1 and MPEG-2 decoding card). Some chips on the card have to be accessed via i2c, and thus the i2c modules are needed.

That also explain why he also send me the patch only for i2c and not for lm-sensors, however I think the patch could also be applied to lm-sensors.

Quoted 2 lines

(I happen to have a Sun Blade 100 at work and have always wondered if there were any hardware monitoring device inside.)

I don't think so, anyway you can add sensors by yourself, and access them via i2c-parport :) (if your Sparc has a parallel port, some as mine have one).

Signature · 4 lines
  .''`.  Aurelien Jarno	              GPG: 1024D/F1BCDB73
 : :' :  Debian GNU/Linux developer | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#2 lore raw

PATCH 1/1 I2C: Support for sparc64

In reply to Aurelien Jarno

Hi Aurelien,

Quoted 2 lines

Please find attached a patch that was send to me by a Debian user to make possible the build of the i2c modules on a sparc64.

Will apply, thanks.

Is there actually any supported device on Sparc?

(I happen to have a Sun Blade 100 at work and have always wondered if there were any hardware monitoring device inside.)

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/