/* Scroll up/down for the number of specified lines.  */
void ili93xx_scroll(int32_t ul_lines)
/* Scroll up/down for the number of specified lines.  */
void ili93xx_scroll(int32_t ul_lines)
{
	if (g_uc_device_type == DEVICE_TYPE_ILI9325) {
		ili93xx_write_register_word(ILI9325_VERTICAL_SCROLL_CTRL, ul_lines);
	} else if (g_uc_device_type == DEVICE_TYPE_ILI9341) {
		uint8_t paratable[2];
		paratable[0] = (ul_lines >> 8) & 0xFF;
		paratable[1] = ul_lines & 0xFF;
		ili93xx_write_register(ILI9341_CMD_VERT_SCROLL_START_ADDRESS,
				paratable, 2);
	}
}