| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* linux/drivers/media/platform/s5p-jpeg/jpeg-regs.h |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Register definition file for Samsung JPEG codec driver |
|---|
| .. | .. |
|---|
| 5 | 6 | * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd. |
|---|
| 6 | 7 | * http://www.samsung.com |
|---|
| 7 | 8 | * |
|---|
| 8 | | - * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com> |
|---|
| 9 | + * Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com> |
|---|
| 9 | 10 | * Author: Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 12 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 13 | | - * published by the Free Software Foundation. |
|---|
| 14 | 11 | */ |
|---|
| 15 | 12 | |
|---|
| 16 | 13 | #ifndef JPEG_REGS_H_ |
|---|
| .. | .. |
|---|
| 124 | 121 | |
|---|
| 125 | 122 | /* JPEG timer setting register */ |
|---|
| 126 | 123 | #define S5P_JPG_TIMER_SE 0x7c |
|---|
| 127 | | -#define S5P_TIMER_INT_EN_MASK (0x1 << 31) |
|---|
| 128 | | -#define S5P_TIMER_INT_EN (0x1 << 31) |
|---|
| 124 | +#define S5P_TIMER_INT_EN_MASK (0x1UL << 31) |
|---|
| 125 | +#define S5P_TIMER_INT_EN (0x1UL << 31) |
|---|
| 129 | 126 | #define S5P_TIMER_INIT_MASK 0x7fffffff |
|---|
| 130 | 127 | |
|---|
| 131 | 128 | /* JPEG timer status register */ |
|---|
| 132 | 129 | #define S5P_JPG_TIMER_ST 0x80 |
|---|
| 133 | 130 | #define S5P_TIMER_INT_STAT_SHIFT 31 |
|---|
| 134 | | -#define S5P_TIMER_INT_STAT_MASK (0x1 << S5P_TIMER_INT_STAT_SHIFT) |
|---|
| 131 | +#define S5P_TIMER_INT_STAT_MASK (0x1UL << S5P_TIMER_INT_STAT_SHIFT) |
|---|
| 135 | 132 | #define S5P_TIMER_CNT_SHIFT 0 |
|---|
| 136 | 133 | #define S5P_TIMER_CNT_MASK 0x7fffffff |
|---|
| 137 | 134 | |
|---|
| .. | .. |
|---|
| 565 | 562 | /* JPEG timer setting register */ |
|---|
| 566 | 563 | #define EXYNOS3250_TIMER_SE 0x148 |
|---|
| 567 | 564 | #define EXYNOS3250_TIMER_INT_EN_SHIFT 31 |
|---|
| 568 | | -#define EXYNOS3250_TIMER_INT_EN (1 << EXYNOS3250_TIMER_INT_EN_SHIFT) |
|---|
| 565 | +#define EXYNOS3250_TIMER_INT_EN (1UL << EXYNOS3250_TIMER_INT_EN_SHIFT) |
|---|
| 569 | 566 | #define EXYNOS3250_TIMER_INIT_MASK 0x7fffffff |
|---|
| 570 | 567 | |
|---|
| 571 | 568 | /* JPEG timer status register */ |
|---|
| 572 | 569 | #define EXYNOS3250_TIMER_ST 0x14c |
|---|
| 573 | 570 | #define EXYNOS3250_TIMER_INT_STAT_SHIFT 31 |
|---|
| 574 | | -#define EXYNOS3250_TIMER_INT_STAT (1 << EXYNOS3250_TIMER_INT_STAT_SHIFT) |
|---|
| 571 | +#define EXYNOS3250_TIMER_INT_STAT (1UL << EXYNOS3250_TIMER_INT_STAT_SHIFT) |
|---|
| 575 | 572 | #define EXYNOS3250_TIMER_CNT_SHIFT 0 |
|---|
| 576 | 573 | #define EXYNOS3250_TIMER_CNT_MASK 0x7fffffff |
|---|
| 577 | 574 | |
|---|