Skip to contentSkip to conversation

s3c24x0 white-space clean-up part 2

PATCH Superseded kevin.morfitt at fearnside-systems.co.uk 1 participant 1 message Dec 28, 2009 Arm/actions semi architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 s3c24x0 white-space clean-up part 2

Cleans up white-space in the s3c24x0 files, including removing any dead code but excluding code style or line length changes.

Due to the size of the changes this change is split into two patches.

---

checkpatch.pl reports no white-space errors.

 board/mpl/vcma9/cmd_vcma9.c            |   43 ---
 board/mpl/vcma9/lowlevel_init.S        |  112 ++++---
 board/mpl/vcma9/vcma9.c                |  177 +++++-----
 board/samsung/smdk2400/lowlevel_init.S |   60 ++--
 board/samsung/smdk2400/smdk2400.c      |    4 +-
 board/samsung/smdk2410/lowlevel_init.S |   48 ++--
 board/samsung/smdk2410/smdk2410.c      |   23 +-
 board/sbc2410x/lowlevel_init.S         |   45 ++-
 board/sbc2410x/sbc2410x.c              |   50 ++--
 board/trab/cmd_trab.c                  |  567 +++++++++++++++-----------------
 board/trab/lowlevel_init.S             |   72 +++--
 board/trab/rs485.c                     |   52 ++--
 board/trab/trab.c                      |  154 +++++-----
 13 files changed, 673 insertions(+), 734 deletions(-)
board/mpl/vcma9/cmd_vcma9.c +0 -43
index 0ee9595..49558d8 100644
@@ -133,49 +133,6 @@ int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 		return 0;
 	}
 #endif
-#if 0
-	if (strcmp(argv[1], "cantest") == 0) {
-		if (argc >= 3)
-			vcma9_cantest(strcmp(argv[2], "s") ? 0 : 1);
-		else
-			vcma9_cantest(0);
-		return 0;
-	}
-	if (strcmp(argv[1], "nandtest") == 0) {
-		vcma9_nandtest();
-		return 0;
-	}
-	if (strcmp(argv[1], "nanderase") == 0) {
-		vcma9_nanderase();
-		return 0;
-	}
-	if (strcmp(argv[1], "nandread") == 0) {
-		ulong offset = 0;
-
-		if (argc >= 3)
-			offset = simple_strtoul(argv[2], NULL, 16);
-
-		vcma9_nandread(offset);
-		return 0;
-	}
-	if (strcmp(argv[1], "nandwrite") == 0) {
-		ulong offset = 0;
-
-		if (argc >= 3)
-			offset = simple_strtoul(argv[2], NULL, 16);
-
-		vcma9_nandwrite(offset);
-		return 0;
-	}
-	if (strcmp(argv[1], "dactest") == 0) {
-		if (argc >= 3)
-			vcma9_dactest(strcmp(argv[2], "s") ? 0 : 1);
-		else
-		vcma9_dactest(0);
-		return 0;
-	}
-#endif
-
 	return (do_mplcommon(cmdtp, flag, argc, argv));
 }
 
board/mpl/vcma9/lowlevel_init.S +58 -54

190 lines not on this page · raw message

board/mpl/vcma9/vcma9.c +87 -90

301 lines not on this page · raw message

board/samsung/smdk2400/lowlevel_init.S +33 -27

87 lines not on this page · raw message

board/samsung/smdk2400/smdk2400.c +2 -2
index 1294d3f..5825ce9 100644
@@ -63,9 +63,9 @@ int board_init (void)
 #ifdef CONFIG_HWFLOW
 	/*CTS[0] RTS[0] INPUT INPUT TXD[0] INPUT RXD[0] */
 	/*   10,   10,   00,   00,    10,   00,    10 */
-	gpio->PFCON=0xa22;
+	gpio->PFCON = 0xa22;
 	/* Disable pull-up on Rx, Tx, CTS and RTS pins */
-	gpio->PFUP=0x35;
+	gpio->PFUP = 0x35;
 #else
 	/*INPUT INPUT INPUT INPUT TXD[0] INPUT RXD[0] */
 	/*   00,   00,   00,   00,    10,   00,    10 */
board/samsung/smdk2410/lowlevel_init.S +28 -20

67 lines not on this page · raw message

board/samsung/smdk2410/smdk2410.c +11 -12
index 5d1a8bb..e3a4490 100644
@@ -33,11 +33,11 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #define FCLK_SPEED 1
 
-#if FCLK_SPEED==0		/* Fout = 203MHz, Fin = 12MHz for Audio */
+#if FCLK_SPEED == 0	/* Fout = 203MHz, Fin = 12MHz for Audio */
 #define M_MDIV	0xC3
 #define M_PDIV	0x4
 #define M_SDIV	0x1
-#elif FCLK_SPEED==1		/* Fout = 202.8MHz */
+#elif FCLK_SPEED == 1	/* Fout = 202.8MHz */
 #define M_MDIV	0xA1
 #define M_PDIV	0x3
 #define M_SDIV	0x1
@@ -45,31 +45,30 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #define USB_CLOCK 1
 
-#if USB_CLOCK==0
+#if USB_CLOCK == 0
 #define U_M_MDIV	0xA1
 #define U_M_PDIV	0x3
 #define U_M_SDIV	0x1
-#elif USB_CLOCK==1
+#elif USB_CLOCK == 1
 #define U_M_MDIV	0x48
 #define U_M_PDIV	0x3
 #define U_M_SDIV	0x2
 #endif
 
-static inline void delay (unsigned long loops)
+static inline void delay(unsigned long loops)
 {
 	__asm__ volatile ("1:\n"
-	  "subs %0, %1, #1\n"
-	  "bne 1b":"=r" (loops):"0" (loops));
+			  "subs %0, %1, #1\n" "bne 1b":"=r" (loops):"0"(loops));
 }
 
 /*
  * Miscellaneous platform dependent initialisations
  */
 
-int board_init (void)
+int board_init(void)
 {
 	struct s3c24x0_clock_power * const clk_power =
-					s3c24x0_get_base_clock_power();
+				s3c24x0_get_base_clock_power();
 	struct s3c24x0_gpio * const gpio = s3c24x0_get_base_gpio();
 
 	/* to reduce PLL lock time, adjust the LOCKTIME register */
@@ -79,13 +78,13 @@ int board_init (void)
 	clk_power->MPLLCON = ((M_MDIV << 12) + (M_PDIV << 4) + M_SDIV);
 
 	/* some delay between MPLL and UPLL */
-	delay (4000);
+	delay(4000);
 
 	/* configure UPLL */
 	clk_power->UPLLCON = ((U_M_MDIV << 12) + (U_M_PDIV << 4) + U_M_SDIV);
 
 	/* some delay between MPLL and UPLL */
-	delay (8000);
+	delay(8000);
 
 	/* set up the I/O ports */
 	gpio->GPACON = 0x007FFFFF;
@@ -116,7 +115,7 @@ int board_init (void)
 	return 0;
 }
 
-int dram_init (void)
+int dram_init(void)
 {
 	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
 	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
board/sbc2410x/lowlevel_init.S +26 -19

58 lines not on this page · raw message

board/sbc2410x/sbc2410x.c +22 -28

116 lines not on this page · raw message

board/trab/cmd_trab.c +265 -302

1,001 lines not on this page · raw message

board/trab/lowlevel_init.S +39 -33

106 lines not on this page · raw message

board/trab/rs485.c +25 -27

137 lines not on this page · raw message

board/trab/trab.c +77 -77

306 lines not on this page · raw message

Signature · 1 line
1.6.1.2