All pastes #1727660 Raw Edit

phh

public text v1 · immutable
#1727660 ·published 2009-12-26 18:18 UTC
rendered paste body
--- board-htctopaz.c	2009-12-26 19:08:27.595375245 +0100+++ board-htcrhodium.c	2009-12-26 19:16:49.993810979 +0100@@ -1,4 +1,4 @@-/* linux/arch/arm/mach-msm/board-htctopaz.c+/* linux/arch/arm/mach-msm/board-htcrhodium.c  *  * This software is licensed under the terms of the GNU General Public  * License version 2, as published by the Free Software Foundation, and@@ -50,9 +50,9 @@ #include "proc_comm_wince.h" #include "devices.h" #include "htc_hw.h"-#include "board-htctopaz.h"+#include "board-htcrhodium.h" -static void htctopaz_device_specific_fixes(void);+static void htcrhodium_device_specific_fixes(void);  extern int init_mmc(void); @@ -104,6 +104,10 @@ 		I2C_BOARD_INFO("mt9t013", 0x6c>>1), 		/* .irq = TROUT_GPIO_TO_INT(TROUT_GPIO_CAM_BTN_STEP1_N), */ 	},+	{+		// Keyboard controller+		I2C_BOARD_INFO("microp-ksc", 0x67),+	}, };  #define SND(num, desc) { .name = desc, .id = num }@@ -210,7 +214,7 @@ 	int i;  	// Fix data in arrays depending on GSM/CDMA version-	htctopaz_device_specific_fixes();+	htcrhodium_device_specific_fixes();  	msm_acpu_clock_init(&halibut_clock_data); 	msm_proc_comm_wince_init();@@ -246,7 +250,7 @@ 	msm_clock_init(); } -static void __init htctopaz_fixup(struct machine_desc *desc, struct tag *tags,+static void __init htcrhodium_fixup(struct machine_desc *desc, struct tag *tags,                                     char **cmdline, struct meminfo *mi) { 	mi->nr_banks = 1;@@ -267,7 +271,7 @@ 		printk(KERN_INFO "fixup: bank1 start=%08lx, node=%08x, size=%08lx\n", mi->bank[1].start, mi->bank[1].node, mi->bank[1].size); } -static void htctopaz_device_specific_fixes(void)+static void htcrhodium_device_specific_fixes(void) { 	msm_htc_hw_pdata.battery_smem_offset = 0xfc110; 	msm_htc_hw_pdata.battery_smem_field_size = 2;@@ -275,8 +279,8 @@ 	msm_battery_pdata.smem_field_size = 2; } -MACHINE_START(HTCTOPAZ, "HTC Topaz cellphone (Topaz is a silicate mineral of aluminium and fluorine)")-	.fixup 		= htctopaz_fixup,+MACHINE_START(HTCRHODIUM, "HTC Rhodium cellphone")+	.fixup 		= htcrhodium_fixup, 	.boot_params	= 0x10000100, 	.map_io		= halibut_map_io, 	.init_irq	= halibut_init_irq,