public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected
@ 2015-05-16 17:52 Paul Kocialkowski
  2015-05-16 17:52 ` [U-Boot] [PATCH 2/2] sunxi: Cache line size definition Paul Kocialkowski
  2015-05-19 16:53 ` [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected Hans de Goede
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Kocialkowski @ 2015-05-16 17:52 UTC (permalink / raw)
  To: u-boot

sunxi_usbc_vbus_detect was renamed to sunxi_usb_phy_vbus_detect but
g_dnl_board_usb_cable_connected was still using the old name, breaking the build
when USB gadget is enabled.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 board/sunxi/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 4c51468..5f79cc1 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -476,7 +476,7 @@ static struct musb_hdrc_platform_data musb_plat = {
 #ifdef CONFIG_USB_GADGET
 int g_dnl_board_usb_cable_connected(void)
 {
-	return sunxi_usbc_vbus_detect(0);
+	return sunxi_usb_phy_vbus_detect(0);
 }
 #endif
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 2/2] sunxi: Cache line size definition
  2015-05-16 17:52 [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected Paul Kocialkowski
@ 2015-05-16 17:52 ` Paul Kocialkowski
  2015-05-19 16:53 ` [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected Hans de Goede
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Kocialkowski @ 2015-05-16 17:52 UTC (permalink / raw)
  To: u-boot

Sunxi platforms use ARM Cortex A8, A7 and A15 (unsupported yet) CPU cores,
which all have 64 bytes cache line size.

This is required to e.g. enable USB gadget.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 include/configs/sunxi-common.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 723067e..3e4e26b 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -66,6 +66,9 @@
 # define CONFIG_SYS_NS16550_COM5		SUNXI_R_UART_BASE
 #endif
 
+/* CPU */
+#define CONFIG_SYS_CACHELINE_SIZE	64
+
 /* DRAM Base */
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 #define CONFIG_SYS_INIT_RAM_ADDR	0x0
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected
  2015-05-16 17:52 [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected Paul Kocialkowski
  2015-05-16 17:52 ` [U-Boot] [PATCH 2/2] sunxi: Cache line size definition Paul Kocialkowski
@ 2015-05-19 16:53 ` Hans de Goede
  1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2015-05-19 16:53 UTC (permalink / raw)
  To: u-boot

Hi,

Thanks for these 2 fixes, I've added both to my personal tree. I'll send
a pull-req to get these into u-boot/master soon.

Regards,

Hans


On 05/16/2015 07:52 PM, Paul Kocialkowski wrote:
> sunxi_usbc_vbus_detect was renamed to sunxi_usb_phy_vbus_detect but
> g_dnl_board_usb_cable_connected was still using the old name, breaking the build
> when USB gadget is enabled.
>
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>   board/sunxi/board.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/sunxi/board.c b/board/sunxi/board.c
> index 4c51468..5f79cc1 100644
> --- a/board/sunxi/board.c
> +++ b/board/sunxi/board.c
> @@ -476,7 +476,7 @@ static struct musb_hdrc_platform_data musb_plat = {
>   #ifdef CONFIG_USB_GADGET
>   int g_dnl_board_usb_cable_connected(void)
>   {
> -	return sunxi_usbc_vbus_detect(0);
> +	return sunxi_usb_phy_vbus_detect(0);
>   }
>   #endif
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-19 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-16 17:52 [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected Paul Kocialkowski
2015-05-16 17:52 ` [U-Boot] [PATCH 2/2] sunxi: Cache line size definition Paul Kocialkowski
2015-05-19 16:53 ` [U-Boot] [PATCH 1/2] sunxi: VBUS detection function fixup in g_dnl_board_usb_cable_connected Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox