diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2017-09-13 14:58:46 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-14 16:02:43 -0400 |
commit | d330e04d9d427a26381b59f40875af17f4c288a2 (patch) | |
tree | 4d02a32a6508bab84a1c7d4dbdbe4697e5804406 /lib/at91/at91.c | |
parent | 56246d1e87050bf22198e95c4526331a94c8a520 (diff) |
lib: at91: Add logo files used via API of DM_VIDEO
In order to display the company's logo via the API of DM_VIDEO,
and add the logo files of both Atmel and Microchip.
Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/at91/at91.c')
-rw-r--r-- | lib/at91/at91.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/at91/at91.c b/lib/at91/at91.c new file mode 100644 index 00000000000..5dca1507daf --- /dev/null +++ b/lib/at91/at91.c @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2016 Microchip + * Wenyou.Yang <wenyou.yang@microchip.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <atmel_lcd.h> + +#include "atmel_logo_8bpp.h" +#include "microchip_logo_8bpp.h" + +void atmel_logo_info(vidinfo_t *info) +{ + info->logo_width = ATMEL_LOGO_8BPP_WIDTH; + info->logo_height = ATMEL_LOGO_8BPP_HEIGHT; + info->logo_x_offset = ATMEL_LOGO_8BPP_X_OFFSET; + info->logo_y_offset = ATMEL_LOGO_8BPP_X_OFFSET; + info->logo_addr = (u_long)atmel_logo_8bpp; +} + +void microchip_logo_info(vidinfo_t *info) +{ + info->logo_width = MICROCHIP_LOGO_8BPP_WIDTH; + info->logo_height = MICROCHIP_LOGO_8BPP_HEIGHT; + info->logo_x_offset = MICROCHIP_LOGO_8BPP_X_OFFSET; + info->logo_y_offset = MICROCHIP_LOGO_8BPP_X_OFFSET; + info->logo_addr = (u_long)microchip_logo_8bpp; +} |