* Samsung device updates
@ 2010-01-29 4:14 Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device Ben Dooks
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
Devices updates for cleanups, bugfixes and the odd improvement.
Currently on the next-samsung-devupdates2 branch.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device
2010-01-29 4:14 Samsung device updates Ben Dooks
@ 2010-01-29 4:14 ` Ben Dooks
2010-01-29 9:56 ` Sergei Shtylyov
2010-01-29 4:14 ` [PATCH] ARM: S3C64XX: SPI: Make platform device compilation selectable Ben Dooks
` (4 subsequent siblings)
5 siblings, 1 reply; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
Add the required DMA masks to the hs-otg device definition to allow DMA
to work with it.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
arch/arm/plat-samsung/dev-usb-hsotg.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-samsung/dev-usb-hsotg.c b/arch/arm/plat-samsung/dev-usb-hsotg.c
index e2f604b..d8b7870 100644
--- a/arch/arm/plat-samsung/dev-usb-hsotg.c
+++ b/arch/arm/plat-samsung/dev-usb-hsotg.c
@@ -33,9 +33,15 @@ static struct resource s3c_usb_hsotg_resources[] = {
},
};
+static u64 s3c_hsotg_dmamask = 0xffffffffUL;
+
struct platform_device s3c_device_usb_hsotg = {
.name = "s3c-hsotg",
.id = -1,
.num_resources = ARRAY_SIZE(s3c_usb_hsotg_resources),
.resource = s3c_usb_hsotg_resources,
+ .dev = {
+ .dma_mask = &s3c_hsotg_dmamask,
+ .coherent_dma_mask = 0xffffffffUL,
+ },
};
--
1.6.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: S3C64XX: SPI: Make platform device compilation selectable
2010-01-29 4:14 Samsung device updates Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device Ben Dooks
@ 2010-01-29 4:14 ` Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: S3C2412: SoC has the fractional baud rate register Ben Dooks
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
From: Jassi Brar <jassi.brar@samsung.com>
The SPI controller platform devices should be compiled in
independent of the driver support, otherwise we might end
up with dev-spi built as kernel module.
Change this to make every machine select if it has some SPI
device and wants to build device definitions.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
arch/arm/plat-s3c64xx/Makefile | 4 +++-
arch/arm/plat-samsung/Kconfig | 6 ++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-s3c64xx/Makefile b/arch/arm/plat-s3c64xx/Makefile
index 80255a5..e60bde3 100644
--- a/arch/arm/plat-s3c64xx/Makefile
+++ b/arch/arm/plat-s3c64xx/Makefile
@@ -40,6 +40,9 @@ obj-$(CONFIG_S3C64XX_DMA) += dma.o
obj-$(CONFIG_S3C_ADC) += dev-adc.o
+# SPI support
+obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o
+
# Device setup
obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
@@ -47,4 +50,3 @@ obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o
obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o
obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
obj-$(CONFIG_SND_S3C24XX_SOC) += dev-audio.o
-obj-$(CONFIG_SPI_S3C64XX) += dev-spi.o
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index 1c2fe91..72da646 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -132,6 +132,12 @@ config S3C_DEV_NAND
help
Compile in platform device definition for NAND controller
+config S3C64XX_DEV_SPI
+ bool
+ help
+ Compile in platform device definitions for S3C64XX's type
+ SPI controllers.
+
comment "Power management"
config SAMSUNG_PM_DEBUG
--
1.6.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: S3C2412: SoC has the fractional baud rate register
2010-01-29 4:14 Samsung device updates Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: S3C64XX: SPI: Make platform device compilation selectable Ben Dooks
@ 2010-01-29 4:14 ` Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add SERIAL_SAMSUNG_UARTS_4 Kconfig option Ben Dooks
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
From: Michel Pollet <buserror@gmail.com>
The S3C2412 has a fractional baud rate register, this patch adds the
corresponding flag to the UART definition to allow generation of more
precise baud rates for the various clock combinations.
Signed-off-by: Michel Pollet <buserror@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
drivers/serial/s3c2412.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/serial/s3c2412.c b/drivers/serial/s3c2412.c
index ce75e28..1700b1a 100644
--- a/drivers/serial/s3c2412.c
+++ b/drivers/serial/s3c2412.c
@@ -102,6 +102,7 @@ static struct s3c24xx_uart_info s3c2412_uart_inf = {
.name = "Samsung S3C2412 UART",
.type = PORT_S3C2412,
.fifosize = 64,
+ .has_divslot = 1,
.rx_fifomask = S3C2440_UFSTAT_RXMASK,
.rx_fifoshift = S3C2440_UFSTAT_RXSHIFT,
.rx_fifofull = S3C2440_UFSTAT_RXFULL,
--
1.6.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: SAMSUNG: Add SERIAL_SAMSUNG_UARTS_4 Kconfig option
2010-01-29 4:14 Samsung device updates Ben Dooks
` (2 preceding siblings ...)
2010-01-29 4:14 ` [PATCH] ARM: S3C2412: SoC has the fractional baud rate register Ben Dooks
@ 2010-01-29 4:14 ` Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Use PLAT_SAMSUNG instead of PLAT_S3C Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: S3C64XX: Make audio device code built unconditionally Ben Dooks
5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
Add SERIAL_SAMSUNG_UARTS_4 to mop up the number of cases currently using
four Samsung compatible UARTS.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
drivers/serial/Kconfig | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index ebdd2b9..1d47c77 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -455,11 +455,18 @@ config SERIAL_SAMSUNG
provide all of these ports, depending on how the serial port
pins are configured.
+config SERIAL_SAMSUNG_UARTS_4
+ bool
+ depends on ARM && PLAT_SAMSUNG
+ default y if CPU_S3C2443
+ help
+ Internal node for the common case of 4 Samsung compatible UARTs
+
config SERIAL_SAMSUNG_UARTS
int
depends on ARM && PLAT_S3C
default 2 if ARCH_S3C2400
- default 4 if ARCH_S5P6440 || ARCH_S5PC1XX || ARCH_S5PV210 || ARCH_S3C64XX || CPU_S3C2443
+ default 4 if SERIAL_SAMSUNG_UARTS_4
default 3
help
Select the number of available UART ports for the Samsung S3C
@@ -526,8 +533,9 @@ config SERIAL_S3C24A0
Serial port support for the Samsung S3C24A0 SoC
config SERIAL_S3C6400
- tristate "Samsung S3C6400/S3C6410/S5P6440 Serial port support"
+ tristate "Samsung S3C6400/S3C6410/S5P6440 Seria port support"
depends on SERIAL_SAMSUNG && (CPU_S3C6400 || CPU_S3C6410 || CPU_S5P6440)
+ select SERIAL_SAMSUNG_UARTS_4
default y
help
Serial port support for the Samsung S3C6400, S3C6410 and S5P6440
@@ -536,6 +544,7 @@ config SERIAL_S3C6400
config SERIAL_S5PC100
tristate "Samsung S5PC100 Serial port support"
depends on SERIAL_SAMSUNG && CPU_S5PC100
+ select SERIAL_SAMSUNG_UARTS_4
default y
help
Serial port support for the Samsung S5PC100 SoCs
@@ -543,6 +552,7 @@ config SERIAL_S5PC100
config SERIAL_S5PV210
tristate "Samsung S5PV210 Serial port support"
depends on SERIAL_SAMSUNG && CPU_S5PV210
+ select SERIAL_SAMSUNG_UARTS_4
default y
help
Serial port support for Samsung's S5P Family of SoC's
--
1.6.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: SAMSUNG: Use PLAT_SAMSUNG instead of PLAT_S3C
2010-01-29 4:14 Samsung device updates Ben Dooks
` (3 preceding siblings ...)
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add SERIAL_SAMSUNG_UARTS_4 Kconfig option Ben Dooks
@ 2010-01-29 4:14 ` Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: S3C64XX: Make audio device code built unconditionally Ben Dooks
5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
As part of the development process, it is hoped PLAT_S3C is either removed
from all of the PLAT_SAMSUNG derived platforms or removed entirely. It is
also better to use PLAT_SAMSUNG as this is the current base of all Samsung
devices.
Change the two places that use PLAT_S3C to use PLAT_SAMSUNG
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
drivers/serial/Kconfig | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 1d47c77..b2157c3 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -447,7 +447,7 @@ config SERIAL_CLPS711X_CONSOLE
config SERIAL_SAMSUNG
tristate "Samsung SoC serial support"
- depends on ARM && PLAT_S3C
+ depends on ARM && PLAT_SAMSUNG
select SERIAL_CORE
help
Support for the on-chip UARTs on the Samsung S3C24XX series CPUs,
@@ -464,7 +464,7 @@ config SERIAL_SAMSUNG_UARTS_4
config SERIAL_SAMSUNG_UARTS
int
- depends on ARM && PLAT_S3C
+ depends on ARM && PLAT_SAMSUNG
default 2 if ARCH_S3C2400
default 4 if SERIAL_SAMSUNG_UARTS_4
default 3
--
1.6.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: S3C64XX: Make audio device code built unconditionally
2010-01-29 4:14 Samsung device updates Ben Dooks
` (4 preceding siblings ...)
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Use PLAT_SAMSUNG instead of PLAT_S3C Ben Dooks
@ 2010-01-29 4:14 ` Ben Dooks
5 siblings, 0 replies; 8+ messages in thread
From: Ben Dooks @ 2010-01-29 4:14 UTC (permalink / raw)
To: linux-arm-kernel
Making the code depend on CONFIG_SND_S3C24XX_SOC means that if the ASoC
code is build modularily, the boards will fail to link due to the device
code also being built as a module.
As per Mark Brown's suggestions, just compile this always as it is expected
many machines will have audio.
Also move the obj-y line out of the device setup area into a new area just
for devices.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
arch/arm/plat-s3c64xx/Makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-s3c64xx/Makefile b/arch/arm/plat-s3c64xx/Makefile
index e60bde3..33a73f3 100644
--- a/arch/arm/plat-s3c64xx/Makefile
+++ b/arch/arm/plat-s3c64xx/Makefile
@@ -43,10 +43,13 @@ obj-$(CONFIG_S3C_ADC) += dev-adc.o
# SPI support
obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o
+# Device support
+obj-y += dev-audio.o
+
# Device setup
obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o
obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o
obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
-obj-$(CONFIG_SND_S3C24XX_SOC) += dev-audio.o
+
--
1.6.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device Ben Dooks
@ 2010-01-29 9:56 ` Sergei Shtylyov
0 siblings, 0 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2010-01-29 9:56 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
Ben Dooks wrote:
> Add the required DMA masks to the hs-otg device definition to allow DMA
> to work with it.
>
> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
> ---
> arch/arm/plat-samsung/dev-usb-hsotg.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/plat-samsung/dev-usb-hsotg.c b/arch/arm/plat-samsung/dev-usb-hsotg.c
> index e2f604b..d8b7870 100644
> --- a/arch/arm/plat-samsung/dev-usb-hsotg.c
> +++ b/arch/arm/plat-samsung/dev-usb-hsotg.c
> @@ -33,9 +33,15 @@ static struct resource s3c_usb_hsotg_resources[] = {
> },
> };
>
> +static u64 s3c_hsotg_dmamask = 0xffffffffUL;
> +
>
Shouldn't this be DMA_BIT_MASK(32)?
> struct platform_device s3c_device_usb_hsotg = {
> .name = "s3c-hsotg",
> .id = -1,
> .num_resources = ARRAY_SIZE(s3c_usb_hsotg_resources),
> .resource = s3c_usb_hsotg_resources,
> + .dev = {
> + .dma_mask = &s3c_hsotg_dmamask,
> + .coherent_dma_mask = 0xffffffffUL,
>
Same here...
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-01-29 9:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 4:14 Samsung device updates Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add DMA masks to hsotg device Ben Dooks
2010-01-29 9:56 ` Sergei Shtylyov
2010-01-29 4:14 ` [PATCH] ARM: S3C64XX: SPI: Make platform device compilation selectable Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: S3C2412: SoC has the fractional baud rate register Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Add SERIAL_SAMSUNG_UARTS_4 Kconfig option Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: SAMSUNG: Use PLAT_SAMSUNG instead of PLAT_S3C Ben Dooks
2010-01-29 4:14 ` [PATCH] ARM: S3C64XX: Make audio device code built unconditionally Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).