* [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro
@ 2015-10-30 7:18 Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up Thomas Chou
` (8 more replies)
0 siblings, 9 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
Replace numerical bit shift with BIT macro
in altera_jtag_uart
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/serial/altera_jtag_uart.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
index 39d4a4e..0aa741c 100644
--- a/drivers/serial/altera_jtag_uart.c
+++ b/drivers/serial/altera_jtag_uart.c
@@ -22,11 +22,11 @@ struct altera_jtaguart_platdata {
};
/* data register */
-#define ALTERA_JTAG_RVALID (1<<15) /* Read valid */
+#define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
/* control register */
-#define ALTERA_JTAG_AC (1 << 10) /* activity indicator */
-#define ALTERA_JTAG_RRDY (1 << 12) /* read available */
+#define ALTERA_JTAG_AC BIT(10) /* activity indicator */
+#define ALTERA_JTAG_RRDY BIT(12) /* read available */
#define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
/* Write fifo size. FIXME: this should be extracted with sopc2dts */
#define ALTERA_JTAG_WRITE_DEPTH 64
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:09 ` Jagan Teki
2015-11-03 5:20 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro Thomas Chou
` (7 subsequent siblings)
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
- Moved macro definitions to top
- Give spaces around the '>>' in ALTERA_JTAG_WSPACE()
- Re-arrange header includes ascending order
- Remove unused header linux/compiler.h
- Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/serial/altera_jtag_uart.c | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
index 0aa741c..fd69188 100644
--- a/drivers/serial/altera_jtag_uart.c
+++ b/drivers/serial/altera_jtag_uart.c
@@ -8,18 +8,10 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
-#include <asm/io.h>
-#include <linux/compiler.h>
#include <serial.h>
+#include <asm/io.h>
-struct altera_jtaguart_regs {
- u32 data; /* Data register */
- u32 control; /* Control register */
-};
-
-struct altera_jtaguart_platdata {
- struct altera_jtaguart_regs *regs;
-};
+DECLARE_GLOBAL_DATA_PTR;
/* data register */
#define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
@@ -27,11 +19,18 @@ struct altera_jtaguart_platdata {
/* control register */
#define ALTERA_JTAG_AC BIT(10) /* activity indicator */
#define ALTERA_JTAG_RRDY BIT(12) /* read available */
-#define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
+#define ALTERA_JTAG_WSPACE(d) ((d) >> 16) /* Write space avail */
/* Write fifo size. FIXME: this should be extracted with sopc2dts */
#define ALTERA_JTAG_WRITE_DEPTH 64
-DECLARE_GLOBAL_DATA_PTR;
+struct altera_jtaguart_regs {
+ u32 data; /* Data register */
+ u32 control; /* Control register */
+};
+
+struct altera_jtaguart_platdata {
+ struct altera_jtaguart_regs *regs;
+};
static int altera_jtaguart_setbrg(struct udevice *dev, int baudrate)
{
@@ -112,7 +111,7 @@ static const struct dm_serial_ops altera_jtaguart_ops = {
};
static const struct udevice_id altera_jtaguart_ids[] = {
- { .compatible = "altr,juart-1.0", },
+ { .compatible = "altr,juart-1.0" },
{ }
};
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:10 ` Jagan Teki
2015-11-03 5:20 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up Thomas Chou
` (6 subsequent siblings)
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
Replace numerical bit shift with BIT macro
in altera_uart
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/serial/altera_uart.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index 4ff9fe2..7d5197a 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -27,9 +27,9 @@ struct altera_uart_platdata {
};
/* status register */
-#define ALTERA_UART_TMT (1 << 5) /* tx empty */
-#define ALTERA_UART_TRDY (1 << 6) /* tx ready */
-#define ALTERA_UART_RRDY (1 << 7) /* rx ready */
+#define ALTERA_UART_TMT BIT(5) /* tx empty */
+#define ALTERA_UART_TRDY BIT(6) /* tx ready */
+#define ALTERA_UART_RRDY BIT(7) /* rx ready */
DECLARE_GLOBAL_DATA_PTR;
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:12 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro Thomas Chou
` (5 subsequent siblings)
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
- Moved macro definitions to top
- Re-arrange header includes ascending order
- Remove unused header linux/compiler.h
- Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/serial/altera_uart.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index 7d5197a..cc68b1c 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -8,9 +8,15 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
-#include <asm/io.h>
-#include <linux/compiler.h>
#include <serial.h>
+#include <asm/io.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+/* status register */
+#define ALTERA_UART_TMT BIT(5) /* tx empty */
+#define ALTERA_UART_TRDY BIT(6) /* tx ready */
+#define ALTERA_UART_RRDY BIT(7) /* rx ready */
struct altera_uart_regs {
u32 rxdata; /* Rx data reg */
@@ -26,13 +32,6 @@ struct altera_uart_platdata {
unsigned int uartclk;
};
-/* status register */
-#define ALTERA_UART_TMT BIT(5) /* tx empty */
-#define ALTERA_UART_TRDY BIT(6) /* tx ready */
-#define ALTERA_UART_RRDY BIT(7) /* rx ready */
-
-DECLARE_GLOBAL_DATA_PTR;
-
static int altera_uart_setbrg(struct udevice *dev, int baudrate)
{
struct altera_uart_platdata *plat = dev->platdata;
@@ -106,7 +105,7 @@ static const struct dm_serial_ops altera_uart_ops = {
};
static const struct udevice_id altera_uart_ids[] = {
- { .compatible = "altr,uart-1.0", },
+ { .compatible = "altr,uart-1.0" },
{ }
};
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
` (2 preceding siblings ...)
2015-10-30 7:18 ` [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:13 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up Thomas Chou
` (4 subsequent siblings)
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
Replace numerical bit shift with BIT macro
in altera_timer
:%s/(1 << nr)/BIT(nr)/g
where nr = 0, 1, 2 .... 31
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/timer/altera_timer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
index 2ef9ad6..288357c 100644
--- a/drivers/timer/altera_timer.c
+++ b/drivers/timer/altera_timer.c
@@ -31,9 +31,9 @@ struct altera_timer_platdata {
};
/* control register */
-#define ALTERA_TIMER_CONT (1 << 1) /* Continuous mode */
-#define ALTERA_TIMER_START (1 << 2) /* Start timer */
-#define ALTERA_TIMER_STOP (1 << 3) /* Stop timer */
+#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
+#define ALTERA_TIMER_START BIT(2) /* Start timer */
+#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
static int altera_timer_get_count(struct udevice *dev, unsigned long *count)
{
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
` (3 preceding siblings ...)
2015-10-30 7:18 ` [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:13 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 7/8] misc: altera_sysid: " Thomas Chou
` (3 subsequent siblings)
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
- Moved macro definitions to top
- Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/timer/altera_timer.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
index 288357c..7952ad7 100644
--- a/drivers/timer/altera_timer.c
+++ b/drivers/timer/altera_timer.c
@@ -16,6 +16,11 @@
DECLARE_GLOBAL_DATA_PTR;
+/* control register */
+#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
+#define ALTERA_TIMER_START BIT(2) /* Start timer */
+#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
+
struct altera_timer_regs {
u32 status; /* Timer status reg */
u32 control; /* Timer control reg */
@@ -30,11 +35,6 @@ struct altera_timer_platdata {
unsigned long clock_rate;
};
-/* control register */
-#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
-#define ALTERA_TIMER_START BIT(2) /* Start timer */
-#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
-
static int altera_timer_get_count(struct udevice *dev, unsigned long *count)
{
struct altera_timer_platdata *plat = dev->platdata;
@@ -88,7 +88,7 @@ static const struct timer_ops altera_timer_ops = {
};
static const struct udevice_id altera_timer_ids[] = {
- { .compatible = "altr,timer-1.0", },
+ { .compatible = "altr,timer-1.0" },
{ }
};
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 7/8] misc: altera_sysid: minor clean up
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
` (4 preceding siblings ...)
2015-10-30 7:18 ` [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:14 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 8/8] spi: altera_spi: " Thomas Chou
` (2 subsequent siblings)
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
- Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
drivers/misc/altera_sysid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c
index 249b273..1859b80 100644
--- a/drivers/misc/altera_sysid.c
+++ b/drivers/misc/altera_sysid.c
@@ -87,7 +87,7 @@ static const struct misc_ops altera_sysid_ops = {
};
static const struct udevice_id altera_sysid_ids[] = {
- { .compatible = "altr,sysid-1.0", },
+ { .compatible = "altr,sysid-1.0" },
{ }
};
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 8/8] spi: altera_spi: minor clean up
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
` (5 preceding siblings ...)
2015-10-30 7:18 ` [U-Boot] [PATCH 7/8] misc: altera_sysid: " Thomas Chou
@ 2015-10-30 7:18 ` Thomas Chou
2015-10-30 8:15 ` Jagan Teki
2015-11-03 5:22 ` Thomas Chou
2015-10-30 8:07 ` [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Jagan Teki
2015-11-03 5:19 ` Thomas Chou
8 siblings, 2 replies; 24+ messages in thread
From: Thomas Chou @ 2015-10-30 7:18 UTC (permalink / raw)
To: u-boot
- Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Cc: Jagan Teki <jteki@openedev.com>
---
drivers/spi/altera_spi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
index e49949b..432a8e7 100644
--- a/drivers/spi/altera_spi.c
+++ b/drivers/spi/altera_spi.c
@@ -193,7 +193,7 @@ static const struct dm_spi_ops altera_spi_ops = {
};
static const struct udevice_id altera_spi_ids[] = {
- { .compatible = "altr,spi-1.0", },
+ { .compatible = "altr,spi-1.0" },
{ }
};
--
2.5.0
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
` (6 preceding siblings ...)
2015-10-30 7:18 ` [U-Boot] [PATCH 8/8] spi: altera_spi: " Thomas Chou
@ 2015-10-30 8:07 ` Jagan Teki
2015-11-03 5:19 ` Thomas Chou
8 siblings, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:07 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> Replace numerical bit shift with BIT macro
> in altera_jtag_uart
>
> :%s/(1 << nr)/BIT(nr)/g
> where nr = 0, 1, 2 .... 31
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/serial/altera_jtag_uart.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
> index 39d4a4e..0aa741c 100644
> --- a/drivers/serial/altera_jtag_uart.c
> +++ b/drivers/serial/altera_jtag_uart.c
> @@ -22,11 +22,11 @@ struct altera_jtaguart_platdata {
> };
>
> /* data register */
> -#define ALTERA_JTAG_RVALID (1<<15) /* Read valid */
> +#define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
>
> /* control register */
> -#define ALTERA_JTAG_AC (1 << 10) /* activity indicator */
> -#define ALTERA_JTAG_RRDY (1 << 12) /* read available */
> +#define ALTERA_JTAG_AC BIT(10) /* activity indicator */
> +#define ALTERA_JTAG_RRDY BIT(12) /* read available */
> #define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
> /* Write fifo size. FIXME: this should be extracted with sopc2dts */
> #define ALTERA_JTAG_WRITE_DEPTH 64
> --
> 2.5.0
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up Thomas Chou
@ 2015-10-30 8:09 ` Jagan Teki
2015-11-03 5:20 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:09 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> - Moved macro definitions to top
> - Give spaces around the '>>' in ALTERA_JTAG_WSPACE()
> - Re-arrange header includes ascending order
> - Remove unused header linux/compiler.h
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/serial/altera_jtag_uart.c | 25 ++++++++++++-------------
> 1 file changed, 12 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
> index 0aa741c..fd69188 100644
> --- a/drivers/serial/altera_jtag_uart.c
> +++ b/drivers/serial/altera_jtag_uart.c
> @@ -8,18 +8,10 @@
> #include <common.h>
> #include <dm.h>
> #include <errno.h>
> -#include <asm/io.h>
> -#include <linux/compiler.h>
> #include <serial.h>
> +#include <asm/io.h>
>
> -struct altera_jtaguart_regs {
> - u32 data; /* Data register */
> - u32 control; /* Control register */
> -};
> -
> -struct altera_jtaguart_platdata {
> - struct altera_jtaguart_regs *regs;
> -};
> +DECLARE_GLOBAL_DATA_PTR;
>
> /* data register */
> #define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
> @@ -27,11 +19,18 @@ struct altera_jtaguart_platdata {
> /* control register */
> #define ALTERA_JTAG_AC BIT(10) /* activity indicator */
> #define ALTERA_JTAG_RRDY BIT(12) /* read available */
> -#define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
> +#define ALTERA_JTAG_WSPACE(d) ((d) >> 16) /* Write space avail */
> /* Write fifo size. FIXME: this should be extracted with sopc2dts */
> #define ALTERA_JTAG_WRITE_DEPTH 64
>
> -DECLARE_GLOBAL_DATA_PTR;
> +struct altera_jtaguart_regs {
> + u32 data; /* Data register */
> + u32 control; /* Control register */
> +};
> +
> +struct altera_jtaguart_platdata {
> + struct altera_jtaguart_regs *regs;
> +};
>
> static int altera_jtaguart_setbrg(struct udevice *dev, int baudrate)
> {
> @@ -112,7 +111,7 @@ static const struct dm_serial_ops altera_jtaguart_ops = {
> };
>
> static const struct udevice_id altera_jtaguart_ids[] = {
> - { .compatible = "altr,juart-1.0", },
> + { .compatible = "altr,juart-1.0" },
> { }
> };
>
> --
> 2.5.0
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro
2015-10-30 7:18 ` [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro Thomas Chou
@ 2015-10-30 8:10 ` Jagan Teki
2015-11-03 5:20 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:10 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> Replace numerical bit shift with BIT macro
> in altera_uart
>
> :%s/(1 << nr)/BIT(nr)/g
> where nr = 0, 1, 2 .... 31
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/serial/altera_uart.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
> index 4ff9fe2..7d5197a 100644
> --- a/drivers/serial/altera_uart.c
> +++ b/drivers/serial/altera_uart.c
> @@ -27,9 +27,9 @@ struct altera_uart_platdata {
> };
>
> /* status register */
> -#define ALTERA_UART_TMT (1 << 5) /* tx empty */
> -#define ALTERA_UART_TRDY (1 << 6) /* tx ready */
> -#define ALTERA_UART_RRDY (1 << 7) /* rx ready */
> +#define ALTERA_UART_TMT BIT(5) /* tx empty */
> +#define ALTERA_UART_TRDY BIT(6) /* tx ready */
> +#define ALTERA_UART_RRDY BIT(7) /* rx ready */
>
> DECLARE_GLOBAL_DATA_PTR;
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up Thomas Chou
@ 2015-10-30 8:12 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:12 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> - Moved macro definitions to top
> - Re-arrange header includes ascending order
> - Remove unused header linux/compiler.h
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/serial/altera_uart.c | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
> index 7d5197a..cc68b1c 100644
> --- a/drivers/serial/altera_uart.c
> +++ b/drivers/serial/altera_uart.c
> @@ -8,9 +8,15 @@
> #include <common.h>
> #include <dm.h>
> #include <errno.h>
> -#include <asm/io.h>
> -#include <linux/compiler.h>
> #include <serial.h>
> +#include <asm/io.h>
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +/* status register */
> +#define ALTERA_UART_TMT BIT(5) /* tx empty */
> +#define ALTERA_UART_TRDY BIT(6) /* tx ready */
> +#define ALTERA_UART_RRDY BIT(7) /* rx ready */
>
> struct altera_uart_regs {
> u32 rxdata; /* Rx data reg */
> @@ -26,13 +32,6 @@ struct altera_uart_platdata {
> unsigned int uartclk;
> };
>
> -/* status register */
> -#define ALTERA_UART_TMT BIT(5) /* tx empty */
> -#define ALTERA_UART_TRDY BIT(6) /* tx ready */
> -#define ALTERA_UART_RRDY BIT(7) /* rx ready */
> -
> -DECLARE_GLOBAL_DATA_PTR;
> -
> static int altera_uart_setbrg(struct udevice *dev, int baudrate)
> {
> struct altera_uart_platdata *plat = dev->platdata;
> @@ -106,7 +105,7 @@ static const struct dm_serial_ops altera_uart_ops = {
> };
>
> static const struct udevice_id altera_uart_ids[] = {
> - { .compatible = "altr,uart-1.0", },
> + { .compatible = "altr,uart-1.0" },
> { }
> };
>
> --
> 2.5.0
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro
2015-10-30 7:18 ` [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro Thomas Chou
@ 2015-10-30 8:13 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:13 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> Replace numerical bit shift with BIT macro
> in altera_timer
>
> :%s/(1 << nr)/BIT(nr)/g
> where nr = 0, 1, 2 .... 31
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/timer/altera_timer.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
> index 2ef9ad6..288357c 100644
> --- a/drivers/timer/altera_timer.c
> +++ b/drivers/timer/altera_timer.c
> @@ -31,9 +31,9 @@ struct altera_timer_platdata {
> };
>
> /* control register */
> -#define ALTERA_TIMER_CONT (1 << 1) /* Continuous mode */
> -#define ALTERA_TIMER_START (1 << 2) /* Start timer */
> -#define ALTERA_TIMER_STOP (1 << 3) /* Stop timer */
> +#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
> +#define ALTERA_TIMER_START BIT(2) /* Start timer */
> +#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
>
> static int altera_timer_get_count(struct udevice *dev, unsigned long *count)
> {
> --
> 2.5.0
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up Thomas Chou
@ 2015-10-30 8:13 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:13 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> - Moved macro definitions to top
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/timer/altera_timer.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
> index 288357c..7952ad7 100644
> --- a/drivers/timer/altera_timer.c
> +++ b/drivers/timer/altera_timer.c
> @@ -16,6 +16,11 @@
>
> DECLARE_GLOBAL_DATA_PTR;
>
> +/* control register */
> +#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
> +#define ALTERA_TIMER_START BIT(2) /* Start timer */
> +#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
> +
> struct altera_timer_regs {
> u32 status; /* Timer status reg */
> u32 control; /* Timer control reg */
> @@ -30,11 +35,6 @@ struct altera_timer_platdata {
> unsigned long clock_rate;
> };
>
> -/* control register */
> -#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
> -#define ALTERA_TIMER_START BIT(2) /* Start timer */
> -#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
> -
> static int altera_timer_get_count(struct udevice *dev, unsigned long *count)
> {
> struct altera_timer_platdata *plat = dev->platdata;
> @@ -88,7 +88,7 @@ static const struct timer_ops altera_timer_ops = {
> };
>
> static const struct udevice_id altera_timer_ids[] = {
> - { .compatible = "altr,timer-1.0", },
> + { .compatible = "altr,timer-1.0" },
> { }
> };
>
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 7/8] misc: altera_sysid: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 7/8] misc: altera_sysid: " Thomas Chou
@ 2015-10-30 8:14 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:14 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/misc/altera_sysid.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c
> index 249b273..1859b80 100644
> --- a/drivers/misc/altera_sysid.c
> +++ b/drivers/misc/altera_sysid.c
> @@ -87,7 +87,7 @@ static const struct misc_ops altera_sysid_ops = {
> };
>
> static const struct udevice_id altera_sysid_ids[] = {
> - { .compatible = "altr,sysid-1.0", },
> + { .compatible = "altr,sysid-1.0" },
> { }
> };
>
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 8/8] spi: altera_spi: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 8/8] spi: altera_spi: " Thomas Chou
@ 2015-10-30 8:15 ` Jagan Teki
2015-11-03 5:22 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Jagan Teki @ 2015-10-30 8:15 UTC (permalink / raw)
To: u-boot
On 30 October 2015 at 12:48, Thomas Chou <thomas@wytron.com.tw> wrote:
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> Cc: Jagan Teki <jteki@openedev.com>
> ---
Reviewed-by: Jagan Teki <jteki@openedev.com>
> drivers/spi/altera_spi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
> index e49949b..432a8e7 100644
> --- a/drivers/spi/altera_spi.c
> +++ b/drivers/spi/altera_spi.c
> @@ -193,7 +193,7 @@ static const struct dm_spi_ops altera_spi_ops = {
> };
>
> static const struct udevice_id altera_spi_ids[] = {
> - { .compatible = "altr,spi-1.0", },
> + { .compatible = "altr,spi-1.0" },
> { }
> };
>
> --
thanks!
--
Jagan | openedev.
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
` (7 preceding siblings ...)
2015-10-30 8:07 ` [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Jagan Teki
@ 2015-11-03 5:19 ` Thomas Chou
8 siblings, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:19 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> Replace numerical bit shift with BIT macro
> in altera_jtag_uart
>
> :%s/(1 << nr)/BIT(nr)/g
> where nr = 0, 1, 2 .... 31
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/serial/altera_jtag_uart.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
> index 39d4a4e..0aa741c 100644
> --- a/drivers/serial/altera_jtag_uart.c
> +++ b/drivers/serial/altera_jtag_uart.c
> @@ -22,11 +22,11 @@ struct altera_jtaguart_platdata {
> };
>
> /* data register */
> -#define ALTERA_JTAG_RVALID (1<<15) /* Read valid */
> +#define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
>
> /* control register */
> -#define ALTERA_JTAG_AC (1 << 10) /* activity indicator */
> -#define ALTERA_JTAG_RRDY (1 << 12) /* read available */
> +#define ALTERA_JTAG_AC BIT(10) /* activity indicator */
> +#define ALTERA_JTAG_RRDY BIT(12) /* read available */
> #define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
> /* Write fifo size. FIXME: this should be extracted with sopc2dts */
> #define ALTERA_JTAG_WRITE_DEPTH 64
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up Thomas Chou
2015-10-30 8:09 ` Jagan Teki
@ 2015-11-03 5:20 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:20 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> - Moved macro definitions to top
> - Give spaces around the '>>' in ALTERA_JTAG_WSPACE()
> - Re-arrange header includes ascending order
> - Remove unused header linux/compiler.h
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/serial/altera_jtag_uart.c | 25 ++++++++++++-------------
> 1 file changed, 12 insertions(+), 13 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
> index 0aa741c..fd69188 100644
> --- a/drivers/serial/altera_jtag_uart.c
> +++ b/drivers/serial/altera_jtag_uart.c
> @@ -8,18 +8,10 @@
> #include <common.h>
> #include <dm.h>
> #include <errno.h>
> -#include <asm/io.h>
> -#include <linux/compiler.h>
> #include <serial.h>
> +#include <asm/io.h>
>
> -struct altera_jtaguart_regs {
> - u32 data; /* Data register */
> - u32 control; /* Control register */
> -};
> -
> -struct altera_jtaguart_platdata {
> - struct altera_jtaguart_regs *regs;
> -};
> +DECLARE_GLOBAL_DATA_PTR;
>
> /* data register */
> #define ALTERA_JTAG_RVALID BIT(15) /* Read valid */
> @@ -27,11 +19,18 @@ struct altera_jtaguart_platdata {
> /* control register */
> #define ALTERA_JTAG_AC BIT(10) /* activity indicator */
> #define ALTERA_JTAG_RRDY BIT(12) /* read available */
> -#define ALTERA_JTAG_WSPACE(d) ((d)>>16) /* Write space avail */
> +#define ALTERA_JTAG_WSPACE(d) ((d) >> 16) /* Write space avail */
> /* Write fifo size. FIXME: this should be extracted with sopc2dts */
> #define ALTERA_JTAG_WRITE_DEPTH 64
>
> -DECLARE_GLOBAL_DATA_PTR;
> +struct altera_jtaguart_regs {
> + u32 data; /* Data register */
> + u32 control; /* Control register */
> +};
> +
> +struct altera_jtaguart_platdata {
> + struct altera_jtaguart_regs *regs;
> +};
>
> static int altera_jtaguart_setbrg(struct udevice *dev, int baudrate)
> {
> @@ -112,7 +111,7 @@ static const struct dm_serial_ops altera_jtaguart_ops = {
> };
>
> static const struct udevice_id altera_jtaguart_ids[] = {
> - { .compatible = "altr,juart-1.0", },
> + { .compatible = "altr,juart-1.0" },
> { }
> };
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro
2015-10-30 7:18 ` [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro Thomas Chou
2015-10-30 8:10 ` Jagan Teki
@ 2015-11-03 5:20 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:20 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> Replace numerical bit shift with BIT macro
> in altera_uart
>
> :%s/(1 << nr)/BIT(nr)/g
> where nr = 0, 1, 2 .... 31
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/serial/altera_uart.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
> index 4ff9fe2..7d5197a 100644
> --- a/drivers/serial/altera_uart.c
> +++ b/drivers/serial/altera_uart.c
> @@ -27,9 +27,9 @@ struct altera_uart_platdata {
> };
>
> /* status register */
> -#define ALTERA_UART_TMT (1 << 5) /* tx empty */
> -#define ALTERA_UART_TRDY (1 << 6) /* tx ready */
> -#define ALTERA_UART_RRDY (1 << 7) /* rx ready */
> +#define ALTERA_UART_TMT BIT(5) /* tx empty */
> +#define ALTERA_UART_TRDY BIT(6) /* tx ready */
> +#define ALTERA_UART_RRDY BIT(7) /* rx ready */
>
> DECLARE_GLOBAL_DATA_PTR;
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up Thomas Chou
2015-10-30 8:12 ` Jagan Teki
@ 2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:21 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> - Moved macro definitions to top
> - Re-arrange header includes ascending order
> - Remove unused header linux/compiler.h
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/serial/altera_uart.c | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
> index 7d5197a..cc68b1c 100644
> --- a/drivers/serial/altera_uart.c
> +++ b/drivers/serial/altera_uart.c
> @@ -8,9 +8,15 @@
> #include <common.h>
> #include <dm.h>
> #include <errno.h>
> -#include <asm/io.h>
> -#include <linux/compiler.h>
> #include <serial.h>
> +#include <asm/io.h>
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +/* status register */
> +#define ALTERA_UART_TMT BIT(5) /* tx empty */
> +#define ALTERA_UART_TRDY BIT(6) /* tx ready */
> +#define ALTERA_UART_RRDY BIT(7) /* rx ready */
>
> struct altera_uart_regs {
> u32 rxdata; /* Rx data reg */
> @@ -26,13 +32,6 @@ struct altera_uart_platdata {
> unsigned int uartclk;
> };
>
> -/* status register */
> -#define ALTERA_UART_TMT BIT(5) /* tx empty */
> -#define ALTERA_UART_TRDY BIT(6) /* tx ready */
> -#define ALTERA_UART_RRDY BIT(7) /* rx ready */
> -
> -DECLARE_GLOBAL_DATA_PTR;
> -
> static int altera_uart_setbrg(struct udevice *dev, int baudrate)
> {
> struct altera_uart_platdata *plat = dev->platdata;
> @@ -106,7 +105,7 @@ static const struct dm_serial_ops altera_uart_ops = {
> };
>
> static const struct udevice_id altera_uart_ids[] = {
> - { .compatible = "altr,uart-1.0", },
> + { .compatible = "altr,uart-1.0" },
> { }
> };
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro
2015-10-30 7:18 ` [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro Thomas Chou
2015-10-30 8:13 ` Jagan Teki
@ 2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:21 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> Replace numerical bit shift with BIT macro
> in altera_timer
>
> :%s/(1 << nr)/BIT(nr)/g
> where nr = 0, 1, 2 .... 31
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/timer/altera_timer.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
> index 2ef9ad6..288357c 100644
> --- a/drivers/timer/altera_timer.c
> +++ b/drivers/timer/altera_timer.c
> @@ -31,9 +31,9 @@ struct altera_timer_platdata {
> };
>
> /* control register */
> -#define ALTERA_TIMER_CONT (1 << 1) /* Continuous mode */
> -#define ALTERA_TIMER_START (1 << 2) /* Start timer */
> -#define ALTERA_TIMER_STOP (1 << 3) /* Stop timer */
> +#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
> +#define ALTERA_TIMER_START BIT(2) /* Start timer */
> +#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
>
> static int altera_timer_get_count(struct udevice *dev, unsigned long *count)
> {
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up Thomas Chou
2015-10-30 8:13 ` Jagan Teki
@ 2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:21 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> - Moved macro definitions to top
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/timer/altera_timer.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c
> index 288357c..7952ad7 100644
> --- a/drivers/timer/altera_timer.c
> +++ b/drivers/timer/altera_timer.c
> @@ -16,6 +16,11 @@
>
> DECLARE_GLOBAL_DATA_PTR;
>
> +/* control register */
> +#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
> +#define ALTERA_TIMER_START BIT(2) /* Start timer */
> +#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
> +
> struct altera_timer_regs {
> u32 status; /* Timer status reg */
> u32 control; /* Timer control reg */
> @@ -30,11 +35,6 @@ struct altera_timer_platdata {
> unsigned long clock_rate;
> };
>
> -/* control register */
> -#define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */
> -#define ALTERA_TIMER_START BIT(2) /* Start timer */
> -#define ALTERA_TIMER_STOP BIT(3) /* Stop timer */
> -
> static int altera_timer_get_count(struct udevice *dev, unsigned long *count)
> {
> struct altera_timer_platdata *plat = dev->platdata;
> @@ -88,7 +88,7 @@ static const struct timer_ops altera_timer_ops = {
> };
>
> static const struct udevice_id altera_timer_ids[] = {
> - { .compatible = "altr,timer-1.0", },
> + { .compatible = "altr,timer-1.0" },
> { }
> };
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 7/8] misc: altera_sysid: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 7/8] misc: altera_sysid: " Thomas Chou
2015-10-30 8:14 ` Jagan Teki
@ 2015-11-03 5:21 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:21 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> drivers/misc/altera_sysid.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c
> index 249b273..1859b80 100644
> --- a/drivers/misc/altera_sysid.c
> +++ b/drivers/misc/altera_sysid.c
> @@ -87,7 +87,7 @@ static const struct misc_ops altera_sysid_ops = {
> };
>
> static const struct udevice_id altera_sysid_ids[] = {
> - { .compatible = "altr,sysid-1.0", },
> + { .compatible = "altr,sysid-1.0" },
> { }
> };
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [U-Boot] [PATCH 8/8] spi: altera_spi: minor clean up
2015-10-30 7:18 ` [U-Boot] [PATCH 8/8] spi: altera_spi: " Thomas Chou
2015-10-30 8:15 ` Jagan Teki
@ 2015-11-03 5:22 ` Thomas Chou
1 sibling, 0 replies; 24+ messages in thread
From: Thomas Chou @ 2015-11-03 5:22 UTC (permalink / raw)
To: u-boot
On 2015?10?30? 15:18, Thomas Chou wrote:
> - Remove the penultimate comma in of_match ids
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> Cc: Jagan Teki <jteki@openedev.com>
> ---
> drivers/spi/altera_spi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c
> index e49949b..432a8e7 100644
> --- a/drivers/spi/altera_spi.c
> +++ b/drivers/spi/altera_spi.c
> @@ -193,7 +193,7 @@ static const struct dm_spi_ops altera_spi_ops = {
> };
>
> static const struct udevice_id altera_spi_ids[] = {
> - { .compatible = "altr,spi-1.0", },
> + { .compatible = "altr,spi-1.0" },
> { }
> };
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2015-11-03 5:22 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-30 7:18 [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 2/8] serial: altera_jtag_uart: minor clean up Thomas Chou
2015-10-30 8:09 ` Jagan Teki
2015-11-03 5:20 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 3/8] serial: altera_uart: use BIT macro Thomas Chou
2015-10-30 8:10 ` Jagan Teki
2015-11-03 5:20 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 4/8] serial: altera_uart: minor clean up Thomas Chou
2015-10-30 8:12 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 5/8] timer: altera_timer: use BIT macro Thomas Chou
2015-10-30 8:13 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 6/8] timer: altera_timer: minor clean up Thomas Chou
2015-10-30 8:13 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 7/8] misc: altera_sysid: " Thomas Chou
2015-10-30 8:14 ` Jagan Teki
2015-11-03 5:21 ` Thomas Chou
2015-10-30 7:18 ` [U-Boot] [PATCH 8/8] spi: altera_spi: " Thomas Chou
2015-10-30 8:15 ` Jagan Teki
2015-11-03 5:22 ` Thomas Chou
2015-10-30 8:07 ` [U-Boot] [PATCH 1/8] serial: altera_jtag_uart: use BIT macro Jagan Teki
2015-11-03 5:19 ` Thomas Chou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox