mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: powerpc: Remove include/linux/harrier_defs.h powerpc: Do not ignore arch/powerpc/include powerpc: Delete completed "ppc removal" task from feature removal file powerpc/mm: Fix attribute confusion with htab_bolt_mapping() powerpc/pci: Don't keep ISA memory hole resources in the tree powerpc: Zero fill the return values of rtas argument buffer powerpc/4xx: Update defconfig files for 2.6.27-rc1 powerpc/44x: Incorrect NOR offset in Warp DTS powerpc/44x: Warp DTS changes for board updates powerpc/4xx: Cleanup Warp for i2c driver changes. powerpc/44x: Adjust warp-nand resource end address
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
static struct resource warp_ndfc = {
|
||||
.start = WARP_NAND_FLASH_REG_ADDR,
|
||||
.end = WARP_NAND_FLASH_REG_ADDR + WARP_NAND_FLASH_REG_SIZE,
|
||||
.end = WARP_NAND_FLASH_REG_ADDR + WARP_NAND_FLASH_REG_SIZE - 1,
|
||||
.flags = IORESOURCE_MEM,
|
||||
};
|
||||
|
||||
|
||||
@@ -30,18 +30,6 @@ static __initdata struct of_device_id warp_of_bus[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static __initdata struct i2c_board_info warp_i2c_info[] = {
|
||||
{ I2C_BOARD_INFO("ad7414", 0x4a) }
|
||||
};
|
||||
|
||||
static int __init warp_arch_init(void)
|
||||
{
|
||||
/* This should go away once support is moved to the dts. */
|
||||
i2c_register_board_info(0, warp_i2c_info, ARRAY_SIZE(warp_i2c_info));
|
||||
return 0;
|
||||
}
|
||||
machine_arch_initcall(warp, warp_arch_init);
|
||||
|
||||
static int __init warp_device_probe(void)
|
||||
{
|
||||
of_platform_bus_probe(NULL, warp_of_bus, NULL);
|
||||
@@ -223,7 +211,7 @@ static void pika_setup_critical_temp(struct i2c_client *client)
|
||||
|
||||
/* These registers are in 1 degree increments. */
|
||||
i2c_smbus_write_byte_data(client, 2, 65); /* Thigh */
|
||||
i2c_smbus_write_byte_data(client, 3, 55); /* Tlow */
|
||||
i2c_smbus_write_byte_data(client, 3, 0); /* Tlow */
|
||||
|
||||
np = of_find_compatible_node(NULL, NULL, "adi,ad7414");
|
||||
if (np == NULL) {
|
||||
@@ -289,8 +277,15 @@ found_it:
|
||||
printk(KERN_INFO "PIKA DTM thread running.\n");
|
||||
|
||||
while (!kthread_should_stop()) {
|
||||
u16 temp = swab16(i2c_smbus_read_word_data(client, 0));
|
||||
out_be32(fpga + 0x20, temp);
|
||||
int val;
|
||||
|
||||
val = i2c_smbus_read_word_data(client, 0);
|
||||
if (val < 0)
|
||||
dev_dbg(&client->dev, "DTM read temp failed.\n");
|
||||
else {
|
||||
s16 temp = swab16(val);
|
||||
out_be32(fpga + 0x20, temp);
|
||||
}
|
||||
|
||||
pika_dtm_check_fan(fpga);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user