[U-Boot] [PATCH] add new board vl_ma2sc

Jens Scharsig esw at bus-elektronik.de
Mon Jan 16 09:51:08 CET 2012


Hello Heiko:
> 
> Please check your patch with tools/checkpatch, it shows a lot
> of warnings:
> 
> [hs at pollux u-boot]$ ./tools/checkpatch.pl index.html
> [...]
> total: 17 errors, 13 warnings, 1131 lines checked
> 
The error based on the two code sequences

<snip>

vidinfo_t panel_info = {
	vl_col:			320,
	vl_row:			240,
	vl_clk:			6500000,
	vl_sync:		ATMEL_LCDC_INVDVAL_INVERTED |
				ATMEL_LCDC_INVLINE_INVERTED |
				ATMEL_LCDC_INVVD_INVERTED   |
				ATMEL_LCDC_INVFRAME_INVERTED,
	vl_bpix:		(ATMEL_LCDC_PIXELSIZE_8 >> 5),
	vl_tft:			1,
	vl_hsync_len:		5,	/* Horiz Sync Pulse Width */
	vl_left_margin:		68,	/* horiz back porch */
	vl_right_margin:	20,	/* horiz front porch */
	vl_vsync_len:		2,	/* vert Sync Pulse Width */
	vl_upper_margin:	18,	/* vert back porch */
	vl_lower_margin:	4,	/* vert front porch */
	mmio:			ATMEL_BASE_LCDC,
};

</sinp>

This block i have "stolen" from at91sam9263 board.

and
<snip>
#define CONFIG_ETHADDR			00:4D:41:02:52:43 /* MA2SC */
</sinp>

Can your teach me the right format for things like this?

Thanks

Jens Scharsig


More information about the U-Boot mailing list